C
6: Writing a Web-engine Plug-in
HAPTER
LuaPages environment variables
When executing the LuaPages for
filename
root
gridPageLink
pageType
index
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
LuaPages environment variables
When executing a LuaPage specified with
environment
filename
pageType
page
AddPhotoPages
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.
(Optional) A file extension for the pages. Default is
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.
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.
, the following variables are defined in the environment
.
, the following variables are defined in the
AddGridPages()
Web SDK manifest API 129
.
"html"