HOW TO add module shortcodes {module:name} to the pages?

Discuss everything related to ApPHP Durecty CMF. All versions. Any questions related to the Directy CMF developing or using should be posted to this forum.

Moderators: ne_moj, alexmst, zewa

HOW TO add module shortcodes {module:name} to the pages?

Postby administrator on Jun 5th, '14, 13:18

Directy CMF allows you to add modules shortcodes to your pages (CMS module is required)

If a module has any defined shortcodes you will see them on the side panel when you add or edit pages.
shortcodes.png
shortcodes.png (20.98 KiB) Viewed 1077 times


Copy and paste shortcode to the required place on your page, for example:
Code: Select all
text.....
{module:faq}


and save it.

On the Frontend you will see how the system will replace this shortcode with appropriate output:
faq.png
faq.png (153.43 KiB) Viewed 1071 times


P.S. you may add as many shortcodes as you need on one page, but if you add 2 same shortcodes, only the first will be
processed.
User avatar
administrator
Site Admin
Site Admin
 
Posts: 5905
Joined: Jan 7th, '09, 23:18

Re: HOW TO add module shortcodes to the pages?

Postby InsiteFX on Sep 8th, '14, 10:30

How do you add then when creating a new Module?

Like I create a new Module but I want to have short codes that can be added to the CMS Module.
Photoshop Designer - Custom Graphics, Icons and 300 Dpi Custom ebook covers, Software boxes, CD covers, DVD covers and Screens etc.
User avatar
InsiteFX
Expert
Expert
 
Posts: 56
Joined: Jun 1st, '09, 07:19
Location: Bristol, CT. USA

Re: HOW TO add module shortcodes to the pages?

Postby administrator on Sep 9th, '14, 05:15

You have to add special setting to module called shortcode and define for it the value. See the sql dump how it was done for other modules and make the same.
User avatar
administrator
Site Admin
Site Admin
 
Posts: 5905
Joined: Jan 7th, '09, 23:18


Return to ApPHP Directy CMF {developers/users}

Who is online

Users browsing this forum: No registered users and 1 guest

cron