Adobe 65007312 Programming Guide - Page 127
Web SDK manifest API, Add AddResource
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 127 highlights
CHAPTER 6: Writing a Web-engine Plug-in Web SDK manifest API 127 Web SDK manifest API The manifest is a Lua file in your plug-in's root directory named manifest.lrweb. It maps LuaPage source files and template files to web-engine HTML output files using a set of commands for different kinds of pages and resource files. Define the mapping using these commands: AddPage AddResource AddResources AddPhotoPages AddGridPages AddCustomCSS IdentityPlate importTags() Maps one source LuaPage file from the gallery template directly into the published gallery. Maps one resource file or a set of resource files from the gallery template directly into the published gallery. Resources can include image or icons, string dictionaries for localization, JavaScript files, and so on. Uses a LuaPage template to build a page for each photo in the current Lightroom selection. Uses a LuaPage template to build a page for each grid of photos in the current Lightroom selection. Generates a CSS file using the appearance properties of your data model. Exports an identity plate as a PNG file. Adds custom tagsets to your gallery. AddPage Maps one source LuaPage file from the gallery template into the published gallery. The source file is interpreted by the LuaPage engine, resulting in an HTML file in the published gallery. Inputs filename template The path to which to write the file in the published gallery. The path to the source LuaPages file, relative to the folder containing this manifest. Example AddPage { filename = "content/pages/myWebPage.html", template = "myWebPage.html", } AddResource Maps one resource file from the gallery template directly into the published gallery. A resource is not interpreted, but is simply copied directly.