Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Article images with a link to external url
I’m setting up a section of my site as a web design portfolio. Each article will have an image of a site, which I have generated with a <txp:article_image/> tag, followed by a short bit of happy talk generated by a <txp: body /> tag.
How can i make the article_image be a link to the external site I designed?
Offline
Re: Article images with a link to external url
You could store the URI in a custom field (“client_uri”):
<txp:if_custom_field name="client_uri">
<a href="<txp:custom_field name="client_uri"/>" rel="external">
<txp:article_image/>
</a>
</txp:if_custom_field>
Offline
Re: Article images with a link to external url
Works nicely. Thanks!
Offline