Hi Helen,

Glad you found a solution.

Please note the usage of Elements.GetElement rendertag reduced page
load time and general project performance because the entire page
object need to be loaded into memory prior to element inspection.  The
usage is generally not recommended by OpenText Consultant services and
is considered a project red flag.

Also, Element.GetElement has the rendertag cache issue.  Sometimes,
when image placeholder is updated, the rendertag still use the cache
placeholder content instead of new content.

RQL: I would probably recommend the other 6 placeholders reference the
original image placeholder, instead of copying the image over 6 times
because reference once and it is done, if copy, then copy operation
needs to be done each time the content changes.

Just want to share my experience and hope other people can avoid the
pitfalls.

Best,

-Jian

On Nov 23, 7:12 am, Hels Bells <[email protected]> wrote:
> Hey thanks guys,
>
> I'm really pleased with the the render tag solution in the case of a 1
> full sized to 1 thumbnail image ratio. It works brilliantly!
>
> And sorry Jian I should have made it more obvious that I was aware of
> the scaling option but I was trying to not have to use any rql.
>
> However I think I'm going to have to use RQL as in one of our
> templates we have a full sized image and 6 other ones of varying
> smaller dimensions. As long as I can confirm that the dimensions will
> be in the same proportion (so that they scale nicely) then I'm going
> to write a plug-in that the user has to activate to copy over the
> contents of the main image to the 6 other images.
>
> On Nov 23, 4:50 am, VegeJuice <[email protected]> wrote:
>
>
>
>
>
>
>
> > An alternate solution is to use render tags.
>
> > Create the img placeholder (say img_GalleryItem) and set the size for the
> > thumbnail. The images in Asset Manager are sized to full size.
>
> > The thumbnail is referenced normally: <img src="<%img_GalleryItem%>" />
>
> > For the full sized image just reference it via the render tag code
> > <img src="<%!!
> > Context:CurrentPage.Elements.GetElement(img_GalleryItem).GetHtml() !!%>"
> > />.
>
> > If you're referencing the full sized image via a list then you can use:
> > <img src="<%!!
> > Context:Pages.GetPage(Guid:<%inf_PageGUID%>).Elements.GetElement(img_GalleryItem).GetHtml()
> > !!%>" />, where inf_PageGUID is an info placeholder.

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to