Forums / Developer / can someone send me example of Match[url_alias]?

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}