Adobe 65007312 Programming Guide - Page 196
Add HTML template files, Add subfolders
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 196 highlights
CHAPTER 11: Web Gallery Plug-ins: A Tutorial Example Creating a Web Gallery plug-in 196 Add HTML template files 1. The manifest references an HTML file to be used as a template, grid.html. Create this file in the myWebPlugin folder, putting in these initial references: 2. The two referenced HTML files contain common code for all HTML pages that will be created from this template. Create these two HTML files in the myWebPlugin folder. Z The content of header.html initializes the HTML code: My Sample Plug-in Z The content of footer.html simply closes off the HTML code: Add subfolders The plug-in folder now contains most of the top-level files for the plug-in: myWebPlugin/ galleryInfo.lrweb manifest.lrweb grid.html header.html footer.html The grid.html page is the template for the thumbnail filmstrip; later we will add a template HTML file for the large version of the selected thumbnail image. In addition to these top-level files, the plug-in will require resources of various kinds; default images, style sheets, JavaScript support code, and string dictionaries for localization. 1. Before going on to flesh out the content of the basic files, add some subfolders to hold resource files: myWebPlugin/ resources/ css/ js/ strings/ en/