Adobe 65007312 Programming Guide - Page 129
AddGrid s, Lua s environment variables, Example, Inputs
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 129 highlights
CHAPTER 6: Writing a Web-engine Plug-in Web SDK manifest API 129 LuaPages environment variables When executing the LuaPages for AddPhotoPages, the following variables are defined in the environment filename root gridPageLink pageType index The file name of the current page. The relative path to the root of the gallery. If grid pages have been added to the gallery, the relative path from this page to the corresponding grid page that contains this photo. The page type, "photo". The index position of the photo within the gallery. Example AddPhotoPages { template = 'detail.html', variant = '_large', destination = "content", } AddGridPages Uses a LuaPage template to build a page for each grid of photos in the current Lightroom selection. Inputs filetype destination template rows columns (Optional) A file extension for the pages. Default is "html". The path to the published gallery to which to write the pages. The path to the source LuaPage file. The number of rows in each grid. The number of columns in each grid. LuaPages environment variables When executing a LuaPage specified with AddGridPages(), the following variables are defined in the environment filename pageType page The file name of the current page. The page type, "grid". The position index of the current page among grid pages defined in the gallery.