Hi Romain,

> Romain Bremaud wrote:
>> Hello everybody,
>> 
>> I have a little problem.
>> 
>> When I pass an url like that :
>> 
>> http://my_site/index.php/plain_site/News
>> 
>> EZpublish use the content/view/full/142
>> 
>> But I would like to use the line view when I use this url : 
>> http://my_site/index.php/plain_site/News
>> 
>> If I use http://my_site/index.php/plain_site/content/view/line/142 it's work
>> 
>> But I want to keep a clean url.
>> 
>> 
>> I try to use the url alias but whitout success.
>> 
>> Any idea ?

What about a simple override rule ?

[full_news_line]
Source=node/view/full.tpl
MatchFile=node/view/line.tpl
Subdir=templates
Match[url_alias]=News

or 
[full_news_line]
Source=node/view/full.tpl
MatchFile=node/view/line.tpl
Subdir=templates
Match[node]=142

The line template should be located in the override/templates/node/view/ 
directory. In this line.tpl template you can make a simple include of the 
standard node/view/line.tpl from your design or duplicate the template code.

But be careful with url_alias or node override conditions, they are very 
complicated to maintain on multiple servers.

Regards
Olivier
-- 
Sdk-public mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/sdk-public

Reply via email to