21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 492 Views |
-
Need help

3 March 2010 at 2:13pm
If I have set some info in Projects what is ProjectsHolder what has diffrent ProjectPages under it and the info is Shown in sidebar how i can control that the ProjectHolder sidebar on every page and containing the info From The Projectholder Allowed childrens.
Thanks
-
Re: Need help

3 March 2010 at 2:17pm
Or is there a way to make a widget that is showing the info of Projectholder
if there is what to i need to write to the codeIs it something like that
<% control Children of(Projects) %> -
Re: Need help

3 March 2010 at 2:19pm
Hi Webdoc.
Do you want to list children of ProjectHolder in its sidebar?
you can create a ProjectSidebar.ss and include it in ProjectHolder.ss
inside ProjectSidebar.ss add a control block.
<% control Children %>
<p>$Title</p>
<p>$URLSegment</p>
<% end_control %>hope that's what you trying to do.
cheers
-
Re: Need help

3 March 2010 at 2:24pm Last edited: 3 March 2010 2:25pm
No i have them already in sidebar but in holder page only how to show them in other pages too like frontpage and contacts and so on.
-
Re: Need help

3 March 2010 at 2:36pm
how to make it
is there avai to control childrens if i am on some other page what is made using diffrent pagetype -
Re: Need help

4 March 2010 at 9:10am
you could try create a function retrive(){} and using DataObject::get('Project'.....) to retrieve the Prjoect type object in other pages.
Put in to HomePage_Controller{}. and call it in .ss template using $retrive to get the whole object.
The Debug::show(); could be helpful when u not sure what will output after calling DataObject::get().Hope it may help
| 492 Views | ||
|
Page:
1
|
Go to Top |



