to make sure, that you have the same element:
If you can do this -
 - delete both elements in both templates
 - create a new inf_pageID element within (I love to see, that finally
everybody uses naming conventions
http://blog.markusgiesen.de/2008/04/26/reddot-cms-development-and-element-name-conventions/
that was awful for a long time)
 - double click the element in the SmartTree so that it appears in the
clipboard
 - paste the element in the parent content class
 - embed the element inside the template code

That should do the job.

Hint: if you don't need the link element place a blockmark around it
so that it is only used withing RedDot (keep your code clean)

Cheers


On Mar 31, 6:55 am, Gavin Cope <[email protected]> wrote:
> Also, make sure the info placeholder is not used anywhere outside the list
> block marks on the parent page. If it is, it will only report the parent
> page's ID rather than the child page's ID even though the placeholder is
> inside the list block marks.
>
> Cheers,
>
> Gavin
>
> 2009/3/31 Bobby Jack <[email protected]>
>
>
>
> > Wayne Bouwmeester wrote:
> > > Yes, make it an info element in each page.
> > > That way if you use pages from class A on some other list, it will
> > > work there as well.
> > > Make sure the Page ID field is within the list block markers on class
> > > B
>
> > > On Mar 30, 12:09 pm, Bobby Jack <[email protected]> wrote:
>
> > >> Wayne Bouwmeester wrote:
>
> > >>> Create an info element of type page id on class B
> > >>> name it info_PageID
> > >>> create the same element on class A (same name)
> > >>> use the element within your list block markers and it will display the
> > >>> page ID of the current page in the list loop.
> > >>> Use it outside the block markers, it will display the ID of the
> > >>> current page you're viewing.
> > >>> Wayne.
>
> > >>> On Mar 30, 8:51 am, bobbykjack <[email protected]> wrote:
>
> > >>>> For some reason, every time I try to do this, I struggle. So, can
> > >>>> someone please give a definitive answer; I'll keep a record of it this
> > >>>> time, I promise!
>
> > >>>> So, I have a page (A) containing a list (lst_items). That list
> > >>>> contains a number of pages, let's say one of them is B. I need to get
> > >>>> B's page ID and display it in A.
>
> > >>>> I definitely need:
>
> > >>>> <!IoRangeList>
> > >>>> <!-- <%lst_items%> -->
> > >>>> ... some content ...
> > >>>> </!IoRangeList>
>
> > >>>> and I'll need some kind of transfer element or same-named element
> > >>>> somewhere. Any ideas?
>
> > >>>> - Bobby
>
> > >> Thanks, Wayne. That's what I have, but it's only displaying the parent
> > >> ID's page in the list loop. Should the elements be of exactly the same
> > >> type (e.g. Info, PAGE ID) or should one be a transfer?
>
> > Hmmm ... that's what I have: still doesn't work. Does the element need
> > to be copied+pasted somehow? The marker should be an 'IORangeList', right?
--~--~---------~--~----~------------~-------~--~----~
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