contao / core

Contao 3 → see contao/contao for Contao 4
GNU Lesser General Public License v3.0
490 stars 213 forks source link

Backend DC_* deHTMLizing #2987

Open ghost opened 12 years ago

ghost commented 12 years ago

See attached patch file, to move static HTML code from CoreCode to a Template. Actually it is only a ProofOfConcept, with one Hook, which is triggered before the Template is parsed.

The idea behind that fact is, to prepare only the data, and let the Template render it for the browser. (Standard Contao FE behaviour) Therefor, it is easier to build special Themes for MobileDevices or external access of the backend.

Download the attachments

--- Originally created by lindesbs on April 5th, 2011, at 10:35am (ID 2987)

leofeyer commented 12 years ago

Since back end templates are way more complex than front end templates, I doubt that this will really work. I leave the ticket open though.

--- Originally created on April 6th, 2011, at 06:17pm

ghost commented 12 years ago

Take a look at backboneit_dctableextended, which externalizeses all editing views into own templates. Same could be done for listing views. Generally I would say, that the different dataset listing methods and the edit view should be become own classes, which would make the system much more flexible in regards of extensibility and flexibility. Adding new listing methods is a pain...

--- Originally created by backbone on April 7th, 2011, at 11:49am