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

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 ?

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, eZ Publish 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

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

eZ debug

Timing: Jan 18 2025 03:01:08
Script start
Timing: Jan 18 2025 03:01:08
Module start 'layout'
Timing: Jan 18 2025 03:01:08
Module start 'content'
Timing: Jan 18 2025 03:01:08
Module end 'content'
Timing: Jan 18 2025 03:01:08
Script end

Main resources:

Total runtime0.7838 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9141152.6250
Module start 'layout' 0.00520.0028 740.539139.4688
Module start 'content' 0.00800.7743 780.0078532.3516
Module end 'content' 0.78230.0014 1,312.359412.1563
Script end 0.7838  1,324.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4280160.0002
Check MTime0.00140.1827160.0001
Mysql Total
Database connection0.00070.093810.0007
Mysqli_queries0.731393.2996570.0128
Looping result0.00050.0587550.0000
Template Total0.754496.220.3772
Template load0.00250.315520.0012
Template processing0.751995.928320.3759
Template load and register function0.00020.021810.0002
states
state_id_array0.00110.142110.0011
state_identifier_array0.00120.152320.0006
Override
Cache load0.00200.2563290.0001
Sytem overhead
Fetch class attribute can translate value0.00060.082020.0003
Fetch class attribute name0.00150.191840.0004
XML
Image XML parsing0.00070.094320.0004
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00170.2198150.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs