PDA

View Full Version : Self Link


mrpatate
09-24-2006, 10:33 PM
ANd yet another question;

What code can I put to have the article URL shows up.

i.e. If I want the root link I simply put in {ROOT} and whatever is the root will show up in the text. Now if I actually want the URL of the page i'm on at the present moment show up in the screen.

If it doesn't exist, where do I configure it?

ironAlex
09-25-2006, 04:23 PM
You can add custom tags, example:
- open template_scripts/header.php,
add next line after block of code:


$template_manager->assign($_SERVER['REQUEST_URI'], '/{CURRENT_URL}/');


You can combine it with

$template_manager->assign('http://' . $_SERVER['SERVER_NAME'] . '/' . $_SERVER['REQUEST_URI'], '/{CURRENT_URL}/');

to get full address

or simply put in template
{ROOT}{CURRENT_URL}
if you don’t use subfolder

mrpatate
09-26-2006, 02:56 AM
Working like a charm, you guys are great!!!
Thanks!

Jonasws
07-17-2007, 10:51 AM
Don´t work for me... please explain again. Btw,, I´m using a subfolder for my Vivvo.

I want to have the full current URL in article_tools_email_print.tpl

Jonas