Seperating content/ layout on duplicate forms.
Posted: Tue Sep 22, 2009 4:55 am
I have my first 'real' project to work on. The project is to redesign the back office CMS for an existing website.
The original back office was done by at least 3 different people, 2 of which were 'fired' from the project, hence the code is very confused, mixing code, and form layout together which now makes changing the back office layout extremely difficult. Hence the redesign.
I really want to restart from scratch on this and seperate out the layout from the code.
The first problem I need to solve is this:-
The backoffice form has three parts 1. Add contact 2. Sections - this contains the image/text to be shown when that section clicked on the main site. 3 Bottom.
I need to be able to add sections to the website (effectively a new page) this is done by clicking a 'create new section' button. This button needs to duplicate the 'Sections' part of the form so now I have 4 parts to the form etc etc.
Obviously I want to use the same layout but I need to change the destination for the information coming from the 2nd 'section' part. Any ideas on the best way to go about this?
If this is confused or you would like to see an image I'll add a link.
(In the original code they stored all layout info in one variable, but this makes it difficult to work on)
Thanks,
The original back office was done by at least 3 different people, 2 of which were 'fired' from the project, hence the code is very confused, mixing code, and form layout together which now makes changing the back office layout extremely difficult. Hence the redesign.
I really want to restart from scratch on this and seperate out the layout from the code.
The first problem I need to solve is this:-
The backoffice form has three parts 1. Add contact 2. Sections - this contains the image/text to be shown when that section clicked on the main site. 3 Bottom.
I need to be able to add sections to the website (effectively a new page) this is done by clicking a 'create new section' button. This button needs to duplicate the 'Sections' part of the form so now I have 4 parts to the form etc etc.
Obviously I want to use the same layout but I need to change the destination for the information coming from the 2nd 'section' part. Any ideas on the best way to go about this?
If this is confused or you would like to see an image I'll add a link.
(In the original code they stored all layout info in one variable, but this makes it difficult to work on)
Thanks,