Forums / Setup & design / Display another nodes (folder) content?

Display another nodes (folder) content?

Author Message

Charles Tanton

Tuesday 06 December 2005 10:43:25 pm

Is it possible to specify another node's (in this case a folder) content instead of its own? For example, instead of displaying the default home page content, I'd like to display all the news items within the news folder. I imagine I could do this by creating an override for the home folder which fetches the news folder content? Is there a built in way to do this?

Thanks,

Charles.

http://www.parkroad.co.za

Łukasz Serwatka

Tuesday 06 December 2005 11:00:50 pm

Charles, yes this is possible.

In your overridden site.ini.append.php for user siteaccess change:

[SiteSettings]
# Which page to show when the root index (/) is accessed
IndexPage=/content/view/full/2/

Where 2 in /content/view/full/2/ i main root node ID, set your news folder node ID instead of 2

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Charles Tanton

Tuesday 06 December 2005 11:10:20 pm

Thanks Lukasz. I really am grateful and really impressed be the quick responses I get on the ez forums, by the crew and others. Well done and keep up the good work!

http://www.parkroad.co.za

Łukasz Serwatka

Wednesday 07 December 2005 12:03:44 am

Yeah, we driving fast here ;) You are welcome Charles :)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog