PT Blogs Feature Landing Page

From ADF Docs
Revision as of 21:32, 7 November 2011 by Mcarroll (talk | contribs) (Created page with '== 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 …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 "Blog Landing Page Template" field. If not updated, then follow the v2.1 upgrade guide to upgrade the custom elements.
  2. 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.blogs.blogID} (this is a ColdFusion expression)
          1. Make sure to check "Force Cache".
        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.
  3. Go to the Site Administrator and metadata forms. Add a new binding for the "Blogs" form to the "Blog Landing" template.