Page 1 of 1
Does a {ALIAS} RT exist?
Posted: Fri 29. Sep 2006, 19:38
by meeces
Please forgive if this is obvious to you... but not to me. Searched everywhere for a simple tag that returns only the category alias that you are currently in. Would be very handy for creating links, plus a nice addition to the {TEASER_EX} tag.
Thanks...
![Shocked :shock:](./images/smilies/icon_eek.gif)
Re: Does a {ALIAS} RT exist?
Posted: Fri 29. Sep 2006, 20:31
by meeces
I guess all you have to do is print [acat_alias] but I'm no good with php...
Posted: Fri 29. Sep 2006, 21:29
by pepe
![Idea :idea:](./images/smilies/icon_idea.gif)
Try this.....
[PHP]
// find alias-name and give back
$alias = $GLOBALS['content']['struct'][($GLOBALS['aktion'][0])]['acat_alias'];
echo $alias;
[/PHP]
Posted: Fri 29. Sep 2006, 22:20
by meeces
pepe wrote:![Idea :idea:](./images/smilies/icon_idea.gif)
Try this.....
[PHP]
// find alias-name and give back
$alias = $GLOBALS['content']['struct'][($GLOBALS['aktion'][0])]['acat_alias'];
echo $alias;
[/PHP]
That worked perfectly. Can I buy you a beer? Thanks!
Posted: Thu 28. Jun 2007, 22:29
by bepposun
Thanks, for the alias of the upper level category I use now:
$alias = $GLOBALS['content']['struct'][($GLOBALS['LEVEL_ID'][3])]['acat_alias'];
echo $alias;
Seems to work.
Cheers, Beppo