Looking on my yesterdays post with a fresh eye,- how one could possibly understand what i was talking about... Sorry.
No, i don't to add CSS/Markup on the fly to the frontend. Hopefully it becomes more clear if i'll be more descriptive ...
When i build client pages and it's specified what content elements the page needs, i begin writing the Markup/CSS (Plain HTML). This contains different kinds of content elements or/and content element groups which building a meaningful unit. Some call it Modules, some call it Components, some even don't have a name for it...
Examples (for Modules as i like to call them for now):
- Some Text with a Heading and Picture aside
- Picture Gallery with Captions
- List of employees (Picture, Contacts)
- <you name it>
When i am done with writing the markup/css i integrate this into the CMS: create appropriate fields, assign them to templates, populate the template files with the variables a.s.o.
The order and what is displayed on page edit screen is determined. Optional i can create fieldsets to group depending fields (representing the internal module) visually a bit. But that's it...
So, i was wondering if i can find a way that gives me (and the clients later on) a bit more flexibility on adding/reordering predefined content elements (e.g. Modules).
Use case:
I am on a edit screen of some page (backend). Some kind of selection allows me to pick a available module (which represent a bunch of fields) to add to the page. For example the module "List of employees" (s. above). After that i select another available module (e.g. "Picture Gallery") and add it.
So the page looks like this:
<List of employees>
<Picture Gallery>
Next i like (drag&drop) to reorder the former added modules (to make sense,- this should reflect the display in the frontend of course. But that is not important for this use case) .
So afterwards the page looks like this:
<Picture Gallery>
<List of employees>
Now i like to add another instance of the "List of employees" Module because there some more company divisions.
<Picture Gallery>
<List of employees>
<List of employees2>
Because the Division Boss is a VIP (so he thinks at least), i move the last "List of employees" to the top of page.
<List of employees2>
<Picture Gallery>
<List of employees>
Hopefully this makes it more clear what i meant...
Maybe i am missed something that exist (forum post or in the processwire modules section) yet.
regards
felic