Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
i want to create (e.g: image above) tab functionality which is dynamic for every different page, is it possible to do so?
Regards,
Jay
Hi Jay,
Yes this is possible. You could just add some nodes under the parent nodes and have some property fields in it.
Then you could make use of a macro file either Razor or Xslt to display those nodes as tabs from the parent page.
Your content structure would be something like
ContentDefault-- Page 1---- Description---- Reviews---- Videos-- Page 2---- Description 1---- Reviews 2
Displaying your tabs from Page 1 or Page 2
<ul><xsl:for-each select="$currentPage/* [@isDoc][not(umbracoNaviHide = 1)]"> <li> <a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="@nodeName"/> </a> </li></xsl:for-each></ul>
Hope this helps.
// Fuji
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to create tab functionality dynamically?
Hi,
i want to create (e.g: image above) tab functionality which is dynamic for every different page, is it possible to do so?
Regards,
Jay
Hi Jay,
Yes this is possible. You could just add some nodes under the parent nodes and have some property fields in it.
Then you could make use of a macro file either Razor or Xslt to display those nodes as tabs from the parent page.
Your content structure would be something like
Content
Default
-- Page 1
---- Description
---- Reviews
---- Videos
-- Page 2
---- Description 1
---- Reviews 2
Displaying your tabs from Page 1 or Page 2
Hope this helps.
// Fuji
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.