Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-14 15:54:50

digicammad
Member
Registered: 2005-10-11
Posts: 71

Display thumb against article list

I’m trying to get a thumbnail displayed against my article excerpts. I have installed hak_article_image, which works but only when I am using the default form. The articles in question have images in them and are using an override form to show the image and then content.

Is there any way to get the thumbnails to show in the article list for articles which use override forms?

Offline

#2 2005-10-14 18:54:04

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Display thumb against article list

I don’t use overide forms much but it would suprise me that they would cause this not to work. Definitely need to look into that if it’s the case.

You have the call to hak_article_image in the overide form right?
Does the built in article_image tag work?
Could you post your form code or send it to me in an email?


Shoving is the answer – pusher robot

Offline

#3 2005-10-14 19:02:18

digicammad
Member
Registered: 2005-10-11
Posts: 71

Re: Display thumb against article list

default form code
———————————

<h2><txp:permlink><txp:title /></txp:permlink> &#183; <txp:posted /> </h2>
<txp:if_excerpt>
<txp:if_article_list>
<!— display the short version —>
<txp:hak_article_thumb /><h3><txp:excerpt/></h3>
<read_more><txp:permlink><h3>read more…</h3></txp:permlink></read_more>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_article_list>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_excerpt>

<div align=“center”><img src=”<txp:site_url />images/1.gif” style=“height:1px;width:400px” class=“divider” alt=”“ /></div>

——————————————————-

gallery form code (override form)
———————————————————-
<h2><txp:permlink><txp:title /></txp:permlink> &#183; <txp:posted /> </h2>
<txp:if_excerpt>
<txp:if_article_list>
<!— display the short version —>
<h3><txp:excerpt/></h3>
<read_more><txp:permlink><h3>read more…</h3></txp:permlink></read_more>
<txp:else />
<!— display the complete article —>
<txp:article_image />
<h3><txp:body /></h3>
</txp:if_article_list>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_excerpt>

<div align=“center”><img src=”<txp:site_url />images/1.gif” style=“height:1px;width:400px” class=“divider” alt=”“ /></div>

—————————————————————————————-

The gallery form shows the full size image with the article. I want the thumbnail to show in the article list which should still use the default form if I understand it correctly.

The blog URL is http://www.aholidayinturkey.co.uk/ahitblog

Thanks for the help.

Offline

#4 2005-10-14 19:04:24

digicammad
Member
Registered: 2005-10-11
Posts: 71

Re: Display thumb against article list

Hmmm, that didn’t work. How do I post code so it displays?

Offline

#5 2005-10-14 19:32:49

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Display thumb against article list

Try wrapping it in between code tags, digicammd.

Last edited by Elenita (2005-10-14 19:36:54)

Offline

#6 2005-10-14 19:53:46

digicammad
Member
Registered: 2005-10-11
Posts: 71

Re: Display thumb against article list

Gallery (override) form code

“<!— <h2><txp:permlink><txp:title /></txp:permlink> · <txp:posted /> </h2>txp:if_excerpt>
<txp:if_article_list>
<!— display the short version —>
<h3><txp:excerpt/></h3>
<read_more><txp:permlink><h3>read more…</h3></txp:permlink></read_more>
<txp:else />
<!— display the complete article —>
<txp:article_image />
<h3><txp:body /></h3>
</txp:if_article_list>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_excerpt>

<div align=“center”><img src=”<txp:site_url />images/1.gif” style=“height:1px;width:400px” class=“divider” alt=”“ /></div>

—————————————————————————————————-

default form code
——————————

<h2><txp:permlink><txp:title /></txp:permlink> · <txp:posted /> </h2>
<txp:if_excerpt>
<txp:if_article_list>
<!— display the short version —>
<txp:hak_article_thumb /><h3><txp:excerpt/></h3>
<read_more><txp:permlink><h3>read more…</h3></txp:permlink></read_more>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_article_list>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_excerpt>

<div align=“center”><img src=”<txp:site_url />images/1.gif” style=“height:1px;width:400px” class=“divider” alt=”“ /></div>

—>

I want the thumbnails to display on the article list, but to leave the gallery form as it is at the moment.”

Last edited by digicammad (2005-10-14 19:55:16)

Offline

#7 2005-10-14 20:13:08

digicammad
Member
Registered: 2005-10-11
Posts: 71

Re: Display thumb against article list

This is the default form which needs to display the thumbnails in the article list

[code]<h2><txp:permlink><txp:title /></txp:permlink> &#183; <txp:posted /> </h2>
<txp:if_excerpt>
<txp:if_article_list>
<!— display the short version —>
<txp:hak_article_thumb /><h3><txp:excerpt/></h3>
<read_more><txp:permlink><h3>read more…</h3></txp:permlink></read_more>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_article_list>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_excerpt>

<div align=“center”><img src=”<txp:site_url />images/1.gif” style=“height:1px;width:400px” class=“divider” alt=”“ /></div>
[/code]

and this is the gallery form code, which I reckon needs to stay the same as I only want the image and content, not the thumbnail.

[code]<h2><txp:permlink><txp:title /></txp:permlink> &#183; <txp:posted /> </h2>
<txp:if_excerpt>
<txp:if_article_list>
<!— display the short version —>
<h3><txp:excerpt/></h3>
<read_more><txp:permlink><h3>read more…</h3></txp:permlink></read_more>
<txp:else />
<!— display the complete article —>
<txp:article_image />
<h3><txp:body /></h3>
</txp:if_article_list>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_excerpt>

<div align=“center”><img src=”<txp:site_url />images/1.gif” style=“height:1px;width:400px” class=“divider” alt=”“ /></div>[/code]

Offline

#8 2005-10-14 20:14:55

digicammad
Member
Registered: 2005-10-11
Posts: 71

Re: Display thumb against article list

Am I just being thick? The code tags haven’t made any difference.

Offline

#9 2005-10-14 20:18:19

digicammad
Member
Registered: 2005-10-11
Posts: 71

Re: Display thumb against article list

Hakjoon I’ve emailed you the code, hope you don’t mind.

Offline

#10 2005-10-14 20:28:16

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Display thumb against article list

digicammd, the code should be wrapped in code tags with <> brackets. I’d provide you with an example, but Textile isn’t cooperating today. Think what you did in two posts prior, but not using the [] brackets.

Offline

#11 2005-10-14 20:34:23

digicammad
Member
Registered: 2005-10-11
Posts: 71

Re: Display thumb against article list

Right, thanks Elenita.

Default form, which I want to show the article list with the thumbnails where available

<code><h2><txp:permlink><txp:title /></txp:permlink> &#183; <txp:posted /> </h2>
<txp:if_excerpt>
<txp:if_article_list>
<!— display the short version —>
<txp:hak_article_thumb /><h3><txp:excerpt/></h3>
<read_more><txp:permlink><h3>read more…</h3></txp:permlink></read_more>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_article_list>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_excerpt>

<div align=“center”><img src=”<txp:site_url />images/1.gif” style=“height:1px;width:400px” class=“divider” alt=”“ /></div>
</code>

Gallery (override) form, which I think needs to stay as is, I don’t want thumbnails in the article.

<code><h2><txp:permlink><txp:title /></txp:permlink> &#183; <txp:posted /> </h2>
<txp:if_excerpt>
<txp:if_article_list>
<!— display the short version —>
<h3><txp:excerpt/></h3>
<read_more><txp:permlink><h3>read more…</h3></txp:permlink></read_more>
<txp:else />
<!— display the complete article —>
<txp:article_image />
<h3><txp:body /></h3>
</txp:if_article_list>
<txp:else />
<!— display the complete article —>
<h3><txp:body /></h3>
</txp:if_excerpt>

<div align=“center”><img src=”<txp:site_url />images/1.gif” style=“height:1px;width:400px” class=“divider” alt=”“ /></div>
</code>

The thumbnails show for articles which are not set to use the gallery form.

Offline

#12 2005-10-14 21:13:46

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Display thumb against article list

Just so I’m clear on what you are seeing.

The default form works fine, but if you set it to use the Gallery form the article-image is not showing up at all?

I’m unfortunately about to leave to go out of town for the weekend, but just from some quick testing it doesn’t seem to be tied to using the override form because I’m getting images to show using the default form and an override form but I haven’t figured out why it doesn’t work with your forms.

I promise to take a look at it when I get back. Oh and I got your email.

Last edited by hakjoon (2005-10-14 21:14:13)


Shoving is the answer – pusher robot

Offline

Board footer

Powered by FluxBB