Short Code

How to use ?

  • [sc:scName, param1=val1 ,param2=val2]
  • when define sc
    • %%param1%%kljljkkl, %%param2%%kljklkjljk
  • in SC column of DS sheet
    • from -> sc will be included in this field
    • to -> sc will be parsed and saved in this field

What to be changed?

  • remove to filed from edit/create template
  • remove the from field from open tempalte
  • For from/to:
    • parse the sc in content and assign value to “to” field before post for edit/create
      • add parse to the ng-controller
  • For file
    • default file folder is the template folder
    • default file name is the name field of the domain class
    • parse the sc in content and save it to the template file (done by grails controller)
      • invoke separate post to create/update the template file
Advertisements
This entry was posted in Design. Bookmark the permalink.

One Response to Short Code

  1. kevinw8801 says:

    should be [sc:name=scName,param1=val1,param2=val2]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s