Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to create header menu using sitemap tab
ppd
Hi,
I wanted to create header menu using sitemap tab, instead of using traditional dcr concept for creation of header menu.
How I can achieve this using sitemap. I am new to the concept of sitemap.
Find more posts tagged with
Comments
Rick Poulin
The sitemap is nothing more than a tree structure of "nodes", each (optionally) pointing to a URL. This structure is saved in an XML file, which can be used by your components to generate a navigation structure in HTML.
*what* your tree looks like is entirely up to you (and/or your users). As a developer, you want to write a component that uses an External class to pull in this data, and then use XSL to "transform" the XML structure into an HTML structure.
LiveSite provides an OOTB External that gives you back the sitemap (mostly*) unchanged from its original structure.
com.interwoven.livesite.external.impl.LivesiteSiteMap#getSiteMap()
* mostly == unless you're using segmentation
ppd
Thanks Rick for explaining the sitemap concept in short.
I will try to develope the conmponent by using external.
Can u please let me know is there any material available for sitemap.
Bowker
Assuming you know XSL, create a component that will build the HTML structure you are looking for (your menu) from the XML that is provided during component construction.
By including the External that Rick suggested you will get back the XML structure setup in the SiteMap tab in TeamSite/SitePublisher. Below is a very helpful little trick that I use to get the XML given to the XSL at runtime.
Create an XSL component that has the following parts, add it to a blank page, and preview the page (or push to your runtime environment).
View source and you will see what the XML is you are receiving that you may reformat into HTML.
Good Luck
Appearence
[PHP]
[/PHP]
Data:
[PHP]
com.interwoven.livesite.external.impl.LivesiteSiteMap
getSiteMap
[/PHP]