![]() |
![]() |
![]() |
|
![]() |
|||
![]() |
|||
![]() |
GoLive 6 Dynamic Content Samples | ||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||
Main View | Administration View | How it Works | ||||||
![]() |
||||||||
![]() |
|
A. Template photo. B. Repeated content to display all the photos. C. Mock content. Content SourcesContact Sheet uses the Photos query in the Photos database. All of the work in filtering records is already taken care of by the database design. Since all of the Main View pages use Show Details of Current Record, it is important that they all use the same name for the Photos content source. Show Details of Current Record only works when a content source has the same name on the source and destination pages. A.The template image is bound to Photos.Small, which is the filename for the image thumbnail. The image alt text is bound to the photo caption, and the image link uses Show Details of Current Record so that when a user clicks on the image he sees the medium size version. The image is not a fixed height or width, because not all of the thumbnails on the page are the same size. B.The Repeat Content container repeats the template for every image. The design uses Repeat Content rather than a dynamic table so that the thumbnails flow based on the size of the user's browser window. C.Unlike with a dynamic table, there is no way for a Repeat Content block to automatically recognize mock content. If you still want to design with it, you can include custom code that removes the mock content when the page runs. The resulting page is just as efficient as if there were no mock content. The technique is to wrap the mock content in a conditional display block that never displays. In PHP that code looks like this: <? if (0) {?> If you look at contact_sheet.php in layout or source view, you can see the custom code blocks at the beginning and end of the mock content. It is also possible to remove mock content by using a Hide Content container. |