Setting CMS Up to Edit existing content
2 posts by 2 authors in: Forums > CMS Builder
Last Post: August 23, 2010 (RSS)
By skoenig - August 23, 2010
Maybe I am missing something.
I do not see a method to import an HTML page.
Is there no method to import an existing HTML page into CMS?
For example, if I create a "section" called Main for index.html, how do I pull all of the HTML into CMS?
Sean
I do not see a method to import an HTML page.
Is there no method to import an existing HTML page into CMS?
For example, if I create a "section" called Main for index.html, how do I pull all of the HTML into CMS?
Sean
Re: [skoenig] Setting CMS Up to Edit existing content
By Chris - August 23, 2010
Hi Sean,
Instead of importing an entire page, the usual approach is to copy-and-paste HTML over from your original HTML page into the PHP page you get from the CMS Builder Code Generator. This way you can keep your (mostly) unchanging display code separate from your ever-changing content.
The trick here is to identify parts of your page which should be updatable from your CMS, rather than making the whole page editable. These parts will become "fields".
It's possible to have one big field which contains your entire HTML page if you need to, but that may make things difficult to update.
Does that help? Can you show me your index.html page and I can suggest an approach?
Please let me know if you have any questions.
Instead of importing an entire page, the usual approach is to copy-and-paste HTML over from your original HTML page into the PHP page you get from the CMS Builder Code Generator. This way you can keep your (mostly) unchanging display code separate from your ever-changing content.
The trick here is to identify parts of your page which should be updatable from your CMS, rather than making the whole page editable. These parts will become "fields".
It's possible to have one big field which contains your entire HTML page if you need to, but that may make things difficult to update.
Does that help? Can you show me your index.html page and I can suggest an approach?
Please let me know if you have any questions.
All the best,
Chris
Chris