AW: Passing an Headline Placeholder

5 views
Skip to first unread message

Ingo Hillebrand

unread,
Jul 7, 2009, 4:24:55 AM7/7/09
to RedDot-C...@googlegroups.com
Hi Jamie,

this Rendertag should fit your needs:

<%!!
Context:CurrentPage.MainLink.OwnerPage.Elements.GetElement(hdl_Title).Va
lue !!%>

Greetings,
Ingo


JJB

unread,
Jul 7, 2009, 7:51:21 AM7/7/09
to RedDot CMS Users
Thanks Ingo, but it is pull out the title from Navigation container.
We are not using the Nav Manager.

I can pull the hdl_Title from the Foundation page and pull into the
Body Area container. I want to do the reverse.

On Jul 7, 5:24 am, "Ingo Hillebrand" <ingo.hillebr...@comspace.de>
wrote:

Gavin Cope

unread,
Jul 7, 2009, 9:16:33 AM7/7/09
to RedDot-C...@googlegroups.com
Typically you'd do this with a pre-executed ASP function to write the value back up the page.

Cheers,

Gavin

2009/7/7 JJB <jamie....@gmail.com>

Joshua Ellis

unread,
Jul 7, 2009, 10:56:33 AM7/7/09
to RedDot CMS Users
On Jul 7, 7:51 am, JJB <jamie.ben...@gmail.com> wrote:
> Thanks Ingo, but it is pull out the title from Navigation container.
> We are not using the Nav Manager.
>
> I can pull the hdl_Title from the Foundation page and pull into the
> Body Area container. I want to do the reverse.

Here are two possible ways.

First, using a render tag -- and this shouldn't depend on Navigation
Manager -- like this:

<%!! Context:CurrentPage.Elements.GetElement(con_Content).Value
[Int32:0].Elements.GetElement(hdl_Headline).Value !!%>

This assumes your container is called con_Content and your headline
value is hdl_Headline. This seems to me the cleanest way.

The second alternative is to add a list element that transfers
elements to your Foundation page, and set it to reference the
container. Then iterate the list and use the transferred headline. Not
nearly as clean, and will cause problems if there is more than one
page in the container. But it might look something like this:

<p>Headline from container using referenced list element:<br/>
<!IoRangeList>
<!IoRangePreExecute><% ' <%lst_ContainerReference%> %><!/
IoRangePreExecute>
<%hdl_Headline%>
<!/IoRangeList>
</p>







JJB

unread,
Jul 9, 2009, 10:51:48 AM7/9/09
to RedDot CMS Users
Thanks Joshua. The first option works to put Headline of the container
into the Foundation page.

Ingo Hillebrand

unread,
Jul 10, 2009, 2:10:37 AM7/10/09
to RedDot-C...@googlegroups.com
Hi,

the way Joshua gets the value of the title is clean, but there is a
risk, too. Rendertags do not regard the element sorting in the
container, so the element with index:0 is not always the first element
in the list.

Greetings,
Ingo

Reply all
Reply to author
Forward
0 new messages