Not really ready for anything other than some more development work right now.
This plugin allows you to import or packages of elements (pages/forms/styles/plugins/sections/prefs/strings/js/images) that form a pattern.
Importing all elements of a pattern is not always possible as there may be name clashes between the elements being imported and existing elements.
Packages are uploaded via the admin interface and installed in much the same way as smd_admin_themes installs themes for the admin interface.
This plugin relies upon the gzinflate() php function which is not available on every installation. If it is not available, the plugin will disable itself with an explanatory message.
- Nearly everything!
- Grab more of the import mechanism from sed_cleaner.
- Grab scripting mechanism from sed_cleaner for instructions file.
- Develop a way of performing substitutions into the elements being inserted into the site (for example, the capture of an email address for injection into an email contact form or some other preference.)
- Package definition & creation mechanism (either via export from a site or by a different construction tool.)
- Addition of post-auto-install ‘next steps’ page.
For now, I’m using a specific packager to build one pattern.
I setup a the directory structure shown below for an example pattern called ‘contact form’.
patterns/
|
`---- contact form # This is the root of your pattern.
|---- info
| |---- directions.script
| `---- help.textile
`---- elements
|---- zem_contact_reborn.plugin
|---- zem_contact_lang.plugin
|---- rvm_counter.plugin
|---- contact_thanks.misc.form
|---- contact_email.misc.form
|---- contact_counter.misc.form
`---- contact_form.page
All of the following elements can be included in your pattern pack…
plugins |
forms |
pages |
styles |
javascript |
sections |
articles |
categories |
images (public side) |
images (admin side) |
strings of text |
- SetPref
- Add/Remove/Update Section
- Add/Remove/Update Category
- Enable/Disable Plugin
- Add Article
Pattern | Comprises |
---|---|
Contact Form | zem_contact_reborn + zem_contact_lang + rvm_counter + cf_counter.form + cf_address.form + cf_form.form + contact.page + dialog with user to collect email address for cf_address.form |
Steps wizard | images + js + css + dialog with user to collect name for containing page/form |
This project is released under the GPLv2.