Embarrassing Question
-
swathes
Embarrassing Question
I know its prob really easy, but having mental block... How do I print the url of the current page...?
Re: Embarrassing Question
interesting - I would have thought there would be a Tag for that, but I don't see one... looks like you'll have to create a User-Defined Tag. Maybe this tag can be incorporated into the core for the next release...
Re: Embarrassing Question
Code: Select all
<?php
echo $_SERVER['SCRIPT_NAME']
?>
http://forum.cmsmadesimple.org/index.ph ... w.html#new
Last edited by petert on Sat Dec 09, 2006 10:27 pm, edited 1 time in total.
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!
CMSMS rules!
Now they call it Joomla, but it still sucks!
CMSMS rules!
Re: Embarrassing Question
midnightmind recently posted a url to this article which may help you.
Re: Embarrassing Question
I'm confused - do I just copy and paste the script from that page into my user-defined tag? If that's what I'm supposed to do, it doesn't work...
Re: Embarrassing Question
The script creates a variable $_SERVER['FULL_URL']. You'll probably want to
at the end if you use it in a UDT.
Code: Select all
echo $_SERVER['FULL_URL']
