Menu Content

Podpora

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

How to display an url from a module/component
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 3 (Joomla 1.5 compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: How to display an url from a module/component

How to display an url from a module/component 13 years, 11 months ago #15024

pretty simple thing I am trying to do but I can't seem to be able to do it....

I need to display a converted SEF url in a webpage so a client can select & copy it.

is there a tag of some sort I can but around the url so that joomsef know that it must translate it?

exemple :

<div>index.asp?a=1&b=2</div>

should display as

<div>/patha/pathb/</div>

it work when I do it as a fake href tag but it is annoying to have the href"" around it:

<div>href="index.asp?a=1&b=2"</div>

give me :

<div>href="/patha/pathb/"</div>

is there a clean way of doing it?
The topic has been locked.

Re:How to display an url from a module/component 13 years, 11 months ago #15035

  • dajo
  • OFFLINE
  • Posts: 5069
You need to use PHP to achieve this:
<div><?php echo JRoute::_('index.asp?a=1&b=2'); ?></div>

Best regards,
ARTIO Support Team
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný