Should page.add.tpl and page.edit.tpl be merged?

95% 57
5% 3

60 Дата 07.12.2012 10:08

Форуми / Cotonti / Core Labs / Ideas / Опитування: Merge pade.add and page.edit

Getting rid of redundant code

Macik
#36465 07.12.2012 12:39

Vote for  «YES», but have several questions…

Is there ability to use one function with different TPLs?  I speak about using 2 tpl - one for add and one for edit.

Or some compromise solution to pass TPL path as a parameter, so (when we adding a page) first we can check is there separate «add» template, otherwise use standart «edit» one.

By the way, is this merge consider any «add/edit.first/tags» hooks? Would it be backwards compatible so old plugins still works?

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F