Textpattern Forum

You are not logged in. Register | Login | Help

#1 2010-09-28 11:04:14

jsoo
Developer
From: NC, USA
Registered: 2004-11-15
Posts: 1,730
Website

[howto] Using the new image tags in Txp 4.3.0

I know it’s still at release candidate stage, but I wanted to put 4.3.0’s new image tags through their paces. I’m impressed, and quite expect to dismantle soo_image into one or two small & specialized plugins. Because the new core tags do pretty much everything I need.

Herewith, a demo with code and examples. Pure Txp, no plugins.

Edit, 2011-04-10: new URL

Last edited by jsoo (2011-04-10 16:23:22)


Txp tags not doing what you expect? Learn to use a tag trace. And the Tag Reference.

Offline

#2 2010-09-28 11:41:53

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 752
Website

Re: [howto] Using the new image tags in Txp 4.3.0

Great idea, great examples! Thanks.

Offline

#3 2010-09-28 11:44:27

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 498

Re: [howto] Using the new image tags in Txp 4.3.0

I wanted to use soo_image in the past but I waited for this reason: I’m going to wait for the “lite editions” for specialized functions, using the core ones for basic image handling.

Thanks for the demos: very useful

Last edited by candyman (2010-09-28 15:30:56)

Offline

#4 2010-09-28 15:17:36

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,866
Website

Re: [howto] Using the new image tags in Txp 4.3.0

Niiiiiiice!


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Online

#5 2010-09-28 16:11:55

masa
Member
From: Reykjavik, Iceland
Registered: 2005-11-25
Posts: 1,079

Re: [howto] Using the new image tags in Txp 4.3.0

Very nice indeed.

Excellent that this is now possible with just the core.

Offline

#6 2010-09-28 16:19:23

keith
Member
From: Blyth, Northumberland, England
Registered: 2004-12-08
Posts: 199
Website

Re: [howto] Using the new image tags in Txp 4.3.0

Crikey!


Keith
Blyth, Northumberland, England
Capture The Moment

Offline

#7 2010-09-28 19:04:23

johnstephens
Plugin Author
From: Harrisonburg, VA
Registered: 2008-06-01
Posts: 827
Website

Re: [howto] Using the new image tags in Txp 4.3.0

Question: I note the Photoblog example above assume one image per article. soo_image allows several. Is that possible in TXP 4.3.0, or is that still the domain for a plugin?

Offline

#8 2010-09-28 19:28:35

jsoo
Developer
From: NC, USA
Registered: 2004-11-15
Posts: 1,730
Website

Re: [howto] Using the new image tags in Txp 4.3.0

Yes, image_list understands a comma-separated list in the article-image field. See the demo’s ‘et cetera’ page.

Edit, 2011-04-10: updated URL

Last edited by jsoo (2011-04-10 16:24:18)


Txp tags not doing what you expect? Learn to use a tag trace. And the Tag Reference.

Offline

#9 2010-09-28 19:30:09

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,866
Website

Re: [howto] Using the new image tags in Txp 4.3.0

johnstephens wrote:

assume one image per article

Officially, the article image field is to hold one ID only. But the <txp:image_list /> tag — without any other selection attributes — will treat the article image field as a comma separated list of IDs if it’s set as such.

Edit: too late :-)

Last edited by Bloke (2010-09-28 19:30:28)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Online

#10 2010-09-28 19:36:35

johnstephens
Plugin Author
From: Harrisonburg, VA
Registered: 2008-06-01
Posts: 827
Website

Re: [howto] Using the new image tags in Txp 4.3.0

That’s awesome, Jeff. Thanks! (Silly of me not to read et cetera before posting.)

Stef, is that a behavior I can count on for the future? Associating multiple images with an article in this way is very useful. I only ask since you said “officially” the pairing of articles to images is 1:1.

Offline

Board footer

Powered by FluxBB