{ARTICLE_ALIAS} macht Probleme

Hier bekommst Du deutschsprachigen Support. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
Post Reply
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

{ARTICLE_ALIAS} macht Probleme

Post by santscho »

Im Artikel "Test Artikel" wird beim Einsatz von {ARTICLE_ALIAS} wie gewuenscht "testartikel" ausgegeben.

Jetzt habe ich aber im Artikel ein CP Teaser/Artikellink welcher auf einen Artikel mit dem Namen "Photo Of The Week" verlinkt. Wenn ich den CP auf sichtbar stelle, wird {ARTICLE_ALIAS} nicht mehr als "testartikel" sondern als "photo-of-the-week" ausgegeben. Wieso, weshalb, warum?

Cheers,
Ralph
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: {ARTICLE_ALIAS} macht Probleme

Post by Oliver Georgi »

Wo kommt denn der Ersetzer her? Standard ist der aber nicht, oder ich finde den nicht.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: {ARTICLE_ALIAS} macht Probleme

Post by flip-flop »

Das ist einfach nur ein TAG von vielen aus einem frontend_render Script. -> Standard Tags zusammengefasst
// {ARTICLE_ALIAS} -> ARTICLE_ALIAS replacement
// -----------------------------------------------------
if( ! (strpos($content["all"],'{ARTICLE_ALIAS}')===false)) {
$content["all"] = str_replace('{ARTICLE_ALIAS}', $content['articles'][$content['article_id']]['article_alias'], $content["all"]);
}
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

Re: {ARTICLE_ALIAS} macht Probleme

Post by santscho »

Jaja... der ist von flipflop.
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org
Post Reply