Morepagedata_XH plugin published

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

svasti
Posts: 1649
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany
Contact:

Morepagedata_XH plugin published

Post by svasti » Fri Aug 10, 2012 3:34 pm

Hello everybody:

You can find a new plugin on http://svasti.de, it is Morepagedata_XH ... version 1 alpha

What does it and why did I do it?
A yoga teacher woman friend of mine asked me to make a website for her. She had very specific and complicated ideas on lay-out and colors and wanted every page with a different background image. ... :(

Then 6 months later another yoga teacher women friend of mine (they don't know each other) wanted me to redo her site, which was done with flash and had different colors, different slide show and different header image on every page. (A preliminary test is visible at http://yoga-detmold.de/test/)

And on my own CMSimple-website, I wanted some pages with wider content area, some with different logo, some with memberpages login area.

So Morepagedata came into existance! It enables the webmaster to set predefined design elements per page without changing the template.
  • different colors of details like menu or content background on every page
  • different background images in prepared page areas on every page
  • display a slide show of different images on every page, different effects can be set per page
  • and change other aspects like content width, newsboxes etc. per page with a
    simple checkbox or options menu.
Morepagedata does this by entering new variables into the pagedata.php. Similar effects may be achieved by changing the template. However if you need only small changes in a template, you may prefer using Morepagedata. Usage is easy.

Only the configuration of the plugin is a little challenging and demands an understanding of CMSimple templates.

After finishing this I learnd from Christoph, that he had once started something similar under the name Userfields_XH. However the discussion here seems not to have encoraged him to develop the idea further. Whereas in userfields_XH all possibilities are left open, in Morepagedata_XH you must specify what your field should do, either:
  • Checkbox
  • Template image list
  • Slide show
  • Slide show effect
  • option list (freely definable options)
  • Color picker
svasti

cmb
Posts: 12876
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Morepagedata_XH plugin published

Post by cmb » Fri Aug 10, 2012 3:52 pm

Hi svasti,

currently the download doesn't work, because the downloads.dat file is write protected. :(

Christoph
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

svasti
Posts: 1649
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany
Contact:

Re: Morepagedata_XH plugin published

Post by svasti » Fri Aug 10, 2012 4:27 pm

:oops: :oops: :oops: just changed that
svasti

cmb
Posts: 12876
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Morepagedata_XH plugin published

Post by cmb » Fri Aug 10, 2012 7:24 pm

A very nice plugin! The concept of "template variables" is probably hugely underestimated, but Morepagedata_XH presents and explains (in the very good help file) several useful applications. And I'm still convinced that it's a great simplification for the end-user to set these "template variables" for each page not through CMSimple scripting, but in a GUI like fassion in a pagedata tab.
svasti wrote:Whereas in userfields_XH all possibilities are left open
Indeed in the draft I've published long ago the fields were simple text fields. But I had in mind to use different field types: text, boolean, enum, list, date, image etc., though nothing as special as the slide show.
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: Morepagedata_XH plugin published

Post by maeg » Sat Aug 11, 2012 6:50 am

Hi
Very usefull plugin.
Danish lang-file can be downloaded from http://cmsimple-xh.dk/?Download

svasti
Posts: 1649
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany
Contact:

Re: Morepagedata_XH plugin published

Post by svasti » Wed Oct 17, 2012 1:33 pm

Morepagedata 1beta published.

What's new?
Morepagedata will now check if newly added variables by the user are already in use by the system.
Otherwise most changes had been to version alpha3 (didn't annouce it here). Upgrading is explained in a specail "update.txt" file (some little practical changes).

Download from my Website http://frankziesing.de/cmsimple/ as usual (Teaser_XH is used on the start page)

From the help file:
Morepagedata enables the webmaster to set all kinds of predefined design elements per page without changing the template.
  • different colors of details like menu or content background on every page
  • different background images in prepared page areas on every page
  • different newsbox content per page
  • page specific text entries outside the standard content area
  • display a slide show of different images on every page
  • and change other aspects like content width etc. per page with a
  • checkbox, options menu or input field with pop up help.
svasti

snafu
Posts: 352
Joined: Sun Dec 26, 2010 5:18 pm

Re: Morepagedata_XH plugin published

Post by snafu » Wed Oct 17, 2012 2:04 pm

cmb wrote:...(in the very good help file) ... And I'm still convinced that it's a great simplification for the end-user to set these "template variables" for each page not through CMSimple scripting, but in a GUI like fassion in a pagedata tab.
sounds good, i must try it!
lg.
winni

Durch einen Sucher betrachtet wird alles zu einem Motiv.
meine Galerie; mein Blog, mein CMSimple Template Tutorial

svasti
Posts: 1649
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany
Contact:

Re: Morepagedata_XH plugin published

Post by svasti » Sat Nov 03, 2012 2:50 pm

Morepagedata 1 beta 2 released.

Sorry guys, I found a bug :? ... If you used checkboxes with Morepagedata, it wasn't possible to uncheck them :oops: . Strange that nobody noticed, including myself, as I used just that feature on my own website.

I simply forgot, that unchecked ckeckboxes won't send anything to the server.
That's fixed now thanks to somebody at stackoverflow.
(Before the checkbox one has to put a hidden variable with the same name and value="0". Now the value "0" will always be send, and if the checkbox is checked, it will be overwritten.)

Security check for new variables has been improved. New variable names that are already set in the system, or are pagedata variables, will be refused.

Download as before http://frankziesing.de/cmsimple/en

svasti

svasti
Posts: 1649
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany
Contact:

Re: Morepagedata_XH plugin published

Post by svasti » Thu Feb 07, 2013 4:29 pm

Morepagedata _XH 1 beta 3 released

Lots of improvements:
  • variables can become "template specific", so that they appear only in the page data tabs of pages of the specified templates
  • possibility to add morepagedata.csv to templates to provide automatic generation of pagedata variables
  • morepagedata will scan all templates for these files (when in plugin main) and propose to import and automatically implement these definitions
  • order of variables can be rearranged
  • improved checking for name clashing of variables
As every projet poses some new challenges, this time I learned to save the variables as multidimensional json value for better speed and smaller code. As this function needs php 5, a json function by Christoph was added in case someone has only php 4.

Download as usual http://frankziesing.de/cmsimple/?Start:Morepagedata (German)
or http://frankziesing.de/cmsimple/en/?Wel ... repagedata (English)

Additionally you can download the template Yogaschool (used in http:// demo.cmsimple-xh.dk), which is prepared for Morepagedata_XH. If you have loaded that template into your templates folder and go to Morepagedata plugin main, the plugin will propose to "import" Morepagedata from the template. Imported values are usually template specific, thus they will only be made editable via the page data tab, when the corresponding template is used.

svasti

svasti
Posts: 1649
Joined: Wed Dec 17, 2008 5:08 pm
Location: Bielefeld, Germany
Contact:

Re: Morepagedata_XH plugin published

Post by svasti » Mon Dec 16, 2013 11:09 am

New version Morepagedata 1beta 4 published,
works now with XH 1.6
svasti wrote:Download as usual http://frankziesing.de/cmsimple/?Start:Morepagedata (German)
or http://frankziesing.de/cmsimple/en/?Wel ... repagedata (English)
What's new?
  • Lot's of small improvements
  • plugins can be called via option list. (Maybe useful for customers who find entering plugin calls difficult, or for complicated plugin calls. Also you can give a specific plugin call any name you like.)
  • html-files can be entered. This is an experimental feature suggested by a certain Maik from Jena to make CMSimple multi user capable. Yes, you can have many authors who write articles independent of each other. The job of the admin would be to assign a page to the finished articles. This is now only in an experimental stage. To make it really work one would need a solution for these authors to write the articles --- and this is not yet availabe. (Could be something like memberpages, where the authors log in and then have an editor for writing their articles.) As the search function would not find anything in these articles, an extended search function would also be necessary. Anyhow, one can play with this function, and I 'd be interested to know if someone would want to use it in real life.
svasti
Last edited by svasti on Mon Dec 16, 2013 1:39 pm, edited 1 time in total.

Post Reply