Articles Field

[image_intro] not working when using Custom HTML Output

3 months 3 weeks ago #78358

Marc's Avatar Marc

Hi Peter,

Doing some Custom HTML Output for Articles Field, I realize that (for example)
[image_intro] showing the path does work
but
[image-intro] showing directly the image does *not* work

Can this be amended ?

I had thought that all Data Tags here would be available :
www.regularlabs.com/extensions/articlesa...e/tutorial#data-tags

Txs !

Marc

3 months 3 weeks ago #78360

Peter van Westen's Avatar Peter van Westen Admin

Not all stuff Articles Anywhere supports is also supported in Articles Field.
Articles Field can only output available fields. It does not have the 'smart' tags and added functionality (like trimming and such) that Articles Anywhere has.

3 months 3 weeks ago #78361

Marc's Avatar Marc

OK, so
[image-intro] or [image_count] or [image_1] are "smart"
but [image_intro], [author] and all the "physical" things are indeed available.

Is this how I should understand it ?
Txs :)

3 months 3 weeks ago #78362

Peter van Westen's Avatar Peter van Westen Admin

Correct. The 'simple' stuff just outputs the raw value of the available fields (in the article object/database).

3 months 3 weeks ago #78364

Marc's Avatar Marc

OK, that's fine.

Anyway, for [image-intro] we have an easy alternative like
<img src="[image_intro]" alt="[title]">

3 months 3 weeks ago #78365

Peter van Westen's Avatar Peter van Westen Admin

Yes, exactly.