Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2010-09-09 17:25:56
- shadden
- New Member
- Registered: 2010-07-27
- Posts: 8
Re: Include all images in category instead of entering Image IDs
Hi Bloke,
Let me clarify further for you (and yes, you were correct, I didn’t have the smd_gallery tag encapsulated by an article tag, so that was the first of my problems…).
Here’s what I started with (within a page template called “portfolio”):
@<!— Start Advanced Gallery Html Containers —>
<div id=“gallery” class=“content”>
<div class=“slideshow-container”>
<div id=“loading” class=“loader”></div>
<div id=“slideshow” class=“slideshow”></div>
</div>
</div>
<txp:article form=“single” />
<div id=“thumbs” class=“navigation”>
<txp:article listform=“gallery_publications” form=“gallery_publications” sort=“Posted asc” limit=“1” />
</div>@
Then in the ‘gallery’ form (form type: article):
<txp:upm_article_image form="article_image_form" wraptag="ul"
class="thumbs noscript" />
and in the ‘article_image_form’ called from the gallery form (form type: misc):
@<li><a href=”<txp:upm_img_full_url />” title=”<txp:upm_img_caption />” class=“thumb”><img src=”<txp:upm_img_thumb_url />” alt=”<txp:upm_img_alt />” /></a>
<div>
<div><txp:upm_img_alt /> </div>
<div><txp:upm_img_caption /></div>
</div>
</li>
@
I followed the instructions of how to do this from this post using gallerific and jquery: http://fuelyourcoding.com/easy-to-update-thumbnail-gallery-using-textpattern-and-galleriffic/comment-page-1/#comment-3220.
It works perfectly. However, this site will have many galleries and thousands of images, so I don’t want to have to search through the images to find their specific ID to enter in the write tab. The images are all sorted into their appropriate category. Therefore, I want the form to call all the images from an image category specified within each article, not from the individual image #s entered in each article.
I thank you in advance for your help – I so desperately want this to work and it seems to be just outside my grasp…
Offline