Search
Other Sourcerer questions
Forum

Build a link with Sourcerer and Joomla!DB-fields

Thomas Küls's Avatar Thomas Küls
Hello.
I want to create a link, containingf of to fields.

{feld 3} is defined as TEXT and works well, when I place it in an article.
{feld 71} is defined as URL and works well, when I place it in an article (shows link and works).

What I want is to make a combination of both to create a Link with href = {feld 71} and content = {feld 3}
<a href="{feld 71}">{feld 3}</a>
Of course that doesn't work with Joomla. That's why I use Sourcerer.

But I tried the following lines and I get no result:

{source}<?php echo '<a href="{feld 71}">{feld 3}</a>'; <?{/source}

{source}<?php echo "<a href='{feld 71}'>{feld 3}</a>"; <?{/source}

{source}<?php echo '<a href="'; <?{/source}{feld 71}{source}<?php echo '">'; <?{/source}{feld 3}{source}<?php echo '</a>'; <?{/source}

Is Sourcerer notr able to work with fields od did I make a mistake?
Peter van Westen's Avatar Peter van Westen ADMIN
Of course that doesn't work with Joomla
Why of course?
What is the result?

If the {feld} tags don't output what you want in Joomla normally, then why would it magically work through Sourcerer?
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
And I see your php code syntax is wrong.
You are ending with:
<?
instead of with:
?>
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription