Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-11-07 21:24:00

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

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

#2 2011-11-07 21:27:43

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,947
Website GitHub

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

#4 2011-11-08 09:48:05

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,947
Website GitHub

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

#5 2011-11-08 21:36:35

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

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

#6 2011-11-11 15:59:07

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

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

#7 2011-11-11 16:16:22

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

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

#8 2011-11-11 16:59:51

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

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

#9 2011-11-11 17:21:32

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

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

#10 2011-11-11 17:23:44

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

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

#11 2011-11-11 17:26:57

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

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

Board footer

Powered by FluxBB