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

Ideal code layout for medium size SS site


Go to End


2 Posts   852 Views

Avatar
gregrogan

Community Member, 1 Post

7 October 2016 at 1:19pm

I'm involved in re-building a "medium" size, content focused site in the NZ government sector using SilverStripe. Most likely we'll have between 2 - 4 developers working on it at any one time. We also have a content team who have basic SilverStripe training.

I know the default SilverStripe install comes with a default "simple" theme. Since we'll only ever have once theme I've merged mysite and themes into an "app" folder. Are there any risks or drawbacks in doing that?

My second question is what else should we be thinking about in order for all developers to easily find/edit/create customisations on this site?
I'm thinking of using SCSS and a BEM approach to help with maintainability of styles. Although not too sure how to make is modular enough for developers not to step on each other and how to easily define break-point specific stuff for responsiveness. There also may be various "content" areas on any given page and I haven't thought about how to allow content editors to create re-order content areas if need be. Also how to make javascript nice and modular and not need to load un-required JS on a page. Perhaps webpack??
We are still at the stage of prototyping and user testing so nothing is set in stone code-wise.
Does anyone have any recomendations re the above?

Thanks in advance.

Avatar
ZarockNZ

Community Member, 17 Posts

17 October 2016 at 3:57pm

Hi. For the various content areas on a page take a look at the SilverStripe blocks module: https://github.com/sheadawson/silverstripe-blocks. We have used a number of times now and it works quite well for putting together pages out of various content areas.