Forums / General / problem of url rewriting // view in url

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

problem of url rewriting // view in url

Author Message

Romain Bremaud

Wednesday 02 March 2011 1:09:31 am

Hello everybody,

I have a little problem.

When I pass an url like that :

http://my_site/index.php/plain_site/News

Exponential 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 ?

Thanks in advance.

Romain

Romain Bremaud
Les clefs du net

Franck Magnan

Wednesday 02 March 2011 2:38:50 am

Hello Romain,

when you call http://my_site/index.php/plain_site/News url, Exponential call node/view/full.tpl template file. You can override it (by override.ini configuration or by editing template file in your design) to call the line view for the current node.

For example, in your template file, you need a command like this one:

{node_view_gui content_node=$node view = 'line'}

--
Developer at Open Wide

Romain Bremaud

Wednesday 02 March 2011 2:46:51 am

Thanks Franck for your help.

I used url alias for resolve my problem. I do that because I want to keep the full and line view for the node.

I create an alias :

url alias : /news-line

destination : /content/view/line/213

and I uncheck : alias should redirect to his destination.

Romain

Romain Bremaud
Les clefs du net