Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Gallery plugins?
jsoo wrote:
The linked Tip is fine, but predates Txp 4.3.0. With 4.3.0, you no longer need an image plugin to do this.
Oops. I was focused on the Galleria portion, I didn’t take time to think about the plugin not being needed any longer. Sorry about that.
Last edited by maverick (2011-03-05 22:03:20)
Offline
#14 2011-03-05 22:45:59
- ali.jubilee
- Member
- Registered: 2011-03-05
- Posts: 15
Re: Gallery plugins?
I am now getting errors from the plugin I removed… I found the default pages/forms and as far as I know there shouldn’t be anything directing to the plugin but clearly I am wrong..
http://www.jubilantcreations.com/new/articles/
Last edited by ali.jubilee (2011-03-05 22:51:50)
Offline
#15 2011-03-05 22:52:09
- ali.jubilee
- Member
- Registered: 2011-03-05
- Posts: 15
Re: Gallery plugins?
jsoo wrote:
ali.jubilee wrote:
I want to be able to post between two and ten pictures in a post
OK, so article images are the way to go. For a given post, put the images you want in the article-image field, using image IDs separated by commas, e.g.:
2,7,14
In the article form (Presentation -> Forms) you’re using to format posts (probably the default
form), add the images
tag:
<txp:images break=""><txp:thumbnail link="1" /></txp:images>
Alternatively, you could put the above code directly into the article body.
Once you have that working we’ll sort out Galleria.
Nice! That works!
Offline
Re: Gallery plugins?
OK, good. Now to integrate Galleria into Txp. Simplest thing is to upload the needed files to the server, just as you have with the static site you linked above. Then put the needed script
tags into the page template that displays the page with the gallery. That is, just copy the three script
tags from the static HTML page you linked, and paste them into the page template at the appropriate spots. (Page templates are in Presentation -> Pages. You’ll have to select the correct page template; the one used by the section containing the gallery page. Check Presentation -> Sections to find which template this section uses.)
Then you’ll just need to put the div id="gallery"
around the images. Two ways to do that:
<div id="gallery"><txp:images break=""><txp:thumbnail link="1" /></txp:images></div>
or
<txp:images wraptag="div" html_id="gallery" break=""><txp:thumbnail link="1" /></txp:images>
You might prefer the second method, because that won’t output the div tags on a page that doesn’t have any images.
Code is topiary
Offline
#17 2011-03-06 02:54:27
- ali.jubilee
- Member
- Registered: 2011-03-05
- Posts: 15
Re: Gallery plugins?
Thank you for your help so far. The new line of txp code you have given me – does that go on the article page, the page template, or someplace else? I’ve tried those two and I don’t get anything other than what the code above gave me, except that if I put it on the page template, I get the images in a line above the article.. I think I have the scripts in the right place (two in header and one in body).
Offline
#18 2011-03-06 03:08:10
- ali.jubilee
- Member
- Registered: 2011-03-05
- Posts: 15
Re: Gallery plugins?
Do I want galleria installed in the root directory, or the textpattern directory? Should it be in the same place as the index.php?
Offline
#19 2011-03-06 03:16:22
- ali.jubilee
- Member
- Registered: 2011-03-05
- Posts: 15
Re: Gallery plugins?
I have confirmed via script that both jquery and galleria are working, so either it’s something to do with the theme script or I’m doing something wrong with the img tag.
Last edited by ali.jubilee (2011-03-06 03:29:10)
Offline
#20 2011-03-06 03:32:53
- ali.jubilee
- Member
- Registered: 2011-03-05
- Posts: 15
Re: Gallery plugins?
Well, I have the galleria theme in the right place.. I plugged the img tags you provided in the page template and now I get it in the top right hand corner of … all my articles.. :)
Offline
#21 2011-03-06 03:49:45
- ali.jubilee
- Member
- Registered: 2011-03-05
- Posts: 15
Re: Gallery plugins?
Woah! Got it.
now to figure out how to make it stay centered between the left and right columns instead of underneath..
Offline
#22 2011-03-06 04:01:28
- ali.jubilee
- Member
- Registered: 2011-03-05
- Posts: 15
Re: Gallery plugins?
Alright.. Last question I think. Is it possible to control the width of the pictures on the article page instead of the template page? when I remove the width/height from the script on the page it stops working. 100% also doesn’t work.
Offline