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

pagestyle not showing up in dropdown menu


Go to End


6 Posts   1090 Views

Avatar
bit99

Community Member, 24 Posts

20 July 2010 at 9:21am

Hi,
let me start by saying that I love this product,

I have a problem though, I tried to create new page styles, acc. to your doc.silverstipe.. and tutorial one/two,
- added the page( s).php to the mysite/code,
- added the page (s) in the templates/Layout directory ,

but,, no matter how I go back over it and redo, and try, the new pagestyles wont show up in the dropdown in the cms,
maybe I am missing a step?

thanks,

Avatar
bit99

Community Member, 24 Posts

20 July 2010 at 9:23am

forgot to add that I did the flush and the dev/build,

thanks,

Avatar
Willr

Forum Moderator, 5523 Posts

20 July 2010 at 11:11am

When you did a dev/build did it appear green with the added record. Could you post the php file you used for it. Make sure your webserver has read permissions to the php file and perhaps use /dev/build?flush=all.

Avatar
bit99

Community Member, 24 Posts

20 July 2010 at 1:14pm

Hi Willr,

thanks for responding so quickly,

god damn, that was it, of course,
I had the php folder / files at 644, changed it to 755 and it rebuilt for me,

thanks!!!

ps. 755 not the most secure maybe?

Avatar
Willr

Forum Moderator, 5523 Posts

20 July 2010 at 3:39pm

Hmm I would have thought 644 would work. What is your webserver running as (www-data or apache) and is it the owner of the directory. The only folders which need to be writable should be the cache folder and the assets folder. You might want to have a play around to see what works and what doesn't.

Avatar
bit99

Community Member, 24 Posts

20 July 2010 at 5:13pm

Hi Willr,
I am absolutely not a server expert,
but wouldnt it make sense though with 644 not working since it gives no execute permissions - only read ?
pretty sure it's apache, and I have the silverstripe installed on an add-on domain to my hosting account (with hostmonster.com, which I think is a great place for hosting),
it's actually installed in a subdirectory on that addon domain until I get the website complete and will then move it, maybe that caused the permissions issue,
anyways, it works now,
thanks,
/Jonas