Forums / Setup & design / OE and objects view

OE and objects view

Author Message

laurent le cadet

Thursday 03 August 2006 5:37:12 am

Hi,

When inserting objects with OE we can choose the view to render it (full, line, embed).
It seems to be a bit different than the node view (?).
Where can I expand this list to create a custom view ?

Thanks.

Laurent

laurent le cadet

Thursday 03 August 2006 6:35:57 am

what I found (first step) is in extension/ezdhtml/site.ini.append.
I add a line to [EmbedViewModeSettings] for my custom view :

AvailableViewModes[]=pop

Where must I create pop.tpl ?

laurent

laurent le cadet

Thursday 03 August 2006 7:07:46 am

ok.

I create a new folder override/pop and pop.tpl in it and add some lines in siteaccess/override.ini.append.php :

[image_pop]
Source=content/view/pop.tpl
MatchFile=pop/image.tpl
Subdir=templates
Match[class_identifier]=image

Seems to be ok.

Hope this help

Laurent