Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#145 2011-03-21 20:29:26

lazlo
Member
Registered: 2004-02-24
Posts: 110

Re: Images are 1st class citizens of TXP

Thanks Bloke

This may be the answer I was looking for, I am not sure. Clarification is needed.
If I don’t use the image uploader there is no image ID to refer to, but are you saying that if I already know the name I can refer to it without using the image uploader.

Does textpattern use image NAME to directly reference the IMAGES folder and therefore doesn’t care if there is a NAME table in the database?

<txp:images name=’<txp:custom_field name=“ISBN-13” />.jpg’> <txp:thumbnail />
</txp:images>

Is this saying look in the IMAGES folder for ‘<txp:custom_field name=“ISBN-13” />.jpg’ not look in the image table for ‘<txp:custom_field name=“ISBN-13” />.jpg’ and refer to url from there?

If this is the case I can work with that like crazy.

I am I understanding this correctly?

L

Last edited by lazlo (2011-03-21 20:30:20)

Offline

#146 2011-03-21 21:16:21

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

Re: Images are 1st class citizens of TXP

lazlo wrote:

If I don’t use the image uploader there is no image ID to refer to, but are you saying that if I already know the name I can refer to it without using the image uploader.

Ah, errr no. I was going on the 2nd of your premises whereby you said:

So ok I will use the image uploader.

The txp:images tag can only work on what it knows is in the database. If you’re bypassing TXP then I’m afraid you’re stuck with doing things manually: and that includes resizing.

Sorry if I got your hopes up unnecessarily.

Last edited by Bloke (2011-03-21 21:16:54)


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

#147 2012-02-13 16:59:59

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Images are 1st class citizens of TXP

Can someone – more technical than myself – please add container examples of <txp:images></txp:images> to the CMS documentation on this page?

Example 2 is where I’m guessing it goes but the page has not been completed properly.

Offline

#148 2012-02-13 18:50:31

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 595
Website

Re: Images are 1st class citizens of TXP

Phil, just added an example that was hiding out on the image_info page, and one of my own that shows how to use a script like timthumb.php. Not sure if that’s kosher for wiki docs, but it’s sure been helpful.

Last edited by maruchan (2012-02-13 18:52:19)

Offline

#149 2012-02-13 19:14:59

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Images are 1st class citizens of TXP

Cheers Marc

Offline

Board footer

Powered by FluxBB