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.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Seperate menu / subsite


Reply


6 Posts   1806 Views

Avatar
Mednezz

Community Member, 23 Posts

9 September 2007 at 1:07am

Edited: 09/09/2007 8:06pm

Hey there guys!

I've made a site using silverstripe, until now without much problems! Take a look if you like http://www.emp-ex.nl It's dutch but is a job search site and all kinds of carreer news and information. The site you see is for employees but now i want to make a different section for companies using the same templates but with it's own menu (sitetree) and some other stuff then for the employees.

Now i've tried solving this problem by litterally copying the whole website, but my problem is i got 2 databases, 2 filemanagers, and next to that i want to share the news module and open job vacancies. Does silverstripe provide a solution for this problem? Does anyone know how i could script this?

Would it be possible to create 2 folders in the sitemenu and read out folder 1 for the employees and folder 2 for companies? Maybe some other solution?

Thank you for thinking with me! If anyone would like to see some code of it just ask!

Grtz Martin

Avatar
Ingo

Forum Moderator, 801 Posts

9 September 2007 at 2:51am

holy crap, awesome site - its great to see silverstripe being adopted for more complex projects out in the open!
hayden from silverstripe has been building a "subsites"-feature for some clients that might match your needs - afaik, its still early beta and not merged back into trunk yet, but you might wanna ask him about some pointers (or even a copy of the code) - hayden (a) silverstripe (dot) com

Avatar
Tim

Core Development Team, 201 Posts

9 September 2007 at 1:16pm

Nice looking site Mednezz - don't forget to add it to your profile, so it gets shown in the [url=http://www.silverstripe.com/showcase/]showcase section[/url].

Re the sub site code, I think this may be in sub version now if you want it, however it's not going to be formally released for about a month or so.

Avatar
Mednezz

Community Member, 23 Posts

9 September 2007 at 8:05pm

thank you guys! I've added the site to the showcase!

I'll have a look in the svn!

Cheers!

Avatar
Mednezz

Community Member, 23 Posts

9 September 2007 at 8:55pm

and back again! hahaha

I downloaded the module from the subversion. Committed it to my project, did the db/build/?flush=1 but can't get it to work.

Am i forgetting something? The _config.php looks ok, don't see any errors or whatever. Tried getting the module by requesting /admin/subsites

What am i missing? I'm eager to help silverstripe developing this module but need a little help starting...

Avatar
Andy

230 Posts

9 September 2007 at 10:56pm

The subsites module requires the changes made to the core for SilverStripe 2.1.0 - this should be released not too far away, else you can try the code in subversion.