Adobe 65007312 Programming Guide - Page 115
Writing a Web-engine Plug-in, Folder contents
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 115 highlights
6 Writing a Web-engine Plug-in This chapter describes the web-engine plug-in mechanism in the Lightroom SDK. This mechanism allows you to define new HTML web engines for the Web module. A web engine controls how a photo gallery is generated. Web-engine plug-ins use a different architecture from standard plug-ins, and are not managed by the Plug-in Manager dialog. All available web engines appear in the Engine panel at the upper right of the Web module of Lightroom, including those predefined by Lightroom and any defined by plug-ins. Your plug-in can also customize the control panels in the Web module, so that the controls map to user-customizable features of your own web engine. Creating a web-engine plug-in A web-engine plug-in consists of: X A manifest file named manifest.lrweb, which maps LuaPage source files to the HTML output files that make up a photo gallery. This file uses a special command set; see "Web SDK manifest API" on page 127. X An information file named galleryInfo.lrweb, which defines the data model and customized UI for your gallery type. See "Defining the data model" on page 116. X One or more web-page templates, in the form of LuaPages; that is, HTML pages with embedded Lua code that is evaluated for display in the preview browser, or on publication, to generate dynamic content. See "LuaPage syntax" on page 133. X Additional resources and supporting files, such as images, style sheets, string dictionaries for localization, and code files that define special behaviors. Collect these files into a single folder, which you must place in the following directory according to your operating system: IN MAC OS: userhome/Library/Application Support/Adobe/Lightroom/Web Galleries/ IN WINDOWS: LightroomRoot\shared\webengines The name of the plug-in folder must end with .lrwebengine; for example, myWebPlugin.lrwebengine. Folder contents Here are the contents of a sample web-engine folder named default_html.lrwebengine: Root default_html.lrwebengine/ Template information manifest.lrweb galleryInfo.lrweb 115