Get Image in Navigation Template

76 views
Skip to first unread message

Mario Brandt

unread,
Jan 8, 2013, 10:49:17 AM1/8/13
to reddot-c...@googlegroups.com
Hi,
I already read https://groups.google.com/forum/?fromgroups=#!searchin/RedDot-CMS-Users/rendertag$20image|sort:date/reddot-cms-users/GTnM7wPaXFI/GWSa1TsW2vwJ
But is there a way to get the content of an image in the navigation
manager, since <%!!
Context:CurrentPage.Elements.GetElement(img_dhtml_menu).GetHtml()!!%>
shows nothing.

Cheers
Mario

Joel Kinzel

unread,
Mar 6, 2013, 1:20:37 PM3/6/13
to reddot-c...@googlegroups.com
Mario, it is similar to what you see written there. I'm using the following to get images:
 

<%!! Context:CurrentIndex.Page.Elements.GetElement(img_menuThumb).GetHtml() !!%> 

Wolfgang Roiter

unread,
Mar 13, 2013, 4:09:06 AM3/13/13
to reddot-c...@googlegroups.com
Hi Mario,

I once stumpled upon a similar problem and found out, that the element that you would like to access, must be present in any template that is used when navigation manager loops through the page hierarchy.
Please also add "Str:" when using element names: GetElement(Str:element_name)

Regards, Wolfgang

Mario Brandt

unread,
Mar 13, 2013, 4:44:37 AM3/13/13
to reddot-c...@googlegroups.com
Thanks , that works!

Mario
--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-use...@googlegroups.com.
To post to this group, send email to reddot-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Hilmar Bunjes

unread,
Mar 13, 2013, 3:38:37 PM3/13/13
to reddot-c...@googlegroups.com
And don't forget to use
 
GetElementByName() instead of Elements.GetElement() if you want to improve Performance in your projects (at least of you use a current V10 or V11 system, was introduced in V10 SP1 HF1).
 
Best,
Hilmar

Am Mittwoch, 13. März 2013 09:44:37 UTC+1 schrieb Mario:
Thanks , that works!

Mario

Am Mittwoch, 13. März 2013 schrieb Wolfgang Roiter :
Hi Mario,

I once stumpled upon a similar problem and found out, that the element that you would like to access, must be present in any template that is used when navigation manager loops through the page hierarchy.
Please also add "Str:" when using element names: GetElement(Str:element_name)

Regards, Wolfgang

Am Dienstag, 8. Januar 2013 16:49:17 UTC+1 schrieb Mario:
Hi,
I already read https://groups.google.com/forum/?fromgroups=#!searchin/RedDot-CMS-Users/rendertag$20image|sort:date/reddot-cms-users/GTnM7wPaXFI/GWSa1TsW2vwJ
But is there a way to get the content of an image in the navigation
manager, since  <%!!
Context:CurrentPage.Elements.GetElement(img_dhtml_menu).GetHtml()!!%>
shows nothing.

Cheers
Mario

--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-users+unsubscribe@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.

Mario Brandt

unread,
Mar 20, 2013, 2:40:55 PM3/20/13
to reddot-c...@googlegroups.com
Hi Hilmar,
so far using ...ByName() made no speed difference for me. If there was an increasement, then only in ms.

Cheers
Mario
To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-use...@googlegroups.com.
To post to this group, send email to reddot-c...@googlegroups.com.

Hilmar Bunjes

unread,
Mar 20, 2013, 2:48:33 PM3/20/13
to reddot-c...@googlegroups.com
Hi Mario,
ok, if there is no difference for you then you can keep it. I have seen bad performance especially with large navigation areas (>>100 links) and a lot of render tags (hide page, reference another page, display link differently, etc.). Because of that behavior I always suggest to use the more performant way.

Best,
Hilmar
Thanks , that works!

To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-use...@googlegroups.com.
To post to this group, send email to reddot-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-use...@googlegroups.com.
To post to this group, send email to reddot-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
--
You received this message because you are subscribed to a topic in the Google Groups "RedDot CMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reddot-cms-users/Su_ZkxWrQKM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to reddot-cms-use...@googlegroups.com.

Jian Huang

unread,
Mar 20, 2013, 5:18:20 PM3/20/13
to reddot-c...@googlegroups.com
Wish there is an upvote button for google groups.  This post desires one.

It is a common performance issue I find in navigation code from customers.
Thanks , that works!

To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-users+unsubscribe@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-users+unsubscribe@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.

Mario Brandt

unread,
Mar 21, 2013, 5:48:19 AM3/21/13
to reddot-c...@googlegroups.com
In fact I keep the number of files on a single navigation list low to
avoid such problems. Indeed that is not always an option, but I try to
parent my customers ;-)
However I will use the new function!

Cheers
>>>>> an email to reddot-cms-use...@googlegroups.com.
>>>>> To post to this group, send email to reddot-c...@googlegroups.com.
>>>>> Visit this group at
>>>>> http://groups.google.com/group/reddot-cms-users?hl=en.
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "RedDot CMS Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to reddot-cms-use...@googlegroups.com.
>>> To post to this group, send email to reddot-c...@googlegroups.com.
>>> Visit this group at
>>> http://groups.google.com/group/reddot-cms-users?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "RedDot CMS Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/reddot-cms-users/Su_ZkxWrQKM/unsubscribe?hl=en.
>> To unsubscribe from this group and all its topics, send an email to
>> reddot-cms-use...@googlegroups.com.
>> To post to this group, send email to reddot-c...@googlegroups.com.
>>
>> Visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "RedDot CMS Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Richard Hauer

unread,
Mar 21, 2013, 6:31:41 PM3/21/13
to reddot-c...@googlegroups.com
/r/reddot ?

Or

/r/opentextwebsolutionsgroupmanagementserver ?

From: Jian Huang
Sent: ‎21/‎03/‎2013 8:18 AM
To: reddot-c...@googlegroups.com
Subject: Re: Get Image in Navigation Template

Thanks , that works!

To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-users+unsubscribe@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-users+unsubscribe@googlegroups.com.
To post to this group, send email to reddot-cms-users@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "RedDot CMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reddot-cms-users/Su_ZkxWrQKM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to reddot-cms-use...@googlegroups.com.
To post to this group, send email to reddot-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages