Developer forum

Forum » Templates » Using dynamic IDs in a design

Using dynamic IDs in a design


Reply
Hi there,

I have a Design that has an include to a file called Footer.html. Inside this footer I have a simple menu along the lines of:

<ul class="dwnavigation" settings="parentid:123" />

The parent ID refers to a (hidden) node with a bunch of pages that need to be displayed in the footer.

I would like to reuse this include file across multiple web sites / languages. That obviously means changing the parentid from 123 to something that makes sense for that language area. Is there a way to do this? Can we inject the ID somehow?

I thought about using a Translate() key, but I guess that fires too late to build up the menu dynamically.....

Imar

Replies

 
Reply
 Hi Imar,

The nearest release (7.2) will contain a fix for this issue. You'll be able to use the "Translate" tags that are processed before parsing of layout settings.

- Pavel
 
Reply
That's good to hear. Thanks!

In the mean time we fixed it using XSLT for the menu and fork on some hard coded IDs. Not too maintainable, but it works.....

Enjoy your weekend!

Imar

 

You must be logged in to post in the forum