Developer forum

Forum » Templates » Possible to make a menu out of the paragraphs from one page

Possible to make a menu out of the paragraphs from one page


Reply

 

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?

Replies

 
Nicolai Høeg Pedersen
Reply
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.

 
Reply

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)

 

 
Nicolai Høeg Pedersen
Reply
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.


 

 
Nicolai Høeg Pedersen
Reply

And the link http://developer.dynamicweb.dk/Files/Filer/ForumV2Upload/3149Tabtest.zip

 

 

 

 
Per Søgaard
Reply
 Hi Nicolai

So how would we do this in the new design template concept?
 
Nicolai Høeg Pedersen
Reply
Make a start, end and item paragraph template and create paragraphs in the container holding these 3 templates.

 

You must be logged in to post in the forum