Creating a Paint Layout

Intermediate

17 Dec 2015   Templates

The Media Releases folder
A Media Releases Folder

The following example will create a Paint Layout to apply to the media release in our Site. Each media release is a Standard Page and stored under a Folder titled Media Releases, as shown in the figure to the right. Each media release needs to display the title of the page, the short description of the article, the content of the page and publishing details. If a user is logged in, the created details should also be displayed.

Tip: Remember that you must Commit any asset changes that you make.

Creating and Configuring the Paint Layout

  1. Create a Paint Layout under your Site.
  2. On the Details screen, in the Add Custom Asset Type field, select Standard Page.
  3. Click Commit. The asset type will be listed in the Custom Asset Types field, as shown in the figure below.    

    The Custom Asset Types list on the Details screen
    The Custom Asset Types field listing the Standard Page asset type  

    The Standard Page Format Bodycopy
    The Type Format Bodycopy    

      The Standard Page Format Bodycopy will also appear under the Type Formats Folder in the Asset Map, as highlighted in the figure to the right.  
  4. Right click on the Standard Page Format in the Asset Map and select the Conditional Keywords screen.
  5. In the Condition Type list, select Logged in Condition. Click Commit.
  6. In the Condition Logged In fields, change the Keyword Name to user_logged_in and select the The user is logged in option in the Keyword is true if field.    

    The Condition Logged In Conditional Keyword
    The Logged In Condition    

Formatting the Layout

  1. Right click on the Standard Page Format in the Asset Map and select the Edit Contents screen.
  2. The content shown in the figure below is entered into the WYSIWYG Editor.    

    The WYSIWYG Editor on the Standard Page Format Bodycopy
    The WYSIWYG Editor on the Standard Page Format Bodycopy  

    Keyword replacements have been added to display the description, contents and publishing details of the asset. The %<begin/end>_user_logged_in%keyword replacements have been used in conjunction with the created details keywords to only display this information for users who are logged in.

Applying the Paint Layout

To apply the Paint Layout to all of the pages in the Media Releases Folder:

  1. Right click on the Folder and select the Paint Layouts screen.
  2. In the Paint Layout section of the screen, select the Paint Layout you have created in the Layout Field.

    The Paint Layout will be applied to the Media Releases Folder and its children. Any assets added under the Folder will inherit this Paint Layout.

Viewing the Paint Layout

The figure below shows the Squiz Acquires Funnelback media release with no Paint Layout applied.

The Standard Page content with no Paint Layout applied
The page content with no Paint Layout applied  

Once the Paint Layout has been applied, the title, short description and published information will appear on the page, as shown in the figure below.

The Paint Layout applied to the Standard Page
 The Paint Layout applied to the page

When a user logs into the system, the created information will also appear on the page, as shown in the figure below.

The Paint Layout applied to the Standard Page with additional information for the logged in user
Additional content for a logged-in User