Reusing Site Assets Oracle Fusion Middleware Online Documentation Library

2-10 Oracle Fusion Middleware Developers Guide for Site Studio for External Applications

2.7 Reusing Site Assets

One of Site Studios most useful and powerful features is the ability to reuse site assets within a web site and even across multiple sites providing these sites are all managed on the same content server. When an asset is changed once, it is changed everywhere that asset is used. It is no longer necessary to keep track of all instances of a piece of data to ensure that all of the web pages are updated. This applies both to files associated with site presentation and site content see Section 2.1, Separation of Site Presentation and Content . Page templates, region templates, elements, and the like are most efficiently used when they are used multiple times. Similarly, the same content files can be displayed in different locations on a site, either completely or partially different segments, to suit the context. Figure 2–6 and Figure 2–7 show an example of site content being reused. In Figure 2–6 , you can see a list of items consisting of a title, image, and subtitle. This information is taken from separate contributor data files. Each of these list items could be hyperlinked to open the full page as shown in Figure 2–7 . In fact, this is the type of design that you see on many sites. That is, information is displayed on a primary page, and the full information is shown on a subsequent page when you click a link. Figure 2–6 Web Page With Introductory Content Understanding Site Studio Web Sites 2-11 Figure 2–7 Web Page With Full Content The web page in Figure 2–7 displays many of the same pieces of information. That is because the same data file is being used on both the region template in Figure 2–6 and the page in Figure 2–7 . The elements are the same as well. An image-only element would be used to present the image, for instance, and a text-only element to present the title, with WYSIWYG possibly being the element type used to display the remaining information. There are few elements, typically, necessary in creating a web site, as one WYSIWYG element can be used anywhere on the web site where you may want that style of editing for the contributor. Because site assets are intended to be reused across the web site, it is particularly important that the web site is fully planned out before the designer creates anything in the web site. For more information, see Chapter 4, Planning Your Web Site.

2.8 Elements and Element Definitions