I would like to make a menu out of items on a page.
E.g. A list to the left, and when you click a item on the left, the detail is shown to the right. The list remains on the page while showing the detail to the right.
Anyone tried that?
I would like to make a menu out of items on a page.
E.g. A list to the left, and when you click a item on the left, the detail is shown to the right. The list remains on the page while showing the detail to the right.
Anyone tried that?
If your items are pages you can just use a regular navigation tag for this.
If you're using paragraph items, then you'll have to use an Item Publisher for generating the list and then render the paragraph with the item publisher in the item details template (using <!--@Global:Paragraph.Content(…)-->).
Hmmm, have you tried it? It does not work (please see http://buchardt.net.dynamicweb-cms.com/da-DK/Produkter.aspx?itemId=Produkt:5)
I use paragraph items.
Yes, I've tried it, but in a slightly different version. To do what you want to, you have to use two item publishers: one for the menu and one for the details.
In the list template for the first item publisher you add PID=«paragraph id of the second item publisher» to the item url (e.g. &PID=87). Then the other item publisher will show the details and the first item publisher will still show the list.
Will it make sense to use item based pages items instead of paragraphs on the website? Then it will be much easier to generate the menu (using a navigation element) and the items will get a proper url, e.g. /da-DK/Produkter/Item-1 rather than /da-DK/Produkter.aspx?itemId=Produkt:5
Use of item based pages is not possible.
Do you have two item publisher on the same page?
I can't get it to work, maybee I'm just not looking right? http://buchardt.net.dynamicweb-cms.com/da-DK/Produkter.aspx?itemId=Produkt:5&PID=2
You have the wrong PID – it should be 5 and not 2 (http://buchardt.net.dynamicweb-cms.com/da-DK/Produkter.aspx?itemId=Produkt:5&PID=5). It is the id of the paragraph containing the second item publisher. I've edited my previous reply to make this clear.
Arh, thanx! Now I see it works...
Let me sugest that you implement it in the backend of the itempublisher paragraph settings, like it is in the news module?
You must be logged in to post in the forum