Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-07-28 00:58:00

chrisgoodhue
Member
Registered: 2010-06-06
Posts: 20

Fancy Box gallery category

Hi all,

I am having a lot of trouble getting my lightbox to work properly.

I want to have two sets of thumbnails. One for Design work and one for Photography. Both use the same gallery form but only display images from their specific category. I thought that by including the following, it would accomplish this.

<txp:smd_gallery category=“design” sublevel=“all” form=“gallery” />

<txp:smd_gallery category=“photography” sublevel=“all” form=“gallery” />

<a rel=“fancybox-{<txp:category 1 />}” href=”{url}”> <txp:thumbnail id=”{id}” />
</a>

Am I way off?
-Chris

Offline

#2 2010-07-28 01:19:25

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: Fancy Box gallery category

chrisgoodhue

Hello. I’m not familiar with the smd_gallery plugin but I’d hazard a guess you need to do something like…

<txp:smd_gallery category=“design” sublevel=“all” form=“gallery”>
  <a rel=“fancybox-{<txp:category 1 />}” href=”{url}”> <txp:thumbnail id=”{id}” /></a>
</txp:smd_gallery>

<txp:smd_gallery category=“photography” sublevel=“all” form=“gallery” />
  <a rel=“fancybox-{<txp:category 1 />}” href=”{url}”> <txp:thumbnail id=”{id}” /></a>
</txp:smd_gallery>

But I’m probably wrong. Where is Stef when you need him? Talking of which, just for your future reference. When asking for help with a particular plugin — like smd_gallery — it’s probably better to find it’s post on the plugin support sub-forum because most plugin authors will setup a watch for their plugins there and will automatically get an email when someone writes a new post to their thread.

Hope that helps.


Steve

Offline

#3 2010-07-28 01:31:00

chrisgoodhue
Member
Registered: 2010-06-06
Posts: 20

Re: Fancy Box gallery category

that doesn’t seem to be working…
i’ll head over to the plugin forum

thanks for your help!

Offline

#4 2010-07-28 01:40:06

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

Re: Fancy Box gallery category

chrisgoodhue wrote:

that doesn’t seem to be working…

You probably copied the code with all its curly quotes, right? Make them straight ones. If that doesn’t work, please be a little more specific to help us help you.

i’ll head over to the plugin forum

Umm, Steve linked you to the correct forum …


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

Offline

#5 2010-07-28 04:57:45

chrisgoodhue
Member
Registered: 2010-06-06
Posts: 20

Re: Fancy Box gallery category

What I’m trying to do is have the “Design” gallery appear when you click on the thumb of an image in the “Design” category and the same for the “Photography” category.

In my page, I have this:
<txp:smd_gallery sort=“random” category=“photography” sublevel=“all” form=“gallery” />
<txp:smd_gallery sort=“random” category=“design” sublevel=“all” form=“gallery” />

In my gallery form, I have this:
<a rel=“fancybox-{category}” href=”{url}” title=”{category_title}: {caption}”>
<txp:thumbnail id=”{id}” /> </a>

Everything I have been reading leads me to believe the info above is right, but it is not working for me.

Any ideas?

Offline

Board footer

Powered by FluxBB