Adobe 65007312 Programming Guide - Page 128
AddResources, AddPhoto s, Inputs, Example, Alternative syntax
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 128 highlights
CHAPTER 6: Writing a Web-engine Plug-in Inputs Web SDK manifest API 128 source destination The path to the resource file, relative to the gallery template. Optional. The path to the published gallery to which to copy the resource. By default, the destination path is the same as the source path. Example AddResource { source = "image.png", destination = "content/resources/image.png", } AddResources Copies a set of resource files from the gallery template directly into the published gallery. A resource is not interpreted, but is simply copied directly. Inputs source destination The path to the resource folder, relative to the gallery template. Optional. The path to the published gallery to which to copy the resources. By default, the destination path is the same as the source path. Example AddResources { source = "resources", destination = "content/resources", } Alternative syntax Instead of passing a table of named arguments, pass a single string to be used as the source: AddResources "resources" AddPhotoPages Uses a LuaPage template to build a separate page for each photo in the current Lightroom selection. Inputs filetype variant destination template Optional. A file extension for the pages. Default is "html". Optional. A suffix to append to the file name. Useful if your gallery has several sizes of pages for each photo. Default is the empty string. The path to the published gallery to which to write the pages. The path to the source LuaPage file.