Jump to content

Recommended Posts

Posted

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!)

Posted

Thanks Soma!

That at least gets me part of the way there.

What about creating actual files (complete with content)?

Posted

Ah, that is a good point. The files could just be in a subdirectory to the module and then just copied....

a bit obvious  - why didnt I think about that??? :)

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
  • Recently Browsing   0 members

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