View more context

 

manueltomasir

i do have an SS4 specific question...I had help with this before, and everything i tried on my previous build doesn't seem to be working on this one...might be a step i'm missing in the documentation i put together from last time...

i migrated a site to my stage server, everything seems to work, except for the homepage template...it isn't using the actual template SS file, it is just displaying the default "Welcome to SilverStripe! This is the default homepage. You can edit this page by opening the CMS." text

manueltomasir

i've confirmed the page type is set in the CMS for this page

manueltomasir

something to do with the naming conventions on the files...I changed to http://Homepage.ss and Homepage.php and it works...instead of http://HomePage.ss and HomePage.php

MichalKleiner

If your PHP class name is HomePage with capital P, the template needs to be named like that, while reflecting the namespaces if used.

Mo

Hey all, has anyone had any luck getting the CMS to automatically switch to a tab reflected by a #hash in the URL?

Mo

So say I have a tab Root_Reviews and I visit http://path/to/site/admin/editlink/#Root_Reviews then the CMS will show the reviews tab

Mo

Just trying to write some JS to do it, but wondering if someone else might have beaten me to it?