Hello,
I have been trying to get this code to work:
{if p_url != ""}<a href="http://{p_url}" title="">{/if}{p_name}{if p_url != ""}</a>{/if}Where variable p_url is an optional text field in the PUBLISH page and is filled with data such as http://www.site.com
and variable p_name is a required text field in PUBLISH page that has the name of the link.
The problem is p_url is a website address so inside href=”” I am getting a whole separate link tag. I want to fit p_url such that is becomes the link of p_name. Is it possible to take the data as it is (http://...) and fill it in href=“http://...” without EE knowing it was a hyperlink?
It’s something like {url_or_email_as_author} only I want it to be {p_url_as_p_name}?
Thanks in Advance!