Jump to content

Auto-detect & create fields from new template file


MarcC
 Share

Recommended Posts

Just popped into my head, maybe it's already been done?

I create a new template file, copy all of my HTML into it, and add a bunch of comments like this:

<!-- field:page:textarea:TinyMCE -->

<!-- field:page:images -->

...and then PW assigns those fields to the template automatically when I tell it to make the new template out of an existing file. Maybe even puts basic PHP in after the directive comment. Crazy idea?

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