WebDevStudios / WDS-Simple-Page-Builder

Uses existing template parts in the currently-active theme to build a customized page with rearrangeable elements.
GNU General Public License v2.0
136 stars 25 forks source link

Show/hide areas per page #44

Open blobaugh opened 9 years ago

blobaugh commented 9 years ago

It came up in f2s conversation that it would be nice to not display certain areas on all pages. For instance, a homepage area should only show on the homepage edit screen and maybe not other areas, whereas the other areas may need to display on all edit screens except the homepage.

Maybe we could add 2 new lines in the header for including and excluding edit pages?

Rough idea

/**
 * ....
 * Include: home
 * Exclude: all
**/
colorful-tones commented 9 years ago

+1

jazzsequence commented 9 years ago

I'm thinking the additions to the part header would be more like:

/**
 * ... blah blah blah ...
 * Pages: home, news, activity
 */

Comma separated list listing the pages we want them on. Possibly if we wanted to exclude certain pages and add the part to all other pages, we could do something like this:

/**
 * ... blah continued ...
 * Pages: !home, !news, !activity
 */

I would rather add only a single new line and be able to handle either possibility from there then have to add two new lines to include and exclude.

modemlooper commented 9 years ago

I like.

colorful-tones commented 9 years ago

totes makes sense

blobaugh commented 9 years ago

Sure, makes sense to me