Dynamic Macro Properties Possible? Options
mchung
Posted: Monday, August 14, 2006 1:01:20 PM
Rank: Enthusiast

Joined: 8/3/2006
Posts: 24
Hello all,

I'm trying to build a control where users can insert 'n' amount of download links into an area on a page.

I have this at the moment:

<img src ="http://img88.imageshack.us/img88/1653/testwe4.png" />

I was wondering if it is possible to make the macro edit window extend depending on the number of downloads requried and add appropriate boxes for this.

How would I go about implementing this idea?

Thanks.
berndroessl
Posted: Monday, August 14, 2006 1:16:20 PM
Rank: Devotee

Joined: 7/20/2006
Posts: 39
hey michael,

why don't you create a documenttype with two properties ('label' of type string and 'url' also of type string). then use the autoform to let your users create objects of this type.

regards, bernd

<b style="font-weight: normal;"">I'm not fat, my chest has slipped a bit!</b>
mchung
Posted: Monday, August 14, 2006 1:31:01 PM
Rank: Enthusiast

Joined: 8/3/2006
Posts: 24
Sorry I think I got mixed up in the original post. I only want authors of content to be able to do this and not general users of the site.

They could use this tab to quickly add downloads in a styled box in the page.
neehouse
Posted: Monday, August 14, 2006 2:25:16 PM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,074
Location: Charleston, West Virginia, United States
Consider having a <strong>document type</strong> for <em>downloads</em> and an <strong>XSLT</strong> for displaying it. Thus, you create a holder page that has the <em>downloads</em> as child nodes under that which will render through the XSLT.

The only thing to consider when doing it this way is coding navigation to ignore the download document type.

Hope this helps.
Case

• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
mchung
Posted: Monday, August 14, 2006 3:06:46 PM
Rank: Enthusiast

Joined: 8/3/2006
Posts: 24
Thanks for the suggestion.

I don't really like this method with separate document types because the node list would get quite crowded if there are a lot of download files to go through. This would be on all of my pages as well (approximately 18 pages).

I'm thinking of just having a fixed amount of 8 boxes in a macro / custom control if there aren't any other elegant solutions to the problem.
imayat12
Posted: Monday, August 14, 2006 4:36:27 PM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Micheal,

What I did was to create a download library in the media section with different folders mapping to different categories. You can see it <a href="http://www.ins-innovation.com/site-tools/downloads.aspx">here </a> although currently there is nothing there but you can see the principle. The page is built using xslt that lists everything below download library node in media including files

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
cpalm
Posted: Tuesday, August 15, 2006 11:25:17 PM

Rank: Aficionado

Joined: 7/19/2006
Posts: 164
Mayby you can use <a href="http://www.cpalm.dk/blog/2006/08/15/multiplemediapickerviasource.aspx">MultipleMediaPickerViaSource</a>

But you can only selected files from one media folder.

I gues, your best solution would be to make a "Multi media picker" like the <a href="http://rtk-design.dk/1050.aspx">Multi Content Picker</a> I can't find the description for the "Multi Content Picker" :-(

Regards/Christian
<a href="http://www.cpalm.dk">http://www.cpalm.dk</a>

CPalm, www.cpalm.dk
mchung
Posted: Wednesday, August 16, 2006 3:18:19 PM
Rank: Enthusiast

Joined: 8/3/2006
Posts: 24
MultipleMediaPickerViaSource looks pretty good, I think I can live with only being able to pick out images from a single folder - in some cases it would be ideal.
mchung
Posted: Wednesday, August 16, 2006 3:18:25 PM
Rank: Enthusiast

Joined: 8/3/2006
Posts: 24
MultipleMediaPickerViaSource looks pretty good, I think I can live with only being able to pick out images from a single folder - in some cases it would be ideal.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.