Re: Re: Redundant images

Tobias Greitzke <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Organization tog.is information design
Message-ID <[email protected]>
Dear Peter,

I suggest you put the images into the common folder and add a selectable 
  meta attribute to the folder-object. That way you can choose the image.
Another way would be using a css class. Seams like in your case the 
images are more a style element anyway.

The attribute looks something like:
altTitleImage select (image1, image2, image3)

In pageelement_Headline or where ever your Title/TitelImage is rendered 
it should look something like this:

<dtml-if "getObjProperty('altTitleImage',REQUEST)">
<img src="common/<dtml-var 
"getObjProperty('altTitleImage',REQUEST)">.png" alt="" border="" />
</dtml-if>

This is still a lot of work for the people that insert the folders. If 
the construct is always the same, try to create the whole construct 
while inserting parent folder (still a messy solution).

There used to be the ZMS-Module which one could create out of the ZMI. I 
used it a couple times in the past but this option is gone -  haven't 
seen it for a while. But right now there is the option to create a 
content-module within the Special Objects but I couldn't figure out how 
that works. That way you could make your own folder construct - save it 
as a Module and insert the folder construct all at once, including 
pre-set attributes etc..

Maybe someone else can explain how that content-module is supposed to work.

Best Regards
Tobias Greitzke







Peter Zechmeister schrieb:
> 
> 
> But the images are title-images (attributes) of the folders. So it is
> not possible to "embed" them easily I think.
> 
> How they shoud do it better?
> 
> PZ
> 
> Am Freitag, den 24.10.2008, 13:49 +0000 schrieb Thorsten Fox:
>  > In each folder you might use links with type "embed" to the original
>  > image objects. These links can easily be copied.
>  >
>  > Regards, tf
>  >
>  > --- In [email protected] 
> <mailto:zms-developers%40yahoogroups.com>, Peter Zechmeister
>  > <peter.z.nogroupwise@...> wrote:
>  > >
>  > > Hi,
>  > >
>  > > some folks who are working in our system have about 50 folders with
>  > 3
>  > > subfolders in each of them.
>  > > The structure within the 50 folders is always the same, so the title
>  > > images of the subfolders.
>  > > there are 3 different images at all, one for each of the 3
>  > subfolders.
>  > > but by putting them into the 50 folders, they get about 150 image
>  > > objects at all.
>  > > Is there a possibillity to have only 3 images in the store instead
>  > of
>  > > 150?
>  > >
>  > > PeterZ, JKU
>  > >
>  >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.