url_alias doesn't work

Author Message

Vytautas Germanavičius

Friday 01 April 2005 12:17:55 am

i did not found clear description, how to use that mystical url_alias... :(

I made according http://www.ez.no/community/forum/general/multiple_section_assignment/re_multiple_section_assignment__11

[product_line]
Source=node/view/line.tpl
MatchFile=product_line_klientams.tpl
Subdir=templates
Match[class_identifier]=product
Match[url_alias]=produktai__3

[product_line]
Source=node/view/line.tpl
MatchFile=line/product.tpl
Subdir=templates
Match[class_identifier]=product

but now products in page /index.php/shop/produktai__3/indu_prieziura
are shown using default template, neither line/product.tpl nor product_line_klientams.tpl

{set-block scope=root variable=cache_ttl}0{/set-block}

Eirik Alfstad Johansen

Friday 01 April 2005 12:31:39 am

Hi vytis,

I've emailed Bård asking him if you could document this feature. Hopefully, you'll hear from him shortly.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Vytautas Germanavičius

Monday 04 April 2005 12:42:17 am

I don't need detail description.
I would like to know, what i should write after "Match[url_alias]=": section name, node name, node alias?
Or what i did wrong in given example, why it does not work?

{set-block scope=root variable=cache_ttl}0{/set-block}

Łukasz Serwatka

Monday 04 April 2005 12:47:31 am

Here you find example with Match[url_alias]=
http://ez.no/ez_publish/documentation/customization/custom_design/override_templates

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

Vytautas Germanavičius

Monday 04 April 2005 1:41:18 am

I spend 2 working days trying to follow that page... :(
But not successfull, look to code in my firs message, what is wrong in that example?

Maybe, i do not understand url_alias? Question:
i have folder "news" and some articles in it. And i want to display articles in different style from section.
What i should write in overrides.ini
[Line_view_article]
...
Match[url_alias]=ALIAS_OF_FOLDER
or
Match[url_alias]=ALIAS_OF_EVERY_ARTICLE

{set-block scope=root variable=cache_ttl}0{/set-block}

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 19 2025 11:55:42
Script start
Timing: Jan 19 2025 11:55:43
Module start 'layout'
Timing: Jan 19 2025 11:55:43
Module start 'content'
Timing: Jan 19 2025 11:55:43
Module end 'content'
Timing: Jan 19 2025 11:55:43
Script end

Main resources:

Total runtime0.8861 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.1484152.6250
Module start 'layout' 0.00730.0027 741.773439.4297
Module start 'content' 0.00990.8748 781.2031612.2266
Module end 'content' 0.88480.0013 1,393.429716.1875
Script end 0.8861  1,409.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3801160.0002
Check MTime0.00140.1610160.0001
Mysql Total
Database connection0.00120.134510.0012
Mysqli_queries0.825893.1906650.0127
Looping result0.00060.0725630.0000
Template Total0.851796.120.4259
Template load0.00200.229120.0010
Template processing0.849795.885620.4248
Template load and register function0.00010.009610.0001
states
state_id_array0.00110.128610.0011
state_identifier_array0.00070.074120.0003
Override
Cache load0.00170.1930340.0001
Sytem overhead
Fetch class attribute can translate value0.00080.090630.0003
Fetch class attribute name0.00110.125780.0001
XML
Image XML parsing0.00270.309430.0009
class_abstraction
Instantiating content class attribute0.00000.0023100.0000
General
dbfile0.00400.4510300.0001
String conversion0.00000.001040.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs