Version 7 or 9?

Even store:item.page.elements.getelement ?

Please mind the capitalization in my answer.  Hat to camel case on iPhone.

Sent from my iPhone

On Jul 4, 2013, at 11:51 AM, Tony Gayter <[email protected]> wrote:

> Tried that, isn't returning anything though. Yeah I remember about teh 
> conditions you talked about previously. Its been noted so we can look into it 
> if there are any issues.
> 
> 
> On 4 July 2013 16:19, Jian Huang <[email protected]> wrote:
>> Hi tony,
>> 
>> Try this, I think it is faster
>> 
>> Store:item.Page.GetElementByName
>> 
>> By the way, if you are using the foreach and store, becareful of race 
>> condition when doing many pages publish at once.  The store value may return 
>> value of another page
>> 
>> Sent from my iPhone
>> 
>> On Jul 4, 2013, at 10:25 AM, Tony Gayter <[email protected]> wrote:
>> 
>>> Yeah, its odd as I looked at teh nav manager guids and they didnt match up, 
>>> after playing around I got to the following code which I can use in the 
>>> loop to get the actual page and elements
>>> 
>>> Context:Indexes.GetIndexById(Store:item.Id).Page.Elements
>>> 
>>> 
>>> 
>>> On Thursday, 4 July 2013 12:10:14 UTC+1, Jian Huang wrote:
>>>> 
>>>> Hi tony,
>>>> 
>>>> It is the navigation index/GUID.  Usually , it is the same as page GUID if 
>>>> created at the same time as page creation.  However, if you created page 
>>>> first, then make the page a master page, then import page into nav 
>>>> manager, another GUID will be generated for the page.  Reset navigation 
>>>> index may also have the same effect?
>>>> 
>>>> Sent from my iPhone
>>>> 
>>>> On Jul 4, 2013, at 5:28 AM, Tony Gayter <[email protected]> wrote:
>>>> 
>>>>> Does anyone know all the things which can be taken from a store item ? 
>>>>> For example I'm running this code
>>>>> 
>>>>> <reddot:cms> 
>>>>> <foreach itemname="item" object="Context:CurrentIndex.SubIndexes"> 
>>>>>       <htmltext>
>>>>>           <%!! Store:item.Id!!%>
>>>>>           <%!! Store:item.Headline  !!%>
>>>>>           <%!! Store:item.GetUrl() !!%>
>>>>>         </htmltext>
>>>>>  </foreach> 
>>>>> </reddot:cms>
>>>>> 
>>>>> This outputs the correct headlines for all the pages but the Id field is 
>>>>> not returning what I'm expecting. It is returning a guid of unknown 
>>>>> origin, the guid isn't the page guid, or any other guid which I can find, 
>>>>> I've checked everything, all the lists, elements etc. I've even looked at 
>>>>> the nav manager guids? Any Idea? Its also outputting a correct guid (with 
>>>>> dashes etc) unlike the guids reddot usually uses with dash's removed and 
>>>>> all caps.
>>>>> 
>>>>> As far as I can see from the docs you can get Name and Type if your 
>>>>> looping through elements also.
>>>>> 
>>>>> -- 
>>>>> 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 [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> Visit this group at http://groups.google.com/group/reddot-cms-users.
>>>>> 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 [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/reddot-cms-users.
>>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/reddot-cms-users.
>> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/reddot-cms-users.
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to