Shortcode-Api

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Shortcode-Api

Post by svasti » Mon May 04, 2015 3:50 pm

Hi all,
I just received a request, which I guess belongs here:
Buchholz wrote:Name: Buchholz
Telefon-Nr.:
Hahho Herr Ziesing,

da Sie wohl an der Entwicklung von Cmsimple beteiligt sind möchte ich einen Vorschlag machen : In Wordpress gibt es die Shortcode-Api, die auf Github auch für Getsimple angepasst wurde. https://codex.wordpress.org/Shortcode_API (bzw. http://generatewp.com/shortcodes/)

Dort liegen hunderte von diesbezüglichen Plugins für Shortcuts. Man könnte die obige Shortcode-Api in Cmspimle Integrieren (notfalls auch nur per Plugin). Damit lassen sich auch Buttons und Menüs etc erstellen(http://shortcodes.themeblvd.com/generator/) usw.
Grüsse manfred Buchholz
Anybody any opinion on this subject?

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Shortcode-Api

Post by cmb » Mon May 04, 2015 5:41 pm

Hm, actually that doesn't seem to make much sense for CMSimple_XH as it already has the plugin call. Consider the example from the Shortcode API page:

Code: Select all

[gallery id="123" size="medium"]
In CMSimple_XH 1.6.6 one would write instead:

Code: Select all

{{{gallery('123', 'medium')}}}
Okay, shortcodes allow named parameters, but the actual plugin calls would have to be adapted for this to work.
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Re: Shortcode-Api

Post by svasti » Mon May 04, 2015 7:52 pm

I also thought that it was rather complicated compared to the CMSimple_XH style, e.g. writing a small addon for the userfuncs.php.

Post Reply