Frank Vèssia Posted September 3, 2013 Posted September 3, 2013 Sometimes i use a "special" hidden page as control panel for some website options i want to have as variables, i create custom fields for this "settings" template and a page on top of the tree. Every time i need this variables i call the page from api $settings and i use it where needed, like $settings->replyEmail (text) or $settings->siteLive (checkbox) etc...Could be very nice and useful to mark this template as "menu link" and accessing this page from the main menu, maybe under Setup or as indipendent new voice, now i forced the admin template to have this but can be an option of the template or maybe of the page. 1
onjegolders Posted September 4, 2013 Posted September 4, 2013 I agree Sevarf, Diogo built a custom admin pages module which I haven't tried but I like the simplified approach you're advocating.
Martijn Geerts Posted September 4, 2013 Posted September 4, 2013 Sometime I hide a big textarea field somewhere. Just for storing $key : $value pairs. Every line on the textarea is one pair. color : blue cms : ProcessWire beer : Grolsch more : etc. Add as much variable as you want. 2
SteveB Posted September 4, 2013 Posted September 4, 2013 It's easy to make a module just for the purpose of holding settings and that way you get a nice user interface for them in the admin area. Good clues in the wiki: http://wiki.processwire.com/index.php/Module_Creation#Example_of_a_configurable_module $settings = $modules->get("MySettings"); echo $settings->greeting; 3
Martijn Geerts Posted September 5, 2013 Posted September 5, 2013 beer : [Hertog Jan](http://www.hertogjan.nl/)
SiNNuT Posted September 5, 2013 Posted September 5, 2013 beer : Super Bock Have been vacationing in the Algarve region twice and i must agree, Super Bock blows Dutch lager out of the water. Then again, maybe the beers just taste better on a vacation, no matter what brand you have 2
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now