Adobe 65007312 Programming Guide - Page 118
Data model entries, file defines the data model for your web
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 118 highlights
CHAPTER 6: Writing a Web-engine Plug-in Defining the data model 118 title = LOC "$$$/AgWPG/Templates/HTML/Title=Lightroom HTML Gallery", id = "com.adobe.wpg.templates.jardinePro", galleryType = "lua", maximumGallerySize = 50000, aboutBoxFile = "about.html", supportsLiveUpdate = true, model = {...} } Here is the About box for the built-in HTML Web Gallery: Data model entries The model entry in the table returned by the galleryInfo.lrweb file defines the data model for your web engine. The model entry contains both predefined sections such as photoSizes, and plug-in-defined sections for local data, such as the one named metadata in the following example. return { ... model = { [ "photoSizes.large.width" ] = 250, ... [ "photoSizes.thumb.width" ] = 130, ... ["appearance.textColor.color"] = "#166AF2", ["appearance.textColor.cssID"] = ".textColor", ... ["lightroomApplication.identityPlateExport"] = "(main)", ["lightroomApplication.jpegQuality"] = 70, ... ["metadata.siteTitle.value"] = LOC "$$$/Templates/HTML/Defaults/props/SiteTitle=Site Title", ... } }