Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-21 14:59:38

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

thickbox (article + article image)

Hi,

I hope someone can help me solve this problem.
I’m using article list with article image thumbnails and some textual info on my portfolio page.
Each article thumbnail should be a link to the thickbox with big article image and some content.

I’ve tried to do this but it isn’t working:

1) On my page I have article_custom list:

<txp:if_article_list>
<txp:chh_article_custom listform=“projects” limit=“1000” category=“interactive” section=“interactive” />
<txp:else />
<div id=“myOnPageContent”>
<txp:article form=“project”/>
</div>
</txp:if_article_list>

2) The form “projects” contains the following code:

<a class=“thickbox” href=”<txp:permlink/>#TB_inline?height=480&amp;width=680&amp;inlineId=myOnPageContent”><txp:article_image thumbnail=“1” /></a>

When I click on image thumbnail the thickbox opens with empty content, so I tried several things including putting the article form inside “projects” form (but then I got all of the articles listed).
Is there any better solution to accomplish this?

Thank you for your help!

Last edited by fuls (2007-10-21 15:00:57)

Offline

#2 2007-10-21 17:08:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: thickbox (article + article image)

searching this forum might help you in finding a solution. A quick search returned this among other results.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2007-10-21 18:08:21

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

Re: thickbox (article + article image)

Thanks colak, I’ve already found that post but I can’t figure it out anyway.

Can someone help, please?

Last edited by fuls (2007-10-21 21:59:41)

Offline

#4 2007-10-22 05:08:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: thickbox (article + article image)

I take it for granted that your form “projects” is saved as an article form
Is the article opening ok with your code without the thickbox?

ie if you use

<a href="<txp:permlink/>"><txp:article_image thumbnail="1" /></a>
instead of
<a class="thickbox" href="<txp:permlink/>#TB_inline?height=480&amp;width=680&amp;inlineId=myOnPageContent"><txp:article_image thumbnail="1" /></a>


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2007-10-22 14:17:39

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

Re: thickbox (article + article image)

yes, that is working and form “projects” is an article form.

Offline

#6 2007-10-22 14:49:26

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: thickbox (article + article image)

i am by no means an expert in this (not even close) but is their a url we can look at. Sometimes it is something very obvious.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2007-10-22 14:57:39

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

Re: thickbox (article + article image)

thanks, but I’ll try to figure out something else….if nobody can help me on this matter.

Offline

Board footer

Powered by FluxBB