Thanks Gavin,
I tried and found the problem!
Context:CurrentPage is referring to the page in container_page_body, not
the foundation page. But the url in dropdown is the url of foundation page,
that is correct:
<!IoRangeList>
<li><a href="<%list_resource_pages%>">aaaaaaaa
<%!!
Context:CurrentPage.Elements.GetElement(resource_category).Value !!%>
</a></li>
<!/IoRangeList>
I am defining same keyword for those foundation pages and the container.
Please help!
Sean
On Tuesday, June 12, 2012 5:04:24 PM UTC-7, HiRAEdd wrote:
>
> I'm just going by memory here so this may be wrong but try this:
> <%!!
> Context:CurrentPage.Elements.GetElement(container_page_body).Value[Int32:0].Elements.GetElement(resource_category_keyword).Value
>
> !!%>
>
> Also, try creating the option list placeholder from scratch as if you're
> using the same placeholder name, there may be caching issues.
>
> Cheers,
>
> Gavin
>
> On 13 June 2012 09:51, siner zxa <[email protected]> wrote:
>
>> Thanks Gavin,
>>
>> You are right. It is info keyword.
>>
>> I changed it to Option List, and still no joy.
>>
>> Do you have any clue?
>>
>> Thank you in advance.
>>
>> Sean
>>
>>
>> On Tue, Jun 12, 2012 at 4:23 PM, Gavin Cope <[email protected]> wrote:
>>
>>> I assume your placeholder is an info placeholder. You can't retrieve
>>> info placeholders using render tags.
>>>
>>> Cheers,
>>>
>>> Gavin
>>>
>>>
>>> On 13 June 2012 09:12, Sean <[email protected]> wrote:
>>>
>>>> Hello everyone,
>>>>
>>>> I am creating a dropdown in page body area:
>>>>
>>>> <ul id="dropdown_resourcecategories" class="dropdown">
>>>>
>>>>
>>>> <li><!--<%resource_category_keyword%>-->
>>>> <a href="#"
>>>> onclick="$(this).next().slideToggle('medium');return false;"><%!!
>>>> Escape:Text(<%resource_category_keyword%>).ToString() !!%></a>
>>>> <ul style="display:none;">
>>>> <!IoRangeList>
>>>> <li><a href="<%list_resource_pages%>">
>>>>
>>>> <reddot:cms>
>>>> <htmlext>
>>>> <%!!
>>>> Context:CurrentPage.Elements.GetElement(container_page_body).Value[Int:0].Elements.GetElement(resource_category_keyword).GetHtml()
>>>>
>>>> !!%>
>>>> </htmltext>
>>>> </reddot:cms>
>>>> </a></li>
>>>> <!/IoRangeList>
>>>> </ul>
>>>>
>>>> </li>
>>>>
>>>> </ul>
>>>>
>>>> When I click the dropdown, the 6 items all shows blank, that means the
>>>> following part is not working:
>>>>
>>>> <%!!
>>>> Context:CurrentPage.Elements.GetElement(container_page_body).Value[Int:0].Elements.GetElement(resource_category_keyword).GetHtml()
>>>>
>>>> !!%>
>>>>
>>>> Does anyone know why? Thanks
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "RedDot CMS Users" group.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msg/reddot-cms-users/-/t8UnD34dUDgJ.
>>>> 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.
>>>>
>>>
>>> --
>>> 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.
>>>
>>
>> --
>> 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.
>>
>
>
--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/reddot-cms-users/-/R4KXmYhNR2AJ.
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.