This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » The right way to build a nav?

The right way to build a nav?

The right way to build a nav?

Monday 31 March 2003 10:58:25 pm - 1 reply

Hey all

I've discovered recently that I can get quite a bit done just using the template operators and functions, but can't help but feel like I'm giving too much power to the templates.

First, some data. Here's an example folder

My Folder
>> Articles
>> >> Customer Success Stories
>> >> Technical Solutions
>> >> Editorials

From this, I would like to create the following

<li><a href="/content/view/sitemap/243/">Customer Success Stories</a></li>
<li><a href="/content/view/sitemap/244/">Technical Solutions</a></li>
<li><a href="/content/view/sitemap/245/">Editorials</a></li>

Also, the sitemap view isn't what I really want, but

Now, I'm assuming it would be better to add some PHP to index.php to build an object of data that I access in the template instead. I admit, opening index.php I feel a bit lost.

Am I in the correct line of thinking?

Modified on Monday 31 March 2003 10:59:00 pm by Peter Bailey

Tuesday 01 April 2003 3:49:21 am

My experience:
I've built 5 sites with eZ publish 2.2.x and to do what you want to do, I *had* to dive into the PHP code of eZ publish. I can assure you that you don't want to do that!

It's not that the code is bad (it's written very cleanly unlike most other open source CMS), BUT you will run into big problems, if you want to update the system to a new version of eZ publish which you will want to do in the future. You will have to track down all the changes you did and do/adapt them again.

Even though this problem can be circumvented, you will have much better (and more portable!) results by using the templates (which should stay compatible with new releases).

The new template system is great and gives you a lot of power. Use it!

Just my 2 cents.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from