Create view other for article

Author Message

Alexandre huytq

Friday 28 July 2006 3:16:41 am

You have page layout : header + leftmenu + maincontent + rightmenu + footer
How to when you go to an article in your site, you want to view full article without leftmenu and right menu. Contrary to when you go to an other article, you see full article with leftmenu, rightmenu.
what 's this idea ?
where will you do to edit the code piece ? How are the algorithm ? and it's in what's file?

How can accomplish this ?
Thanks for your help.

Tran Quang Huy

Christian Lundvang

Friday 28 July 2006 5:41:27 am

Hi

There are several ways to do this.

One of them is if you use sections in eZ publish, you can accomplish this.

Add a new pagelayout.tpl under templates, that you call pagelayout_article.tpl

Then put this in your override.ini.append.php

[pagelayout_article]
Source=pagelayout.tpl
MatchFile=pagelayout_article.tpl
Subdir=templates
Match[section]=6

In the pagelayout_article you can remove rightmenu and leftmenu, and then you have a full view of the article.

PS: Just remember to assign the article to the new section.

Sections is controled in Setup->Sections.

--
Best Regards
Christian Lundvang
http://www.nxc.no

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.