Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-02 19:18:03

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

Excerpt Image

Have an Excerpt Image box, like the Article Image box, in Advanced Options with a txp:excerpt_image tag.

Offline

#2 2006-11-03 08:56:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Excerpt Image

You can already have an excerpt image by either using the Article image or by physically pasting an image tag in the excerpts field


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2006-11-03 08:57:20

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Excerpt Image

Or using a custom field.

Offline

#4 2006-11-03 13:36:58

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

Re: Excerpt Image

Hi Mary, how would I use a custom field? like: <txp:image id=”<txp:custom_field name=“imgid”/>”/>

Getting clients to use the tag generator and then cut/paste is to involved and not very user friendly for low tech clients. They find it convoluted and an easily forgotten process, where as putting a number in a box is much simpler.

I love TxP and hope the user interface, not the developer interface, is made even more user and work flow friendly in the coming years.

Offline

#5 2006-11-03 14:05:20

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Excerpt Image

In a very basic way:

<txp:if_custom_field name="Excerpt Image"><img src="<txp:custom_field name="Excerpt Image" />" /></txp:if_custom_field>

If you make a simple plugin, you can have it emulate article image behaviour fairly easily.

Offline

#6 2006-11-03 14:47:33

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

Re: Excerpt Image

Thank you very much Mary, I have to start thinking a bit deeper.

Offline

#7 2006-11-03 17:38:39

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: Excerpt Image

You could use bas_image_selector. This plugin has an option to add an image to the excerpt-field. Very non-tech savvy if you ask me!


Prrrrrrrr

Offline

#8 2006-11-04 01:47:56

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Excerpt Image

Yep, you could use that plugin (if it’s updated to 4.0.4). It’s also really easy to modify bas_img_selector to insert an image into a custom field.

Offline

#9 2006-11-04 09:03:13

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

Re: Excerpt Image

Thanks for the help everyone. I went with Mary’s suggestion, I don’t like using plugins that a client might become dependent on because they sometimes stop working after textpattern get an update.

Offline

#10 2006-11-05 00:20:13

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Excerpt Image

Good call Lee. The power of TXP is, for a big part, in its tags, and how it’s plain and easy to integrate them with HTML. Not always enough, but in this case it definitely is.

Offline

Board footer

Powered by FluxBB