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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Need help


Go to End


6 Posts   822 Views

Avatar
Webdoc

Community Member, 349 Posts

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

Avatar
Webdoc

Community Member, 349 Posts

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 code

Is it something like that
<% control Children of(Projects) %>

Avatar
carlos

Community Member, 42 Posts

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

Avatar
Webdoc

Community Member, 349 Posts

3 March 2010 at 2:24pm

Edited: 03/03/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.

Avatar
Webdoc

Community Member, 349 Posts

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

Avatar
SSadmin

Community Member, 90 Posts

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