Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
templator [2022/06/06 04:30] – [Javascript] o2wikitemplator [2024/04/03 07:16] – [Javascript] o2admin
Line 7: Line 7:
   * Copy the selected artwork in the current document and place it on the template, and rasterize it.   * Copy the selected artwork in the current document and place it on the template, and rasterize it.
   * Ask the user for custom information, such as job number, clients name, job title   * Ask the user for custom information, such as job number, clients name, job title
 +  * **(NEW) Run Javascript to fetch additional data** 
   * Automatically replace text in the document such as date, name and any other text you want   * Automatically replace text in the document such as date, name and any other text you want
   * Connect to a URL to get information from a website or database, for example, enter in a job number and return the job name and customer details   * Connect to a URL to get information from a website or database, for example, enter in a job number and return the job name and customer details
Line 108: Line 109:
 ==== Javascript ==== ==== Javascript ====
  
-You can run Extendscript or Javascript to modify the document and return additional text changes to Templator. Your code will be wrapped in a function so ensure that you include a return statement with the required data structure.+You can run Extendscript or Javascript to modify the document and return additional text changes to Templator. Your code will be wrapped in a functionso ensure that you include a return statement with the required data structure.
  
 Your code must return the standard object indicating success and any error messages/text changes, see the next section. Your code must return the standard object indicating success and any error messages/text changes, see the next section.