17488 Posts in 4473 Topics by 1978 members
|Go to End|
16 September 2008 at 8:46pm
at my Category 'Sample' iÃ‚Â´ve created many Sub-Articles. Now i want to show at the frontend in which Category this Article is posted. How does it work?
16 September 2008 at 9:23pm
Im assuming that youve created your articles/sub-articles just like normal pages/sub-pages. If so, then you can use something like this piece of code to display the parent page/category next to the navigation link:
<% control Menu(1) %>
<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode"><span>$MenuTitle.XML ($Parent.Title)</span></a></li>
<% end_control %>
Note the $Parent.Title bit - that allows you access to the current page's parent object.
|Go to Top|