Prepare Custom Installer

Permalink
Hi there!

I would like to prepare an installer, so we can speed up the process of building sites.

The ideal case would be that an installed version has automatically direct after the installation:

> the german language pack installed and active
> A custom theme installed and active
> 4 Custom packages installed and active
> A separate User created
> Custom Text and images loaded in the Main Content area
> ....

The german language pack is easy, I just changed in the concrete/config/base.php en_US to de_DE and prepared under languages the de_DE language pack. To bad I can't theme the base.php and have to write it in the concrete folder.

Adding custom themes and packages is of course easy too, but I was wondering if you cannot have them as default already installed and active - it's just some clicks, I know, but I would like to know if the possibility is given.

I saw somewhere that you can create an User, need to find that one again...

And then custom text and images. couldn't find anything about this, maybe anyone got a clue for me?

 
Tony replied on at Permalink Reply
Tony
you might want to have a look at /concrete/controllers/install.php for lots of examples on doing some of this stuff, including adding content blocks to a page and adding images to the system.
Mnkras replied on at Permalink Reply
Mnkras
that isn't hard to do, if you want, i can write up a little script, is the theme a package? or is it just a plain theme? also what should the separate user's permissions be?

also, if you want, i can on install have it write to the config to set the locale to de_DE so updates arn't as much an annoyance,

iv already added custom content on install so thats easy, let me know
Kiesel replied on at Permalink Reply
Hi Mnkras and Tony

Tony, I will check it out, thank you.

And Mnkras, Wow, that would be awesome!

The theme is a package.

The additional User needs only to see one additional navigation entry (called: downloads) and have access to it. Ordinary visitors should not see this site and not be able to access it.

I'm also thinking about an "Editor User" with practically all rights the administrator has, except that he sees a bit less in the administration panel (no dashboard/system/jobs/ for example).

But I think I can figure that out myself if you give me a starting point with the one additional user.

Also the language been set on install so I don't need to care on updates, would be very cool.

Thanks a lot!
Kiesel replied on at Permalink Reply
Okay, got it.

I write my own install.php and save it in the root controllers folder.

Then the installation routine accesses my themed install.php file.

I will check out the original install.php file and hope I can get all infos I need from there.
goldhat replied on at Permalink Reply
Just wondering if you eventually got this custom installer built? Fast forward a couple years and this would have been perfect for a StartingPoint.
Kiesel replied on at Permalink Reply
I did. Worked perfect, but they changed the installation process and now it's a bit different. A mix between an xml and php file. I'll look that I can send you an example on Monday.
goldhat replied on at Permalink Reply
Jason, I found this post which had slipped my memory thanks for sending that to me and I will check it out. Recently I made a package designed to simplify making installers, startingpoints, it's free on github and I put a post about it over athttp://www.concrete5.org/community/forums/customizing_c5/free-packa...