home
 
 
 
executable
This functionality is available to professional users and above.
 
In order to customize QDL, you don't need access to the core code. You just enter the code directly into a QDL post. (See code for info on creating JS or PHP posts.) Then you create another post to display the results of executing the code.
  1. Navigate to your Sandbox.
  2. Click the Action Menu icon (), and select the New Inside option ().
  3. Enter a title.
  4. Click Submit.
  5. Click the Action Menu icon (), and next to the Metadata option (), click edit.
  6. In the Data Type group, set the "add post" button to Add Function, and check the executable box.
  7. Click Submit.
  8. Navigate to a JS or PHP post that you want to execute.
  9. Click the Action Menu icon (), and select the Copy Link option ().
  10. Navigate back to the executable folder that you just created.
  11. Click the Action Menu icon (), and select the Paste Link option ().
Now the executable post will show the output of the code, instead of the code listing itself.
 
 
The executable post can include more than just one source post. For example, you might have some libraries that you regularly use — you can paste links to these posts at the beginning of your executable post, and then put the post containing the "main" block at the end.
 
Note that for security purposes, JavaScripts containing cookie calls will not execute.

← PREV Powered by Quick Disclosure Lite
© 2010~2021 SCS-INC.US
NEXT →