septor / showonpages

e107v2: Custom Content Display Plugin
2 stars 1 forks source link

Add 'activated' Field Type #7

Open septor opened 8 years ago

septor commented 8 years ago

Allow the content code to be active or not. The example provided to me will be the easiest to explain why this would be useful:

"If you have multiple content codes to load CSS files to change the look of your site (think Bootstrap themes), you may want to cycle through them with a cron job to display a new one every hour. It would be easier to set up all the content codes and then have a script (or whatever) cycle through and activate one while deactivating all the others."

Note: The actually code to cycle through and change the activated field would not be part of ShowOnPages. It's used as an example!

Jimmi08 commented 8 years ago

Look at this: http://v2demo.e107.sk/index.php But I think it's better to create separate plugin for this functionality.