Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#577 2009-10-20 23:58:25
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: smd_gallery: super-flexible gallery generator
Hi,
I’m at my wits end trying to create a simple category-based gallery pulled from custom field #1 as I’ve done before. This is what I use:
<txp:smd_gallery category="?custom1">
<a href="{url}" title="{title}"><img src="{thumburl}" alt="{alt}" /></a>
</txp:smd_gallery>
…and it doesn’t ouput anything.
I copied this straight from another installation where it’s working fine. If I replace ?custom1
with an actual category name the gallery appears.
I checked over and over again, that the category is assigned to the images and correctly typed into cf#1, but no go.
Any ideas?
(Txp 4.0.8, smd_gallery 0.51, smd_lib 0.36)
Offline
#578 2009-10-21 06:24:58
Re: smd_gallery: super-flexible gallery generator
2 masa: maybe you should try {custom_1}
(underscore)
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#579 2009-10-21 07:47:21
Re: smd_gallery: super-flexible gallery generator
masa wrote:
the category is assigned to the images and correctly typed into cf#1, but no go.
If the_ghost’s suggestion doesn’t work, try the actual name of your custom field, e.g. category="?gallery_images"
.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#580 2009-10-21 08:49:18
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: smd_gallery: super-flexible gallery generator
Thanks, Victor & Stef,
{custom_1}
didn’t work, but category="?gallery_images"
did – hooray!
I also tracked down the reason: on the local install, where I could use custom1
, I had never bothered to rename the field, so its name is actually custom1.
Offline
#581 2009-11-03 17:30:32
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: smd_gallery: super-flexible gallery generator
This is probably the dumbest question I ever asked, but I just cant find the way to do it!
I am using this as my gallery_nav form:
{navprev}{navthis} of {totalpages}{navnext}
and is displaying something like this:
«
1
of 3
»
but want something like this:
« 1 of 3 »
you can see what I mean here:
www.santygutierrez.com/santy/illustration
Offline
#582 2009-11-03 17:39:25
Re: smd_gallery: super-flexible gallery generator
mlarino wrote:
but want something like this: « 1 of 3 »
Can you wrap the nav in a wrapper div and then use a clear:both CSS rule on the wrapper to position the whole lot under the thumbs? That might give you some more space to play with so it’ll stop wrapping.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#583 2009-11-03 17:50:11
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: smd_gallery: super-flexible gallery generator
Thanks Bloke!
but that is just not working :(
thats why I feel stupid asking this question, I just tried eveything.
you can see now using clear:both
www.santygutierrez.com/santy/illustration
Offline
#584 2009-11-03 21:17:40
Re: smd_gallery: super-flexible gallery generator
mlarino —
Have you tried giving your “empty” div a float:left ? Seems like it might be a float issue.
Offline
#585 2009-11-04 02:45:52
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: smd_gallery: super-flexible gallery generator
Or without float: #navgaleria div {display: inline}
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#586 2009-11-04 09:14:53
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: smd_gallery: super-flexible gallery generator
Thanks guys!
Didnt get it to work, but just realiced I cant substitude >> or << in the navigation with images, so this type of navigation is useless for me… :(
Thanks again
Offline
#587 2009-11-04 09:38:29
Re: smd_gallery: super-flexible gallery generator
mlarino wrote:
Thanks guys!
Didnt get it to work, but just realiced I cant substitude >> or << in the navigation with images, so this type of navigation is useless for me… :(
But you can:
{navprev: <img src=“http://www.xxxx.xx/image_left.png” />}
{navnext: <img src=“http://www.xxxx.xx/image_right.png” />}
Offline
#588 2009-11-04 10:02:29
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: smd_gallery: super-flexible gallery generator
Yes, you are right!
but, why cant that be used with {navprevpageurl} ?
That way the image will disapear if there is no next or previous pages…. :(
Offline