Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-11-15 14:18:12
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
simple image gallery
I made a simple image gallery by these instructions .
I created section “gallery” and I use it as a menu link.
I have 4 different image categories which addresses are:
http://www.muinasjutupidu.ee/textpattern/pildialbum/?c=kakud
http://www.muinasjutupidu.ee/textpattern/pildialbum/?c=kullid
http://www.muinasjutupidu.ee/textpattern/pildialbum/?c=pistrikud
http://www.muinasjutupidu.ee/textpattern/pildialbum/?c=raehnid
but how to call them?
I want to do like this: when I click on the menu item “gallery” it opens a page where are 4 links to my different galleries, like here .
Offline
Re: simple image gallery
Use a category list
<txp:category_list break="li" this_section="1" wraptag="ul" />
Offline
#3 2006-11-16 11:10:49
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: simple image gallery
jm wrote:
Use a category list
<txp:category_list break="li" this_section="1" wraptag="ul" />
but where I should use it, and how? in page template, in form?
I have page template “gallery_simple”:
<txp:image_index wraptag="div" break="" />
<txp:image_display />
and I use section “Gallery”(uses page temp. “gallery_simple”) as a link in a menu.
and I want that link “Gallery” displays links to my image galleries (4)
dumbuser
Offline
#4 2006-11-20 21:46:51
- anoke
- Archived Plugin Author
- Registered: 2006-04-15
- Posts: 152
Re: simple image gallery
Tere,
- http://textpattern.net/wiki/index.php?title=Txp:image_index_/ example 1
- http://textpattern.net/wiki/index.php?title=Txp:image_display_/ example 1 also
- http://textpattern.net/wiki/index.php?title=Txp:if_category example 2
- http://forum.textpattern.com/viewtopic.php?pid=83119 not so helpful link..
So I’d try In page template (or in misc form called from page):
<txp:if_category>
<txp:image_index />
<txp:image_display />
<txp:else />
<txp:category_list type="image" limit="10" break="li" wraptag="ol" />
</txp:if_category>
Or something.. I didn’t tested it, haven’t had time to try images yet.. :(
- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -
Offline
#5 2006-11-23 13:43:14
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: simple image gallery
I got what I wanted! I made like this:
<txp:category_list categories="raehnid,pistrikud,kullid,kakud" type="image" break="li" this_section="1" wraptag="ul" class="pildialbum" />
<txp:image_index />
<txp:image_display />
thanks to everyone! now I have to figure out how to style the thumbs….
Offline
#6 2006-11-24 11:04:39
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: simple image gallery
Gallex wrote:
now I have to figure out how to style the thumbs….
…and I didn’t.
I want to align thumbs into center and leave 3px space between them. and I am using external css stylesheet.
Offline
#7 2006-11-24 16:28:12
- anoke
- Archived Plugin Author
- Registered: 2006-04-15
- Posts: 152
Re: simple image gallery
Try <div id="imageindex"><txp:image_index /></div> and in CSS #imageindex { text-align:center;}
I’d move image display inside the div too.. You might have to center that another image with margin tricks etc.. Google “css centering” – or do ask again – if in doubt (:
3px between the images is a bit hard. I would take the easy route and start liking 4px or 2px between the images. ( #imageindex img { padding: 2px; } or something.. )
(I couldn’t subscribe to the RSS feed btw.. No hits are returned in the reader. I don’t like birds – I know several birdwatchers though – but I’m keen in learning that language…)
- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -
Offline
#8 2006-11-25 12:59:54
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: simple image gallery
anoke wrote:
Try <div id="imageindex"><txp:image_index /></div> and in CSS #imageindex { text-align:center;}
thanks, aligning works well now, but…all thumbs are in one column now (second below the first), I would like to display them in a row (from left to right). look at yourself homepage
(I couldn’t subscribe to the RSS feed btw.. No hits are returned in the reader.
weard…I will deal with this later.
I don’t like birds – I know several birdwatchers though
that’s a pity…
but I’m keen in learning that language…)
not the easiest languages to learn I have heard :)
Offline
#9 2006-11-25 15:14:01
- anoke
- Archived Plugin Author
- Registered: 2006-04-15
- Posts: 152
Re: simple image gallery
<txp:image_index break="" />
and maybe #imageindex img{ padding: 4px; display: inline; }
?
- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -
Offline
#10 2006-11-26 11:22:23
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: simple image gallery
anoke wrote:
<txp:image_index break="" />
and maybe#imageindex img{ padding: 4px; display: inline; }
?
yes, brake=”“ was the magic word and margin: 4px; not padding. thanks
Offline
#11 2009-04-05 20:23:00
- millart
- New Member
- Registered: 2009-02-27
- Posts: 2
Re: simple image gallery
I am an entry level user. I’m using TextPattern 4.08.
I want to add a couple of simple photo galleries to my blog.
I tried the directions listed here: http://textpattern.com/faq/138/can-i-make-an-image-gallery.
This seems to work only for one gallery and the instructions were posted in 2005 so they’re not quite relevant.
Any help will be greatly appreciated!
_
Offline
#12 2009-04-05 21:11:08
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: simple image gallery
Yes, things have improved a lot since then.
Take a look at smd_gallery
It seems a bit daunting at first, but that’s the price you pay for flexibility.
That said, Stef supplies loads of sample markup for various gallery styles – Lightbox, hover&swap, pop-up windows – to get you started. Check out the documentation/help.
There’s hardly anything you couldn’t achieve with smd_gallery.
Offline
Pages: 1