Jump to content

Creating modules for basic field-template-template file set up


Joss
 Share

Recommended Posts

I was thinking about creating myself a module to short cut certain site development.

For instance, on a basic brochure site , it would be common to have a small news section that would vary very little from one site to another.

So, all the module need to do is a one-off process on installation: Create:

  • A bunch of fields using standard available field types,
  • A handful of templates using the fields
  • A few template files and some inc files in a separate folder (which may or may not exist yet)
  • A few pages to weld it together.

As I said, this is just a development short cut - you would still have to work it into the site, but it would reduce the work load.

I suppose the result would be a skeleton module that could be used to create lots of variations of the above.

The trouble is, I am not sure how to do the install functions for the above - especially the creation of actual files and/or folders.

Any clues?

Joss

PS: Oh, I suppose an added function could be that you could get it to check if a particular field type existed (for instance, crop-image) and if not, download and install it!)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...