Kunstmaan / KunstmaanBundlesStandardEdition

The "Kunstmaan Bundles Standard Edition" distribution
http://bundles.kunstmaan.be
MIT License
89 stars 39 forks source link

How to add the first page? #84

Closed henrypenny closed 7 years ago

henrypenny commented 10 years ago

It seems with out a homepage there's no means to add a node?

henrypenny commented 10 years ago

I think this is only a problem if you aren't using the 'en' locale. The fixtures appear to create en and nl translations. Not a translation for each local defined in the config.

Mopster commented 10 years ago

When you go to the page in the admin in the desired locale, there's the option to create a new clean version of the homepage in that locale or to copy the content from another locale. Once that's done, you can do everything else.

henrypenny commented 10 years ago

In my situation there were no pages at all visible in the pages section under any locale. Its a bit of an edge case since I didn't specify either the en or dl locales.

From the fixtures:

$translations[] = array('language' => 'en', 'callback' => function($page, $translation, $seo) {
.....
$translations[] = array('language' => 'nl', 'callback' => function($page, $translation, $seo) {
.....

They are hard coded ... so if you happen to have not chosen 'en' or 'dl' during your setup you're stuck with no visible nodes and no means to create one.

I think if its worth fixing, then a button to "Create home page for locale 'xx'" would solve it.

sebheitzmann commented 9 years ago

I had the same problem with a fr locale. It's very confusing.

denbatte commented 9 years ago

I think this has been fixed when upgrading the generatorBundle in the Kunstmaan CMS 3.1 version.

henrypenny commented 9 years ago

I don't think I'll have a chance to check this for a while.