Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Reply

3 Posts   1139 Views

Avatar
tgwpqd

18 December 2008 at 3:07pm (Last edited: 18 December 2008 3:08pm), Community Member, 7 Posts

How to use sibling menu component to call the linkedpage's content?

I try $LinkedPage.Content, but it does not work. However, the $LinkedPage.Author and $LinkedPage.Date are working fine. (BTW, the content under the subpage is created by components HTML Editor.)

Avatar
Liam

18 December 2008 at 6:25pm Community Member, 470 Posts

Why not try something like <% control ChildrenOf(page-url) %>$content<% end_control %>?

There is also <% control Children %> which will loop all children of page if you have more than one.

Avatar
tgwpqd

19 December 2008 at 3:40pm Community Member, 7 Posts

I have been asked to use components in CMS and all the page based on page.php

To do that, firstly, create template.ss and template-Edit.ss to control the components in the CMS, which means the content is not allow to write again. To edit the content, need to grab such as "HTML Editor" to create the content. And the main and mata_data in under a new one called Page Porperties.

the template.ss looks like:
<% control retrieveSlotItems(A) %>
      <div class="slot sort$Sort $Component.class">
         $Component
      </div>
   <% end_control %>

the template-Edit.ss looks like:
<div id="slots">
   <table cellspacing="10">
      <tr>
      <td id="SlotA" class="slot" style="width:75%;height:211px">
         <% control retrieveSlotItems(A) %>
            $EditSegment
         <% end_control %>
      </td>
      </tr>
   </table>
</div>