Adobe 65007312 Programming Guide - Page 137
Lightroom built-in tagset, Thumbnail grid tags
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 137 highlights
CHAPTER 6: Writing a Web-engine Plug-in Web SDK tagsets 137 write( "You said, \"" ) x() write( "!\"" ) end, } tags = { exclaim { startTag = "myFn( function()", endTag = "end )", } } 2. Use the importTags() command in your web SDK manifest (manifest.lrweb) to import this into the "xmpl" namespace: importTags( "xmpl", "myTags.lua" ) 3. Reference the tag in a LuaPage source file: Helloworld 4. When the LuaPage file is converted into Lua code, this becomes: myFn( function() write( [[Helloworld]] ) end ) 5. When the Lua code is executed, this produces text as its HTML output: You said, "Helloworld!" Lightroom built-in tagset Lightroom includes a default set of tags, defined in the "com.adobe.lightroom.default" tagset. This tagset is typically imported into the lr: tagset namespace, but you can import it into any namespace using the importTags() command of your web SDK manifest. As for all imported tags, you must reference each opening and closing tag name with the namespace prefix. For example: ... The built-in tagset defines two groups of tags, for building thumbnail grids, and for defining navigation properties of a multi-page gallery. Thumbnail grid tags Use these tags to build a grid. This set of tags simplifies assembly of repeating units based on rows, columns, and the photo selection. You can use these tags only on pages that you specify in the manifest with AddGridPages. The ThumbnailGrid tag is a container for the other tags, which define cells within the grid. For example: