Share » Forums » General » Image object template?

Image object template?

Image object template?

Tuesday 21 September 2004 1:38:38 am - 7 replies

Author Message

Marco Zinn

Tuesday 21 September 2004 1:09:33 pm

Hi,

first, i second your comment about the template list beeing pretty much useless, as it is not even sorted.

For your question:
I think, should look for something like
/content/view/full or /content/view/line.
Switch to your admin siteaccess with that dropdown box. Then you should see an override for the "image" class. Edit it, this should be the template.

Marco
http://www.hyperroad-design.com

Edward Eliot

Wednesday 22 September 2004 2:01:05 am

Thanks, I will try that.

Frederik Holljen

Wednesday 22 September 2004 2:14:56 am

A more efficient way of browsing templates and overrides is due to be implemented in 3.6.

Edward Eliot

Monday 18 October 2004 2:11:43 am

I still cannot make this work. I have edited

design/base/override/templates/line/image.tpl

and removed the DIVs, cleared the cache and they are not removed.

I have also copied this template to my user design directory under

override/templates/line

and

override/templates/content/line

and that doesn't work either.

Does anyone have any ideas for this?

Norman Leutner

Monday 18 October 2004 2:27:38 am

Edit your site.ini.php

[TemplateSettings]
Debug=disabled

and enable template-debugging .

Take a look which template is used within your view.

Edit your override.ini.append ans create a new entry like this:

[image]
Source=node/view/full.tpl
MatchFile=image.tpl
Subdir=templates
Match[class]=5

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Edward Eliot

Monday 18 October 2004 4:37:45 am

OK, thanks for the reply. I have tried numerous things to get this working without success. It is far from intuative. For what I understand I need to override

/content/view/embed/image.tpl

but where should I place this in my templates folder or what override.ini entries should I add to make it work. I want to override the display of all embedded images.

Any ideas anyone?

Norman Leutner

Monday 18 October 2004 6:44:41 am

If you don`t want to create a ovverride for one design only,
you can edit the standard design template (\ezpublish\design\standard\templates\content\datatype\view\ezimage.tpl)

Overrides are stored in setting/siteaccess/yoursitedesign/overrride.ini.append

The image has a class ID

Match[class]=5

If this class is matched within the full.tpl

Source=node/view/full.tpl

the image.tpl from from design/yourdesign/override/templates

Subdir=templates

will be used for displaying your content.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu