Modify package Stucco

Permalink
Hey everyone!

I want to modify the free Stucco theme, and move it to my application folder. I've modified themes before, like the elemental theme, where it's pretty simple:
1. You move the theme folder to your application folder.
2. Change the theme name
3. Change the namespace in the page_theme.php file
4. Install the theme from within the dashboard

However, Stucco, is installed in a package. There is no 'package' folder in the application folder, so I'm not sure what to do here.

In the mydomain/package folder, there is a folder called 'theme_stucco'.
It contains folders like blocks, element and themes...

What I tried:
1. Move the contents of the 'theme_stucco' folder over to mydomain/application, so that all the blocks and elements move into the right folders
2. change the folder name mydomain/application/stucco to mydomain/application/stucco_edited
3. Go to pages and themes in the dashboard, get a 500 error

Now I found there's a controller.php file, which contains a namespace rule:
namespace Concrete\Package\ThemeStucco;


I think I need to change this rule as well. But to what? In the mydomain/package folder it refers to a package. But in the application folder, it's not installed as a package.

What do I do?

 
MeisterCoach replied on at Permalink Reply
I answered my own question.

I did almost everything correctly.

I just needed to change the namespace rule in
mydomain/application/themes/stucco_edited/page_theme.php

I changed it from
namespace Concrete\Package\Themes\ThemeStucco\Theme\Stucco

to
namespace Application\Theme\StuccoEdited;

This solved the HTTP 500 error I got. I just installed the theme and everything works.