BlackCatDevelopment / BlackCatCMS

BlackCat CMS is a PHP5, HTML5 content management system
https://blackcat-cms.org
Other
11 stars 9 forks source link

Creating new pages - Standard Template problem #205

Closed Morpheus1966 closed 10 years ago

Morpheus1966 commented 10 years ago

I'm creating a new page, as the template is "default" is selected. If I then me then look at the properties of the template page the system setting is selected (eg mojito)

This has the result that when I change the default template in the system settings and so the yes for the whole website would not, is transferred to the sides. So the pages to stay with the Standard Template wherewith they have been created at the time.

What I mean is, if you create a page with the default, but should also always take the default which is predefined by the system, right?

webbird commented 10 years ago

I'll check this.

webbird commented 10 years ago

I think I found the reason in CAT_Helper_Page, line 1611:

                $page['template'] = ( $page['template'] == '' ) ? DEFAULT_TEMPLATE : $page['template'];

Change to

                $page['template'] = ( $page['template'] == '' ) ? '' : $page['template'];

Will have to add a fix to the update script, too.

Morpheus1966 commented 10 years ago

work´s fine

Thanks

webbird commented 10 years ago

Great, thanks for testing. I've also added the fix to the upgrade script, have to test it though.