Summary:
[PATCH] New command page_id / page_alias
Detailed Description:
Sometimes, it can be desirable to have the id or alias of a corresponding page
in another language.
In particular, when you template (or first page) doesn't use menus - sometimes
you have to "hardcode" links.
With {babel action="menu"}, you have only full URLs, and with {menu
start_level="2"} you will have a full hierarchy.
This patch adds a new action (in fact, two) :
{babel action="page_id" page="....."} will echo the id of the corresponding page
in the current language.
You can assign it to a Smarty variable ( {babel action="page_id" page="...."
assign="my_variable"} ) to re_use it in {cms_selflink page=$my_variable}.
The other syntax is : {babel action="page_alias"} and returns the alias instead
of the id.
The patch applies to current SVN : http://pastebin.com/YNCExams
Regards,
Ludovic