Hi Ibrahim,

Are you trying to pull "txtEinleitungstext" from the following page?
If so, using rendertag might be too much.  You can simply using the
list to pull txtEinleitungstext through.  Ensure property of <
%lstMarginalNews%> has "Transfer element content of following pages"
enabled.

If you simply want the first 100 chars to show, the rendertag should
be

<%!!Context:Pages.GetPage(Guid:<%inf_PageGUID
%>).Elements.GetElement(txtEinleitungstext).GetHtml().ToString().Substring(Int:
0,Int:100) !!%>

Please keep in mind that this method has the following drawback:
- should txtEinleitungstext be updated in the article page, the
txtEinleitungstext will still display old content on the listing page,
due to rendertang caching issue

- project performance issue cause by Element.GetElement rendertag

- since you are using a text placeholder, which may contain content
like <p>aasdfdfger ....... <a href="asdfsd">adsfrerg</a> .... <p>,
grabbing first 100 chars may return incomplete HTML.

-Jian

On Dec 9, 7:06 am, Ibrahim Sawadogo <[email protected]> wrote:
> Hi there,
>
> i am using the following code:
>
> <!IoRangeList>
> <li>
> <p class="date"><%stfDatum%></p>
> <p class="news-caption"><%stfContentUeberschrift%></p>
> <a href="<%lstMarginalNews%>" class="arrow-link"> *** Render tag goes here
> *** <span>&nbsp;...&nbsp;</span></a>
> </li>
> <!/IoRangeList>
>
> I have tested it with the following render tag:
>
> <%!!
> Context:Pages.GetPage(Guid:<%inf_PageGUID%>).Elements.GetElement(txtEinleitungstext).Value.Substring(Int:0,
> Int:100) !!%>
> <%!!
> Context:CurrentPage.Elements.GetElement(txtEinleitungstext).Value.Substring(Int:0,
> Int:100) !!%>
>
> It works using javascript but i would like to use render tags.
>
> Can someone please tell me what am doing wrong?
>
> Thanks,
> Ibrahim

-- 
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