Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-30 00:46:15

mrjysta
Member
Registered: 2008-09-22
Posts: 89

Various image questions

I’m using hak_article_image and have assigned multiple images to various articles. Have a couple of questions/

How do I render the images alt tags underneath? Can’t seem to find any tags in TXP or the plug-in. <txp:hak_image_alt wraptag=“h3”/> doesn’t render anything (i’ve checked the image’s alt field)

Also is there any way of assigning multiple categories (i.e. like articles) to images? Need to display a particular article image which will have a category that the other images associated with that article don’t have.

Offline

#2 2009-01-31 13:10:50

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Various image questions

Re hak:
You probably use the above tag immediately where you want the alt to appear, right? You have to put a hak_article_image tag where you want the alt text displayed. That tag points to a form with the desired hak_image_alt in it.

In your page:
<txp:hak_article_image form="alt_form" />

And in form “alt_form”:
<txp:hak_image_alt wraptag="h3" />

Feels a little like eating with chopsticks, but it’s the same procedure as with <txp:article form="form_name" />.

Last edited by uli (2009-01-31 13:18:44)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2009-02-02 16:07:37

mrjysta
Member
Registered: 2008-09-22
Posts: 89

Re: Various image questions

Could I call the form into an existing form?
e.g.
<div class=“pfilebox”><txp:hak_article_thumb limit=“1” link=“1” linktype=“page” linkclass=“pfilepic”/><txp:hak_article_image form=“alt_form” /></div>

I can’t really call the ‘alt_form’ from my main page because I am using:
<txp:article limit“50” form=“bass_mainThumbs” /> Where ‘bass_mainThumbs’ is the above form.
This will populate a series of 50 div’s containg a thumbnail link to the article pages/.

Offline

Board footer

Powered by FluxBB