Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,813
Website

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

visualpeople
Member
From: Corvallis, Oregon - USA
Registered: 2005-11-16
Posts: 70
Website

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,208

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

Hennie
Member
From: Nederland
Registered: 2009-02-06
Posts: 18
Website

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

#589 2009-11-12 08:35:34

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: smd_gallery: super-flexible gallery generator

Hi,
I am trying to create a thumbnail gallery that paginates every 21 images, but that lauches a lightbox from any of them that can display all the images in the gallery.
right now I have acomplished to show in the lightbox those 21 images, but it doesnt show the images from the rest of the pages.
Is it posible to something like that?

this is the code I am using now:

page:

<txp:smd_gallery category="comic" sublevel="all" form="gallery" pageform="gallery_nav" navbreak="div" navclass="" limit="21" sort="id desc" />

form:

<a rel="lightbox-{category}" href="{url}" title="{caption}">{object}</a>

You can see it here:
www.mlarino.com/santy/comics

Last edited by mlarino (2009-11-12 08:37:24)

Offline

#590 2009-11-12 10:25:49

alanpmcd
Member
Registered: 2009-05-02
Posts: 21

Re: smd_gallery: super-flexible gallery generator

Hi mlarino. I failed to solve the self-same problem with lightbox and ended up using a thing called FancyZoom instead, using more-or-less identical coding to what you’re using.

Here’s Fancy Zoom

Here (I have the added complexity of offering people a choice by picture category) is how my pages look

Hope this helps.

Offline

Board footer

Powered by FluxBB