Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2010-03-10 23:10:02
- jmart
- Member
- Registered: 2008-08-25
- Posts: 68
Re: Creating a photo gallery using smd plugins
Got it. Thanks for the tips.
I assigned a category for the images but they are still not displaying properly.
I never assigned a category for the images on the other site so that can’t be a reason.
Offline
Re: Creating a photo gallery using smd plugins
jmart wrote:
I assigned a category for the images but they are still not displaying properly.
What do you mean ‘properly’? I can see 4 images per group: 1 thumbnail and 3 links beneath that. When I click them they show the main image, so smd_gallery is doing its job. What do you expect to happen when you click the image/links?
If you’re expecting a lightbox popup effect, check that your paths to external scripts (js/css) are all correct. Use Firebug’s Net pane to track down stuff quickly here. For starters, your jquery file isn’t being found at the moment…
Last edited by Bloke (2010-03-10 23:22:28)
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
Offline
#18 2010-11-01 21:09:45
- Dimitri
- Member

- From: Johannesburg
- Registered: 2010-10-31
- Posts: 129
Re: Creating a photo gallery using smd plugins
portfolio
|--> bloke
|--> jmart
|--> jandw
|--> ...
and the texts u wrote
I will appreciate it if you create a tutorial for newbies like me. I have been to your website, I cannot make head or tails of your docs. I do not want to use the light box.
I just want it to be shown on 1 page showing all this below.
portfolio
|—> bloke | list of images Jandw | list of images Jmart | list of imagesThanx
i tried something like this but it still pulling all the images (5 categories of images into each category), gave up after my 4th hour of time-a-wasting
<txp:smd_gallery category="main-gallery" sublevel="all" wraptag="ul" imgsize="200" grouplimit="1" >
<li>
<h2>{category_title}</h2>
<txp:smd_gallery category="main-gallery" sublevel="all" wraptag="ul" break="li" imgsize="200" >
<img src="{url}" width="{width}" />
</txp:smd_gallery>
</li>
</txp:smd_gallery>
Last edited by Dimitri (2010-11-01 21:11:08)
<txp:way_too_cool />
Offline
#19 2011-02-03 16:02:49
- drudog
- Member
- Registered: 2011-02-01
- Posts: 20
Re: Creating a photo gallery using smd plugins
Dimitri wrote:
i tried something like this but it still pulling all the images (5 categories of images into each category), gave up after my 4th hour of time-a-wasting
<txp:smd_gallery category="main-gallery" sublevel="all" wraptag="ul" imgsize="200" grouplimit="1" > <li> <h2>{category_title}</h2> <txp:smd_gallery category="main-gallery" sublevel="all" wraptag="ul" break="li" imgsize="200" > <img src="{url}" width="{width}" /> </txp:smd_gallery> </li> </txp:smd_gallery>
I think you mis-used the sublevel tag in your example. I think (not sure) it’s a true/false statement so saying “sublevel=1” would mean to include all the sublevels and “0” would include no sublevels.
Offline
Re: Creating a photo gallery using smd plugins
drudog wrote:
I think you mis-used the sublevel tag in your example.
Normally yes, but this an smd_ plugin so all bets are off! sublevel="all" is valid to get all category levels. Supplying a number limits the category to the given level. Will look at Dimitri’s problem later when I get a moment (sorry I missed this thread).
Last edited by Bloke (2011-02-03 17:09:16)
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
Offline