Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Wrap href from one CF tag around another

$
0
0

Hi!

 

I have a tag called #PubsPageLink# that contains an href link, but I want the #title# tag to use that same variable, as well.

 

Obviously, using... <a href='http://#PubsPageLink#'>#title#</a> ...is too simplistic an approach. But what would be an effective way to grab that href variable and apply it to separate tag?

#PubsPageLink# is currently setup to output a text link that reads "Read More..."


<cftry>

<CFQUERY NAME="Pubs" datasource="Library" maxRows="4">

SELECT citation, title, journalName, PubsPageLink,

Year(FROM_UNIXTIME(Pubs.datePublishedConfirmed)) AS Date

FROM Pubs

ORDER Pubs.DatePublishedConfirmed DESC

</cfquery>

 

<cfoutput query="Pubs">

<cfif #citation# is not "">

                   

<strong>#title#</strong> | #PubsPageLink#<em>#journalName#</em> #date#

<br><br>

</cfif></cfoutput>

<cfcatch></cfcatch>

</cftry>


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>