Difference between revisions of "PT Blogs Feature Landing Page"

From ADF Docs
Jump to: navigation, search
(Steps)
(Steps)
Line 13: Line 13:
 
### Filter:
 
### Filter:
 
#### Filter: Subset of records
 
#### Filter: Subset of records
#### Post2.blogID Equals {request.page.metadata.blogs.blogID} (this is a ColdFusion expression)
+
#### Post2.blogID Equals {request.page.metadata.blogs2.blogID} (this is a ColdFusion expression)
 
##### Make sure to check "Force Cache".
 
##### Make sure to check "Force Cache".
 +
##### Sort Order: "Date Posted" and "Descending"
 
#### Save Render Mode
 
#### Save Render Mode
 
###Ignore the error message for "Error evaluating a user-defined expresssion".
 
###Ignore the error message for "Error evaluating a user-defined expresssion".

Revision as of 17:52, 23 November 2011

Overview

Auto creating the blog landing page allows for an easy setup and creation of each Blog instance. The landing page will contain a listing of all the blog posts to be created when the blog is created or edited.

Follow the steps below to update the blog configuration to enable this feature.

Steps

  1. Verify that the "ptBlog2 Configuration" custom element has been updated to contain the "Create Blog Landing Page Template" field. If not updated, then follow the v2.1 upgrade guide to upgrade the custom elements.
  2. Verify that the "Blog2" custom element has been updated to contain the "Blog Landing Page Template" field. If not updated, then follow the v2.1 upgrade guide to upgrade the custom elements.
  3. Create a new template "Blog Landing" with the following settings:
    1. Add the "Posts2" custom element to the page.
    2. Set the render mode for the following:
      1. Rendering Mode: "Display existing element data (content reuse)" and "Render results dynamically based on a filter, or display all records.".
      2. Filter:
        1. Filter: Subset of records
        2. Post2.blogID Equals {request.page.metadata.blogs2.blogID} (this is a ColdFusion expression)
          1. Make sure to check "Force Cache".
          2. Sort Order: "Date Posted" and "Descending"
        3. Save Render Mode
      3. Ignore the error message for "Error evaluating a user-defined expresssion".
    3. Change the custom render handler to "Home Page Display".
    4. Publish the page.
    5. Save the page as a template and submit the template for public use.
  4. Go to the Site Administrator and metadata forms. Add a new binding for the "Blogs" form to the "Blog Landing" template.
  5. Navigate to the "Blogs Manager" page and select the "Edit App Configuration" to open the configuration custom element form. On the "Features" tab, set the "Blog Landing Page Template" select field to the template that was created.
  6. On the "Blogs Manager" page, select the link for "Reset Site ADF" to have the updates take effect.
  7. To generate the landing page for a blog, add or edit a blog and select the following on the "Landing Page" tab:
    1. "Create Landing Page" field set to "True".
    2. "Landing Page Name" field enter the landing page name for the blog. This field will default to "index".