Forums / Cotonti / Core Labs / Archive / Increase extra fields in pages

PAGE_EXTRA6 - PAGE_EXTRAxx

medar
#1 2008-10-23 22:05
I use additional page fields in every of my Seditio projects.
I propose increase extra fields by default. Some for <input> , some for <textarea>:

Changes for sql:
page_extra6 - VARCHAR(255)
page_extra7 - VARCHAR(255)
page_extra8 - VARCHAR(255)
page_extra9 - VARCHAR(255)
page_extra10 - TEXT
page_extra11 - TEXT
page_extra12 - TEXT
page_extra13 - TEXT
page_extra14 - TEXT
... or do more

And do support tags PAGEADD_FORM_EXTRAxx , PAGE_EXTRAxx, PAGEEDIT_FORM_EXTRAxx in system/core/page/page.add.inc.php , system/core/page/page.edit.inc.php , system/core/page/page.inc.php.

In my opinion, it would be nice.
I may do this commit.
rangjungyeshe.ru
Lombi
#2 2008-10-23 22:51
Trustmaster just released code that does this, minus the pageadd/edit bits and actual sql modification.
<a href="http://www.domenlo.com">Surreal Art</a>
Trustmaster
#3 2008-10-23 23:58
90% of users will not need it, which means a waste. I propose this as a plugin, a part of which has been recently released on Neocrome. If the demand is high enough, we can also code the Admin and Add/Edit parts for that plugin.
May the Source be with you!
medar
#4 2008-10-27 05:37
Sorry for the initiative but i realized this feature as core hack.
See http://trac.cotonti.com/changeset/128
Please test.

I may rewrite it as plugin if it need.
But i think may way is the best solution.
rangjungyeshe.ru

Dit bericht is bewerkt door medar (2008-10-27 15:12, 15 jaren ago)
oc
#5 2008-10-27 06:26
Bugs.. page.php?m=add

I like the idea, but you gotta make sure It won't bring side effects. I myself did a hell of a job for 2 miliseconds, I expect that from everybody.
medar
#6 2008-10-27 15:10
# oc : Bugs.. page.php?m=add
Any details ?
To the new field appeared in page.php?m=add need to manually write in page.add.tpl (PAGEADD_FORM_...)
# oc : I like the idea, but you gotta make sure It won't bring side effects.
I was test it on my localhost, all works fine.
If we are afraid of possible side effects, we will never write a good cms. :)

PS I forget show link pages for add/editing extra fields - admin.php?m=page&s=extrafields
Administration->Pages->Add/Edit extra fields for pages
rangjungyeshe.ru
Trustmaster
#7 2008-10-27 18:04
I don't mind an ability to customize pages behavior from Admin panel, as we try to get more user friendly. But I agree with oc that we should make sure it does not affect the performance on those sites which won't use custom extrafields. And a lot of testing of course.
May the Source be with you!
medar
#8 2008-10-27 18:39
In critical for performance system/core/pages/page.inc.php (display page) only added one lightweight SQL-query to small table (getting list of extra fields). That's all.

May be transfer topic to Projects ?
rangjungyeshe.ru

Dit bericht is bewerkt door medar (2008-10-27 19:01, 15 jaren ago)