Hello Gavin,

Here is my situation:

Foundation Page F1, F2, F3, F4, F5, of same content class F.

There is a container container_page_body in F's template.

Page Body B1, B2, B3, B4, B5. linked to the container in F1-F5.

In template of content class B, there is a list for dropdown, now there are 
5 items populated in list, and url is pointing to F1-F5 pages.

In template of content class B, there is a option list element 
"resource_category".

I wish to show value of resource_category in dropdown test:

<li>
     <a href="<%list_resource_pages%>">aaaaaaaa
            
<%!! 
Context:CurrentPage.Elements.GetElement(container_page_body).Value[Int32:0].Elements.GetElement(resource_category).Value
  !!%> 
     </a>
</li>

Because the list list_resource_pages is not in foundation page, I cannot 
use Context:CurrentPage to access the linked foundation page, right?

Do you have any clue where I am wrong?

Thank you in advance


On Wednesday, June 13, 2012 10:28:03 AM UTC-7, Sean wrote:
>
> 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/-/gYue8-lMsEAJ.
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