image tag

post everything related to phpwcms templates here
Post Reply
slinkyomeara
Posts: 24
Joined: Tue 16. Sep 2008, 03:26

image tag

Post by slinkyomeara » Tue 24. Nov 2009, 08:55

hell can you tell me what the tag is for the image named red1.jpg. I wish to use this image as the
article listing image and resize it in a cutom teaser template
Attachments
image.jpg

User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: image tag

Post by flip-flop » Tue 24. Nov 2009, 10:15

Image tags you will finde in the docu:http://www.phpwcms-docu.de/image_tags.phtml

but I still do not understand your approach.

Article listing image is the section "image: article listing"

This image is catched by the cp teaser/link article autom.
In this CP you can format this picture according to your wishes.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )

slinkyomeara
Posts: 24
Joined: Tue 16. Sep 2008, 03:26

Re: image tag

Post by slinkyomeara » Wed 25. Nov 2009, 11:58

no i need to list the other image not the detail image so is there a different tag that i can add to the template for this cp that will ist the article detail image instead of the article listing image?

User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: image tag

Post by flip-flop » Wed 25. Nov 2009, 13:48

Ah yes, I understand.

Two solutions:
1. If you can php program, it is possible using a replacer in /frontend_init/ (cp_trigger), which reads the article-ID from the template, search for the right detail image in the DB and put back this image into the template. Template tag: (ARTICLEID} (available since r316 )

2. Alernativ you can use this frontend_render snippet that I've recently created, based on the CP article menu: Article menu (count/arch/img/templ)

There you will find a switch:

Code: Select all

// Image parameters: list|detail ------------
$alinkmenu['is_image']             = 3;            // 0 = off | 1 = list image | 2 = detail image
                                                   // 3 = list image + link | 4 = detail image + link
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )

Post Reply