can someone send me example of Match[url_alias]?

Author Message

Vytautas Germanavičius

Monday 04 April 2005 8:16:10 am

can someone send me example of Match[url_alias]?

Please: do not send
http://www.ez.no/community/forum/general/multiple_section_assignment/re_multiple_section_assignment__11
or
http://ez.no/ez_publish/documentation/customization/custom_design/override_templates
because from those examples i do not undestand, what is parameter of Match[url_alias].

i have structure:
News
|__folder1
| |__article1
| |__article2
|__folder2
|__article3
|__ article4

And i want to change style of all articles, which are in News folder(or any subfolders of News).

Why this do not work:

[Line_view_article]
...
Match[url_alias]=ALIAS_OF_FOLDER_NEWS

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

bisk

Monday 04 April 2005 11:21:26 am

Please do not open multiple topics on the same subject. One is enough.

Second there might be a bug with url_alias matching see:
http://www.ez.no/community/bugs/match_url_alias_doesn_t_work_for_sub_folders

Normally something like this should be correct:

[line_news_article]
Source=node/view/line.tpl
MatchFile=article_line.tpl
Subdir=templates
Match[url_alias]=news

Where news = yoursite.com/news

Every article below news should be using the override template. Put the override on top in your override.ini.append.php

If it doesn't work, you can assign a section to news and use match section to override.

url_alias matching works for me for a Source=node/view/full.tpl override.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Vytautas Germanavičius

Tuesday 05 April 2005 4:54:53 am

your proposed way doesn't work for me. As i told, i need use different style from section.

If you want to know why, i can tell you: look to http://ez.no/community/forum/developer/problem_with_sections_shared_articles_in_one_section_are_shown_using_templates_from_another_section

{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 20 2025 04:10:41
Script start
Timing: Jan 20 2025 04:10:41
Module start 'layout'
Timing: Jan 20 2025 04:10:41
Module start 'content'
Timing: Jan 20 2025 04:10:43
Module end 'content'
Timing: Jan 20 2025 04:10:43
Script end

Main resources:

Total runtime1.7999 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.0094 592.8125152.6406
Module start 'layout' 0.00940.0029 745.453139.4766
Module start 'content' 0.01221.7865 784.9297537.1563
Module end 'content' 1.79870.0011 1,322.085912.1250
Script end 1.7998  1,334.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.1951160.0002
Check MTime0.00140.0755160.0001
Mysql Total
Database connection0.00060.033710.0006
Mysqli_queries1.746697.0440570.0306
Looping result0.00050.0288550.0000
Template Total1.761697.920.8808
Template load0.00210.114720.0010
Template processing1.759597.759020.8798
Template load and register function0.00010.007110.0001
states
state_id_array0.00110.061310.0011
state_identifier_array0.00510.284420.0026
Override
Cache load0.00180.0988390.0000
Sytem overhead
Fetch class attribute can translate value0.00070.038220.0003
Fetch class attribute name0.00090.048240.0002
XML
Image XML parsing0.00060.031720.0003
class_abstraction
Instantiating content class attribute0.00000.000650.0000
General
dbfile0.00070.0404160.0000
String conversion0.00000.000540.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs