Skip to content

Pre-alpha WIP! Import web design patterns into your Textpattern CMS installation.

Notifications You must be signed in to change notification settings

netcarver/sed_patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

sed_patterns

Pre Alpha Work In Progress

Not really ready for anything other than some more development work right now.

Description.

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.

Dependencies

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.

To Do.

  • 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.

Packaging your own patterns.

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

Just what can be imported?

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

Instructions Script — Summary Of Actions.

  • SetPref
  • Add/Remove/Update Section
  • Add/Remove/Update Category
  • Enable/Disable Plugin
  • Add Article

Example Packages.

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

License.

This project is released under the GPLv2.

About

Pre-alpha WIP! Import web design patterns into your Textpattern CMS installation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages