Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Get item stripped url in template
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Get item stripped url in template

Get item stripped url in template 16 years, 8 months ago #3960

Hello.

I would like to know how to get Artio's JoomSEF strippped and trimed item url in a template? Let's make an example.

Now I have this php code before the HEAD statement:
$database->setQuery( \"SELECT title FROM #__content WHERE id='\".$_GET['id'].\"'\" );
$title = $database->loadResult();


and this code, where I want the title to appear:
echo $title


Now, I don't want to use the title, since it has some special characters and the created link isn't useful in a browser. The method I use now has nothing to do with JoomSEF.

My question is how can I use Artio's url creation to make my desired links to the content items - with no special characters, lowercase and with dashes instead of spaces? Something like this:
mydomain.com/en/stripped-url-to-content-item.html

the bolded part is what I'm interested in. So, I would like to get this part of the created URL in a template. Does anyone know how to code it? I've been looking through the JoomSEF code, but nothing seemd to work on-the-fly - need some more experienced coders ;-)
Last Edit: 16 years, 8 months ago by bobysolo. Reason: didn't display the php code right
  • Page:
  • 1
Přihlášení uživatele Prázdný