Developer forum
E-mail notifications
Possible to make a menu out of the paragraphs from one page
Replies
jordan@netonline.nl wrote:
I’m trying to make a menu from all the paragraph’s in one page. The idea is to make a couple of tabs in the page, without refreshing the page.The client then just needs to make the paragraph’s needed, and these will automaticly be inserted in the menu.An example of these tabs are found here: http://www.jozon.nl/html/whirlpools_sundance_880_maxxus.aspx (only this site isn’t in DynamicWeb)(every tab needs to be one paragraph)Is this possible?
Hi Jordan
Yes it is. Make templates so the paragraphs will be listed in a ul/li list - see example on this page:
http://clagnut.com/sandbox/csstabs/
You need a paragraphSetup that holds the <ul id="globalnav"></ul> and each paragraph is a <li> with a sub UL with its content. Use ParagraphHeader tag for the tabname and ParagraphText tag for the tab content.
Thanks for the quick reply!
But what i'm trying to create is that DynamicWeb creates the menu for me.
So that if someone creates a new paragraph, de new tab/paragraph automaticly appears in the tab-menu.
All I really need is a sort of Loop tag, that returns all the paragraph's in the current page. (just like the Ecom products loop)
jordan@netonline.nl wrote:
Thanks for the quick reply!
But what i'm trying to create is that DynamicWeb creates the menu for me.
So that if someone creates a new paragraph, de new tab/paragraph automaticly appears in the tab-menu.
All I really need is a sort of Loop tag, that returns all the paragraph's in the current page. (just like the Ecom products loop)
Yes - i know.
You don't need a loop. I've attached an example of tabbing in a hmtl file using a UL/LI list. Based on that example I've created a paragraphSetup template and a paragraph template to use with the setup. Create a page using these templates and you have what you need. Of course you need to style it appropiately.
So how would we do this in the new design template concept?
You must be logged in to post in the forum