exposing elements from sub-pages to parent page

67 views
Skip to first unread message

RayE

unread,
May 25, 2012, 4:00:06 PM5/25/12
to reddot-c...@googlegroups.com
I'm having some difficulty getting a page to render the way I want.
The main page consists of a list element containing pages with an image and some text.

I'm trying to render the image and text of each page within the list element within their own div on the main page, and also generate an unordered list that contains links to each div. 
So far, both are coming up empty.

Here's the markup I'm using on the main page content class:

<div id="tab-container">
 <ul class="tabs">
  <!IoRangeList><li><a href="#<%inf_pgItemID%>"><%inf_pgItemID%></a></li><!/IoRangeList>
 </ul>

<div class="tabs-panel">
 <!IoRangeList><div id="<%inf_pgItemID%>">
  <h4><%inf_pgItemID%></h4>
   <p><%img_pgItem%></p>
      <%txt_pgItem%>
 </div><!/IoRangeList>
</div>

</div>

I appreciate any guidance

Gavin Cope

unread,
May 25, 2012, 5:09:37 PM5/25/12
to reddot-c...@googlegroups.com

You need a list placeholder inside the list blockmarks.

--
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/-/SkLV-UBocHoJ.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.

Ray Evans

unread,
May 25, 2012, 5:57:33 PM5/25/12
to reddot-c...@googlegroups.com

Thanks Gavin –the list placeholder in place now, and the page does function now. 

Is there a way to reference the list without having the markup come along with it?  I’m just wrapping the placeholder with comment tags to hide them for now – but would rather not have the markup appear in the published page at all.

 

<div id="tab-container">
<ul class="tabs">

<!IoRangeList><!-- <%lst_pgItems%> -->


<li><a href="#<%inf_pgItemID%>"><%inf_pgItemID%></a></li>
<!/IoRangeList>
</ul>

<div class="tabs-panel">

<!IoRangeList><!-- <%lst_pgItems%> -->
<div id=<%inf_pgItemID%> class=tabs-content-pad>
<h4 class="cn-invisible"><%inf_pgItemID%></h4>
<p><%img_pgItem%></p>
<DIV class=tabs-content-pad>
<%txt_pgItem%>
</DIV>
</DIV>
<!/IoRangeList>
</div>

</div>

 

I’ve also tried using a container to hold the page items instead of the list.  This method renders the tabs-panel content fine - and no extra markup to deal with, but the tabs list remains empty.  Can I retrieve element information from pages in a container?

 

 

Thanks again!

Jian Huang

unread,
May 25, 2012, 6:48:45 PM5/25/12
to reddot-c...@googlegroups.com, <reddot-cms-users@googlegroups.com>
Hi,

You can wrap list element in smartedit mode and then non smartedit mode block mark

Sent from my iPhone

Gavin Cope

unread,
May 25, 2012, 8:57:10 PM5/25/12
to reddot-c...@googlegroups.com
Yeah, what Jian said :)
See Jian's blog for an example: http://simplyreddot.blogspot.com.au/2012/01/duplicate-pages.html

Cheers,

Gavin

Ray Evans

unread,
May 28, 2012, 6:18:54 PM5/28/12
to reddot-c...@googlegroups.com

Thank you Gavin and Jian,

Works like a charm!

 

Cheers,

Ray

Reply all
Reply to author
Forward
0 new messages