Create UDT using pretty url from news
Posted: Wed Mar 18, 2009 10:42 pm
Hi all,
I would like to create an UDT that will generate a link to file, using the pretty url parameter inside.
F.e. if the page pretty url is like news/12/6/my-first-article then the UDT will create the
link to the file named my-first-article.pdf
something like this
How to extract the pretty-url article name and put it into the UDT?
Thanks a lot,
Miro
I would like to create an UDT that will generate a link to file, using the pretty url parameter inside.
F.e. if the page pretty url is like news/12/6/my-first-article then the UDT will create the
link to the file named my-first-article.pdf
something like this
Code: Select all
echo '<a href="../images/'.$pretty-url.'.pdf">';
echo 'Click here'</a>';
Thanks a lot,
Miro