Difference between revisions of "PT Blogs Feature Landing Page"
From ADF Docs
(→Steps) |
(→Steps) |
||
Line 22: | Line 22: | ||
# Go to the Site Administrator and metadata forms. Add a new binding for the "Blogs" form to the "Blog Landing" template. | # Go to the Site Administrator and metadata forms. Add a new binding for the "Blogs" form to the "Blog Landing" template. | ||
# 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. | # 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. | ||
+ | # On the "Blogs Manager" page, select the link for "Reset Site ADF" to have the updates take effect. | ||
# To generate the landing page for a blog, add or edit a blog and select the following on the "Landing Page" tab: | # To generate the landing page for a blog, add or edit a blog and select the following on the "Landing Page" tab: | ||
## "Create Landing Page" field set to "True". | ## "Create Landing Page" field set to "True". | ||
## "Landing Page Name" field enter the landing page name for the blog. This field will default to "index". | ## "Landing Page Name" field enter the landing page name for the blog. This field will default to "index". |
Revision as of 21:49, 7 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
- 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.
- 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.
- Create a new template "Blog Landing" with the following settings:
- Add the "Posts2" custom element to the page.
- Set the render mode for the following:
- Rendering Mode: "Display existing element data (content reuse)" and "Render results dynamically based on a filter, or display all records.".
- Filter:
- Filter: Subset of records
- Post2.blogID Equals {request.page.metadata.blogs.blogID} (this is a ColdFusion expression)
- Make sure to check "Force Cache".
- Save Render Mode
- Ignore the error message for "Error evaluating a user-defined expresssion".
- Change the custom render handler to "Home Page Display".
- Publish the page.
- Save the page as a template and submit the template for public use.
- Go to the Site Administrator and metadata forms. Add a new binding for the "Blogs" form to the "Blog Landing" template.
- 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.
- On the "Blogs Manager" page, select the link for "Reset Site ADF" to have the updates take effect.
- To generate the landing page for a blog, add or edit a blog and select the following on the "Landing Page" tab:
- "Create Landing Page" field set to "True".
- "Landing Page Name" field enter the landing page name for the blog. This field will default to "index".