Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
looking for suggestions on gallery plugin
I want to add about 200 photo scans to one of my textpattern sites.
Looking over the gallery plugins, many seem to no longer be there or for much earlier versions of txp.
Any sugesstions ?
Thanks.
Offline
Re: looking for suggestions on gallery plugin
I’d be tempted not to bother with a plugin any more. Check out the new core image tags, primarily <txp:images/>. Only use a plugin if the core tags don’t/can’t do what you want.
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
#3 2011-11-08 02:11:52
- ax
- Plugin Author
- From: Germany
- Registered: 2009-08-19
- Posts: 165
Re: looking for suggestions on gallery plugin
I would like to add that the <txp:images/> tag can be used very effectively to display a jquery-based gallery, e.g. TN3Gallery or Galleriffic. I am using TN3Gallery to show images in categories, like so:
<txp:if_category>
<h2><txp:category title="1" this_section="1" type="image" /></h2>
<div class="mygallery">
<div class="tn3 album">
<txp:images category='<txp:category />' wraptag="ul" break="" class="tn3gallery">
<li>
<h4><txp:image_info type="name" /></h4>
<div class="tn3 description" id="caption"><txp:image_info type="caption" /></div>
<a href="<txp:image_url />" title="<txp:image_info type="caption" />"><txp:thumbnail /></a>
</li>
</txp:images>
</div>
</div>
<txp:else />
<!-- other stuff -->
</txp:if_category>
And in the header you woud need something like this for the TN3 css and for the TN3 javascript:
<link type="text/css" rel="stylesheet" href="/tn3/skins/tn3/tn3.css"></link>
<script type="text/javascript" src="/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="/tn3/js/jquery.tn3.min.js"></script>
<script type="text/javascript">$(document).ready(function(){var tn1=$('.mygallery').tn3({skinDir:"/tn3/skins/tn3",imageClick:"fullscreen",image:{maxZoom:1.5,crop:true,clickEvent:"dblclick",transitions:[{type:"blinds"},{type:"grid"},{type:"grid",duration:460,gridX:1,gridY:8,sort:"random",method:"scale",partDuration:360}]},thumbnailer:{overMove:false}});});</script>
The nice thing about textpattern is that you can do complex things, like a gallery, so easily. In contrast, our friends from WordPress have to wait a little longer to be able to use TN3.
Offline
Re: looking for suggestions on gallery plugin
ax
Nice example, thanks. I wanted the built-in image tags to have most of the power of smd_gallery without the fluff and inherent confusion that comes with that plugin. Call it lessons learned while developing smd_gallery :-)
Good to see our direction has been validated here and that it offers some significant, tangible advantage over the competition.
Last edited by Bloke (2011-11-08 09:49:10)
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
Re: looking for suggestions on gallery plugin
I’ll be able to look it over this weekend. Looks useful so far. This is for a web site where I work on my ancestry info. I think I’ll add the site to the ‘Let’s See Yours, Then’ thread.
Thanks !
Offline
Re: looking for suggestions on gallery plugin
Hmm… I used <txp:images category=“july_1966” /> but no images show. I have 37 pictures uploaded with that image category.
Also tried:
<txp:images category=“july4_1966”>
</txp:images>
no images showing.
Last edited by JimJoe (2011-11-11 16:09:03)
Offline
Re: looking for suggestions on gallery plugin
Hi
try this
<txp:images category="july4_1966" break="">
<txp:image />
</txp:images>
Last edited by Dragondz (2011-11-11 16:16:36)
Offline
Re: looking for suggestions on gallery plugin
Doesn’t seem to be doing anything.
edit:
using html doesn’t show it either. Maybe the hosts anti-hotlinking settings. I’ll check into it.
I can link and show images in a sub-directory I created called graphics, but not when the same file is in the images folder(sub-directory).
Odd.
Both have 755 properties.
Last edited by JimJoe (2011-11-11 17:19:40)
Offline
Re: looking for suggestions on gallery plugin
Go to admin tab and make the site in diagnostic mode then see the code page in your browser you will see all the sql used in the page and see where is the bug!
Offline
Re: looking for suggestions on gallery plugin
Tag error: <txp:images category=“july4_1966” break=”“> -> Textpattern Warning: tag does not exist on line 1120
textpattern/publish.php:1120 trigger_error()
textpattern/publish.php:1041 processTags()
textpattern/publish/taghandlers.php:2062 parse()
textpattern/publish.php:1106 body()
textpattern/publish.php:1028 processTags()
textpattern/lib/txplib_misc.php:1621 parse()
textpattern/publish.php:786 parse_form()
textpattern/publish.php:903 doArticles()
textpattern/publish.php:560 parseArticles()
textpattern/publish.php:1106 article()
Last edited by JimJoe (2011-11-11 17:25:05)
Offline
Re: looking for suggestions on gallery plugin
It doesn’t like id= either.
Nor
<txp:images />
edit:
I’ll just go for the html method for now.
Last edited by JimJoe (2011-11-11 17:49:51)
Offline
#12 2011-11-11 18:02:09
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: looking for suggestions on gallery plugin
JimJoe wrote:
Tag error: <txp:images category=“july4_1966” break=”“> -> Textpattern Warning: tag does not exist on line 1120
Are you on TXP 4.2.0 or smaller? txp:images has been introduced in 4.3.0.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline