Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#496 2009-06-25 12:34:31

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

Re: smd_gallery: super-flexible gallery generator

Hi Stef, all…

I’m not certain as to what I am doing wrong here but I am trying to do something which on the surface seems simple enough but I’m yet to figure it out.

I am using

<txp:smd_gallery objectform="front-page-images" category="front-images" />

with front-page-images form containing

<a href="#"><img src="<txp:site_url />images/{imagedef}" title="{caption}" alt="{alt}" /></a>

What i expect to get is a series if “linked” images from the category front-images with the code looking like

<a href="#"><img src="http://site.tld/images/2.jpg" title="some title" alt="alt here" /></a>
<a href="#"><img src="http://site.tld/images/3.jpg" title="some other title" alt="some other alt here" /></a>

Note that I do not want the width/height.

What I am getting instead is a series of images from the desired category but with additional not wanted info

<a href="http://localhost:8888/images/2.jpg" alt="e-Mobil Art"><img src="http://localhost:8888/images/2.jpg" width="1280" height="960" alt="e-Mobil Art" title="e-Mobil Art" /></a>
<a href="http://localhost:8888/images/3.jpg" alt="IN TRANSITION: Cultural Identities in the Age of Transnational and Transcultural Flux"><img src="http://localhost:8888/images/3.jpg" width="1280" height="960" alt="IN TRANSITION: Cultural Identities in the Age of Transnational and Transcultural Flux" title="IN TRANSITION: Cultural Identities in the Age of Transnational and Transcultural Flux" /></a>
<a href="http://localhost:8888/images/4.jpg" alt="IN TRANSITION: Cultural Identities in the Age of Transnational and Transcultural Flux"><img src="http://localhost:8888/images/4.jpg" width="1280" height="960" alt="IN TRANSITION: Cultural Identities in the Age of Transnational and Transcultural Flux" title="IN TRANSITION: Cultural Identities in the Age of Transnational and Transcultural Flux" /></a>
<a href="http://localhost:8888/images/5.jpg" alt="Ideodrome"><img src="http://localhost:8888/images/5.jpg" width="1280" height="960" alt="Ideodrome" title="Ideodrome" /></a>
<a href="http://localhost:8888/images/6.jpg" alt="In Transition Russia 2008"><img src="http://localhost:8888/images/6.jpg" width="1280" height="960" alt="In Transition Russia 2008" title="In Transition Russia 2008" /></a>
<a href="http://localhost:8888/images/7.jpg" alt="In Transition Russia 2008"><img src="http://localhost:8888/images/7.jpg" width="1280" height="960" alt="In Transition Russia 2008" title="In Transition Russia 2008" /></a>
<a href="http://localhost:8888/images/8.jpg" alt="The Mirror Stage - Audio Visual Perfomance"><img src="http://localhost:8888/images/8.jpg" width="1280" height="960" alt="The Mirror Stage - Audio Visual Perfomance" title="The Mirror Stage - Audio Visual Perfomance" /></a>
<a href="http://localhost:8888/images/9.jpg" alt="The Mirror Stage"><img src="http://localhost:8888/images/9.jpg" width="1280" height="960" alt="The Mirror Stage" title="The Mirror Stage" /></a>
<a href="http://localhost:8888/images/10.jpg" alt="The Mirror Stage - Talks"><img src="http://localhost:8888/images/10.jpg" width="1280" height="960" alt="The Mirror Stage - Talks" title="The Mirror Stage - Talks" /></a>
<a href="http://localhost:8888/images/11.jpg" alt="Visual Language and Media"><img src="http://localhost:8888/images/11.jpg" width="1280" height="960" alt="Visual Language and Media" title="Visual Language and Media" /></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

#497 2009-06-25 12:54:54

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,498
Website GitHub

Re: smd_gallery: super-flexible gallery generator

colak wrote:

What I am getting instead is a series of images from the desired category but with additional not wanted info

Use form (or container) instead of objectform — objectform has a very specific use case for processing the {object} replacement tag, which you are not using in this case.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Online

#498 2009-06-25 13:16:32

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

Re: smd_gallery: super-flexible gallery generator

yep that did it! My hair is safe now!


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

Offline

#499 2009-06-25 18:50:43

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: smd_gallery: super-flexible gallery generator

maniqui wrote:

mrtunes, have you tried the compressed version?

yes this works. can someone explain to me why only compressed versions work on my site? are people installing the fuller version by some other means?

Offline

#500 2009-06-26 02:31:34

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: smd_gallery: super-flexible gallery generator

mrtunes wrote:

can someone explain to me why only compressed versions work on my site? are people installing the fuller version by some other means?

Compressed is just the format in which the plugin is delivered for installation — it’s the same code either way. See here for more explanation.


Code is topiary

Offline

#501 2009-06-26 14:47:12

nejra
Member
From: Groningen
Registered: 2006-07-06
Posts: 38
Website

Re: smd_gallery: super-flexible gallery generator

Wow, this is exactly what I’m looking for. Not much info from my part, but a great plug-in. Very easy, yet very, very flexible! Cheers!

Last edited by nejra (2009-06-26 14:47:41)

Offline

#502 2009-07-02 13:31:47

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: smd_gallery: super-flexible gallery generator

Hi,
Been looking at the posts here and can’t a solution to my problem but I bet I didn’t look hard enough.

I have a number of articles and I need to have multiple images associated with them.
I have 4 category pages showing each of the related articles.
When I click on an article I would like to show the article and its associated images using a thumbnail for images not being displayed in the main image window.

I hope I’m making sense.

How do I get smd_gallery to pull out images associated with an article rather than just images associated with a category.

Pulling my hair out on this one.

Thanks
mic

Offline

#503 2009-07-02 14:52:48

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,498
Website GitHub

Re: smd_gallery: super-flexible gallery generator

mfos wrote:

How do I get smd_gallery to pull out images associated with an article rather than just images associated with a category.

You could put the image IDs into the article image field (comma separated) or list them in a custom field, then use <txp:smd_gallery id="?article_image" /> to get the IDs of the images in the article. Use a Form or the smd_gallery container to format the thumbs/image links how you wish.

Last edited by Bloke (2009-07-02 14:53:25)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Online

#504 2009-07-08 10:00:19

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: smd_gallery: super-flexible gallery generator

Bloke – just came here cos I had a problem… read the thread and now its fixed… you are still a genius, great plugin

Thanks mate :)

Offline

#505 2009-07-08 22:42:20

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: smd_gallery: super-flexible gallery generator

Damn… I am stuck again… and can’t figure it out… not sure if this is a smd_if problem, or a smd_gallery problem…

This is my form:

{grouptagstart}
<a rel="shadowbox[{category}];options={counterType:'skip',continuous:true,animate:false,animSequence:'sync'}"  href="{url}">{object}
</a>{grouptagend}<br /><em>{onchange:category}</em>

This is how I am calling the smc_gallery

<txp:smd_gallery category="corporate" sublevel="all" form="trt-gallery" thumblimit="1" onchange="category" wraptag="ul" break="li" class="trtgallery" />

But when I style it – my li style is applying to all the li tags (obvioulsy) – so I have one thumb for the start of the gallery, then lots of spaces, then another for the next gallery and so on… what is the way around this?

I’ve been using this – but am not sure where to put it as it always just leaves one image :(

<txp:smd_if field="{counter}" operator="eq" value="1"></txp:smd_if>

All help appreciated :)

Offline

#506 2009-07-09 05:24:29

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: smd_gallery: super-flexible gallery generator

Cancel that… homer moment… I seem to be having a few recently :(

I changed my styling to a div instead :)

Offline

#507 2009-07-13 01:35:51

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: smd_gallery: super-flexible gallery generator

Just asking for clarification here… is it possible to use the thumblimit=1 and a css list (without showing the empty li’s)?

Offline

#508 2009-07-13 10:55:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,498
Website GitHub

Re: smd_gallery: super-flexible gallery generator

tye wrote:

Just asking for clarification here… is it possible to use the thumblimit=1 and a css list (without showing the empty li’s)?

Hmm, I think I get where you’re coming from. If you use thumblimit and put the {object} replacement tag in your form, it’ll show empty li’s if wraptag="li" or they are hard-coded in your form. I don’t think objectform helps in this situation but I’ve not thought it through.

If you’re finding it tricky to style because of the left over li’s you have a couple of options:

  1. Don’t use them ;-)
  2. Cheat. Use countform="1:first_image" and make first_image hold the linked {object} tag. Then in your standard form/container just present the links with nothing inside the anchors, e.g. <a href="{url}"></a>, thus your lightbox effect will still work, your thumbnail will be shown but nobody will know about the rest of the anchors

Does that help or have I misunderstood?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Online

#509 2009-07-13 15:49:00

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 819
Website

Re: smd_gallery: super-flexible gallery generator

Is it possible with smd_gallery to show a gallery of 1 image (fancybox!) via a thumb although there are more images in that same (none)category? I know I can exclude other images (!ID), but is there another way? See this page > http://www.waterlijf.nl/txp/ with 2 articles (excerpts!) and one thumb per article both with the same cat. The gallery shows both enlargements (of course!) …

Last edited by RedFox (2009-07-13 15:49:43)

Offline

#510 2009-07-14 01:40:00

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: smd_gallery: super-flexible gallery generator

Running into a small bug that I can’t quite figure out. Here is my form:

<ul class=“productshowcase”>
<txp:smd_gallery category=“wxvision” form=“product.gallery.image” wraptag=”“ limit=“4” offset=“1” class=”“ sort=“Name desc” />
<txp:smd_gallery category=“wxvision” form=“product.gallery.image.hidden” wraptag=”“ offset=“5” class=”“ sort=“Name desc” />
</ul>

However, no matter what value I try for sort, the images always appear by ID. I have renamed them all like this:

wxvision_01.jpg
wxvision_02.jpg
wxvision_03.jpg
etc …

Any ideas? (reference page)


Kevin
(graphicpush)

Offline

Board footer

Powered by FluxBB