5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1009 Views |
-
Components

18 December 2008 at 3:07pm Last edited: 18 December 2008 3:08pm
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.)
-
Re: Components

18 December 2008 at 6:25pm
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.
-
Re: Components

19 December 2008 at 3:40pm
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>
| 1009 Views | ||
|
Page:
1
|
Go to Top |


