Jump to content

Recommended Posts

Posted

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.

  • Like 1
Posted

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.

  • Like 2
Posted
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 :)

  • Like 2

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...