Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-06-18 22:40:53

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [plugin] jk_images: expanding existing image support for articles and galleries

Hi Jeff, I’ve been trying to figure out how to implement your plugin without any success.

So far:
1. created article with article image field containing 7,8,9
2. in the article form I have <txp:jk_image_list form=“image list” display_by=“article”/>
3. I’m not sure what to put in the image_list form, I tried txp:image but nothing displayed

A quick rundown of what tag and form contents to use would be much appreciated if you have time, I’m trying to achieve the same as your demo http://jeffkhonsary.com/humble-beginnings

Thanks
Lee

EDIT: would it be possible just to see the form contents in your example?

Last edited by lee (2007-06-20 14:09:55)

Offline

#14 2007-06-24 05:53:36

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

Hey Lee,

Here is the code I am using on the demo:

in the article form
<txp:jk_image form=“caption” /> : for captions
<txp:jk_image /> : for image and image nav

in “image” form
<div id=“image”> <h3>Images:</h3> <txp:image /> <span id=“image-nav”><txp:jk_image_list form=“image_list” /></span>
</div>

in “image_list” form
<txp:jk_image_link><txp:jk_image_counter /></txp:jk_image_link>

in “caption” form
<p class=“caption”>About this image: <br/><txp:jk_image_details name=“caption” /></span></a></p>

Hopefully that helps? I plan on expanding the demo and adding info on using the plugin. I have just been so swamped lately.

Offline

#15 2007-12-20 08:27:34

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

In case anyone is interested, I have posted a new version of the plugin, complete with a pair of new functions: jk_if_image (conditional display if image is shown via jk_image) and jk_if_image_details (conditional display if image has a value for a given column such as an alt tag or caption).

Download link above.

Thanks!

Last edited by Jeff_K (2007-12-20 08:27:54)

Offline

#16 2007-12-20 08:36:12

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [plugin] jk_images: expanding existing image support for articles and galleries

Thanks Jeff.

Offline

#17 2007-12-20 11:51:23

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

hum, why had i never seen this plugin before?? looks interesting!


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#18 2007-12-20 22:16:35

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

Thanks! give it a spin. I am open to input. Just been developing it for my own purposes so far.

Offline

#19 2007-12-21 14:48:28

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

thanks jeff. might be useful for my portfolio site :)


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#20 2008-08-15 17:00:25

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

Posted v.51 which fixes a coding error.

Offline

#21 2008-08-18 21:01:28

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: [plugin] jk_images: expanding existing image support for articles and galleries

v.55, another minor update.

Last edited by Jeff_K (2008-08-18 21:01:42)

Offline

Board footer

Powered by FluxBB