Auto Site Start MODx Resource Install Script

A while back I posted an sql install script that I use for MODx that I called ResourceInstaller. My plans of creating a module based around this script haven’t materialized into anything yet, but the script has evolved a bit. I’ve renamed the sql script to AutoSiteStart because there was another project named similar to ResourceInstaller, and this script now installs more than resources. I wanted to take the time to post the sql script I’m using now since I think it shows a great way to get your development automated using MODx.

 

Download: AutoSiteStart.0.2-beta (195)

This sql script installs:

Categories

  • HTML Chunks
  • HTML Templates
  • Snippet Chunks

Templates

  • Home Page Template
  • Inside Page Template

Template Vars

  • MetaDescription
  • MetaKeywords
  • ExtraHeadScripts
  • SectionImage

Content
A few pages that I want installed by default:

  • Contact Us with a reference to the eForm ContactUs form
  • Contact Us thanks page
  • 404 Page
  • Site Map that uses WayFinder
  • A main menu include page
Chunks

  • Head, Banner, Content, Footer chunks that are called in the installed templates.
  • Other chunks that I commonly use for eForm, Ditto, and WayFinder

Snippets
The snippets that I’ve written and use on every site:

  • DynamicDescription
  • Title
  • CurrentYear
  • GetParentTitle
  • GetSubTitle
  • eformEvents

Users

  • 1 ‘manager’ user with the role of Manager (password is ‘manager’)

Roles

  • 1 Manager role with permissions to edit content.

This script should be considered to be pretty beta and should only be used if you know what you are doing (there’s a bunch of todos/bugs listed in the file). I maintain and change this script on a local mysql database and when I make changes I just do a data only export. Also, this script is meant to be installed right after you install MODx, since I’m sure their would be some duplicate key errors if you install it after you’ve added some users or templates. The End

if you liked this post :)

Category: Programming | 1,107 views | Posted: September 12th 2007 02:47 pm

Related Posts

2 Comments »

MyAvatars 0.2

Comment by Chuck - ProWebscape
on 04 Jun 2008 at 1:26 am # Subscribed to comments via email

Hey James,

That download’s not available anymore. Do you happen to have it around anywhere?

Chuck

MyAvatars 0.2

Comment by James Ehly
on 04 Jun 2008 at 8:10 am #

Hey Chuck, thanks for pointing that out! The wp-DownloadMonitor plugin I use for Wordpress decided to mess up all of my downloads the last time it updated :( Seems like WP’s fancy new plugin updater has some kinks to work out. All is well now, so it should work.

James

 
 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

« DEVTRENCH Alexa Rank on the Rise and the Sites That Helped | Work Some Database Magic with DBDesigner 4 »