Developer forum

Forum » CMS - Standard features » Publish item hierarchy

Publish item hierarchy

Lars Larsen
Reply

Hi,

I have made an itemtype to be used for an organization diagram. For that purpose I have created some organizational units based on my new itemtype, and placed them in the pagetree structure in the backend. Now I want to publish the organizational hierarchy with the "Item Publisher" module. But is it possible to publish the items on the frontend in the same hierarchy structure (order) as I see them in the backend? As far as I can see it is only possible to sort the output of the items from the "Item Publisher" module on fields from the itemtype that is being published. Any ideas on how to publish the hierarchy without doing some custom code?


Replies

 
Rene Poulsen
Reply

Hi Lars,

Maybe you could use a menu instead? You can create a menu in any template you want (if you are using 8.2.0.2 or above). Take a look at this post: http://developer.dynamicweb-cms.com/forum/cms-standard-features/publish-item-hierarchy.aspx

By doing this you can have all the employees listet in ul li's (or in any other way you want to) - just like a menu.

 

 
Lars Larsen
Reply

Hi René

Interesting idea :-)

But will the xml contain data from the itemtype that is associated with the pages? I have done a little test but I can't see the data from my items in the xml output from the menu I just created for the test!

Btw the link you have inserted in your reply is a link to this tread! Could you try again?

Thank for your reply

 
Rene Poulsen
Reply

Oops, even copy/paste can go wrong ;-)

Here it is: http://developer.dynamicweb-cms.com/forum/templates/templates/xslt-menu-inside-a-paragraph-template.aspx

But I guess it's not going to work - because, like you said, the data from the ItemType is not present in the XML (and I don't think it's possible to make it present), so that's not the way to go.

 

 

You must be logged in to post in the forum