<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://community.paperthin.com/adf-docs/index.php?action=history&amp;feed=atom&amp;title=PT_Comments_v2.4_Install</id>
		<title>PT Comments v2.4 Install - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://community.paperthin.com/adf-docs/index.php?action=history&amp;feed=atom&amp;title=PT_Comments_v2.4_Install"/>
		<link rel="alternate" type="text/html" href="https://community.paperthin.com/adf-docs/index.php?title=PT_Comments_v2.4_Install&amp;action=history"/>
		<updated>2026-04-30T06:12:38Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://community.paperthin.com/adf-docs/index.php?title=PT_Comments_v2.4_Install&amp;diff=7640&amp;oldid=prev</id>
		<title>Gcronkright: /* ADF Configuration */</title>
		<link rel="alternate" type="text/html" href="https://community.paperthin.com/adf-docs/index.php?title=PT_Comments_v2.4_Install&amp;diff=7640&amp;oldid=prev"/>
				<updated>2020-03-03T17:35:54Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ADF Configuration&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 17:35, 3 March 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot; &gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== ADF Configuration ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== ADF Configuration ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Make sure the ADF is setup and running on the site. If the ADF is not setup, then follow the instructions for ADF [[Installation]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Make sure the ADF &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;2.5 or greater &lt;/ins&gt;is setup and running on the site. If the ADF is not setup, then follow the instructions for ADF [[Installation]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Open the sites 'ADF.cfc' ([[Site Configuration (ADF.cfc)|See Site Configuration (ADF.cfc) for more info]]) file (located in your site's /_cs_apps/ directory) in a text editor. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Open the sites 'ADF.cfc' ([[Site Configuration (ADF.cfc)|See Site Configuration (ADF.cfc) for more info]]) file (located in your site's /_cs_apps/ directory) in a text editor. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Locate the ''Load the ADF Application into application space'' comment in the file. Add (or uncomment) the following command under the comment section:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Locate the ''Load the ADF Application into application space'' comment in the file. Add (or uncomment) the following command under the comment section:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gcronkright</name></author>	</entry>

	<entry>
		<id>https://community.paperthin.com/adf-docs/index.php?title=PT_Comments_v2.4_Install&amp;diff=7639&amp;oldid=prev</id>
		<title>Gcronkright: Created page with &quot;Back to PT Comments   '''IMPORTANT''': v2.4 of this application requires '''ADF 2.5''' or greater and '''CommonSpot 10.5.2 or 10.6.1''' or greater.  == Downloa...&quot;</title>
		<link rel="alternate" type="text/html" href="https://community.paperthin.com/adf-docs/index.php?title=PT_Comments_v2.4_Install&amp;diff=7639&amp;oldid=prev"/>
				<updated>2020-03-03T17:35:31Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Back to &lt;a href=&quot;/adf-docs/index.php/PT_Comments&quot; title=&quot;PT Comments&quot;&gt;PT Comments&lt;/a&gt;   &amp;#039;&amp;#039;&amp;#039;IMPORTANT&amp;#039;&amp;#039;&amp;#039;: v2.4 of this application requires &amp;#039;&amp;#039;&amp;#039;ADF 2.5&amp;#039;&amp;#039;&amp;#039; or greater and &amp;#039;&amp;#039;&amp;#039;CommonSpot 10.5.2 or 10.6.1&amp;#039;&amp;#039;&amp;#039; or greater.  == Downloa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Back to [[PT_Comments|PT Comments]]&lt;br /&gt;
&lt;br /&gt;
 '''IMPORTANT''': v2.4 of this application requires '''ADF 2.5''' or greater and '''CommonSpot 10.5.2 or 10.6.1''' or greater.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
Download the Comments Application from the Community Site or from the [http://community.paperthin.com/svn/pt_comments/tags/2.3/ SVN Repository]. &lt;br /&gt;
&lt;br /&gt;
Extract the zip files into the following directory:&lt;br /&gt;
'''/ADF/apps/pt_comments/'''&lt;br /&gt;
&lt;br /&gt;
== ADF Configuration ==&lt;br /&gt;
* Make sure the ADF is setup and running on the site. If the ADF is not setup, then follow the instructions for ADF [[Installation]].&lt;br /&gt;
* Open the sites 'ADF.cfc' ([[Site Configuration (ADF.cfc)|See Site Configuration (ADF.cfc) for more info]]) file (located in your site's /_cs_apps/ directory) in a text editor. &lt;br /&gt;
* Locate the ''Load the ADF Application into application space'' comment in the file. Add (or uncomment) the following command under the comment section:&lt;br /&gt;
&lt;br /&gt;
 loadApp(&amp;quot;ptComments&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
* [[Reset ADF|Reset the ADF]] for the server and site.&lt;br /&gt;
&lt;br /&gt;
== Import Elements ==&lt;br /&gt;
The Comments Application has a single Global Custom Element defined within CommonSpot. The element has been exported and is available in the Comments's &amp;quot;exported-objects&amp;quot; folder located at the root of the Comments application directory (e.g. /ADF/apps/pt_comments/exported-objects/)&lt;br /&gt;
&lt;br /&gt;
Optional: You may want to create a new category within the CommonSpot Element Gallery for 'Comments Elements'.&lt;br /&gt;
&lt;br /&gt;
To import these objects, you will need to be an administrator for your site. If you are not a site administrator, consult your Server administrator for more information.&lt;br /&gt;
&lt;br /&gt;
=== Import ===&lt;br /&gt;
&lt;br /&gt;
Import the Custom Element: &lt;br /&gt;
&lt;br /&gt;
# Comments (Comments-Custom-Element.zip)&lt;br /&gt;
&lt;br /&gt;
 Note: For CommonSpot 9 or earlier import the .zip archives located in the '''/exported-objects/cs9-or-earlier/''' directory&lt;br /&gt;
&lt;br /&gt;
=== Verify Import ===&lt;br /&gt;
&lt;br /&gt;
The render handler path for the imported &amp;quot;comments&amp;quot; element must be verified that it has the correct path.  During the import process, the render handler path may have been changed to reflect the current site's path.  &lt;br /&gt;
&lt;br /&gt;
Review and update the path to reference the ADF path.  In most cases, this will just require the element to be unlocked and a change in the path from the site name to 'ADF'.  Check the path for the [[PT_Comments#Contents|custom field types that were imported]] with the custom element by unlocking it and fixing the explicit path to point to &amp;quot;/ADF/extensions/&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Subsites ==&lt;br /&gt;
It is '''highly recommended''' that a Comments subsite is created for administrators.  This allows security to be setup for the subsite to allow only administrators access for the webadmin.&lt;br /&gt;
&lt;br /&gt;
Your site may already have a ''webadmin'' subsite.  The steps below will add a ''comments'' subsite into the ''webadmin'' subsite.&lt;br /&gt;
&lt;br /&gt;
=== Web Admin ===&lt;br /&gt;
# Create a new subsite under the site root called ''webadmin''.&lt;br /&gt;
# Create a new subsite under ''webadmin'' called ''comments''.&lt;br /&gt;
# Configure the ''/webadmin/comments/'' subsite Content Security to give 'No Rights' to 'Anonymous Users' and 'Authenticated Users'.  &lt;br /&gt;
# Configure the ''/webadmin/comments/'' subsite Content Security to give permissions to the group of administrators who will manage the Comments.&lt;br /&gt;
&lt;br /&gt;
== Comments Manager ==&lt;br /&gt;
This page will be used to manage the Comments custom element data records for the site.&lt;br /&gt;
&lt;br /&gt;
# Create page with the name &amp;quot;index&amp;quot; and title is &amp;quot;Comments Manager&amp;quot; in the ''/webadmin/comments/'' subsite.&lt;br /&gt;
# Add a Datasheet element into the page.&lt;br /&gt;
## Define a View for the Datasheet Element called &amp;quot;All Comments&amp;quot;&lt;br /&gt;
## Leave the View Source as the Default: Form Result/Custom Element Sheet&lt;br /&gt;
## Select the &amp;quot;Comments&amp;quot; Custom Element and select the following columns: &lt;br /&gt;
### UID, DateTimePosted, and Name&lt;br /&gt;
## Edit the column for the &amp;quot;UID&amp;quot; field and make the following changes:&lt;br /&gt;
### Header: Edit/Delete&lt;br /&gt;
### Render Handler: /ADF/extensions/datasheet-modules/1.0/edit-delete.cfm&lt;br /&gt;
## Edit the Layout properties for the datasheet:&lt;br /&gt;
### Default Sorting: DateTimePosted DESCENDING&lt;br /&gt;
### Results Per Page: 50&lt;br /&gt;
### Allow JavaScript data sorting: Uncheck&lt;br /&gt;
# Publish the page.&lt;br /&gt;
&lt;br /&gt;
== Site Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Installing cfformprotect ===&lt;br /&gt;
CF Form Protect helps to protect your form from spam. It allows the comments that users enter to have some verification of who is entering the data and makes sure that robots do not submit bogus comments.&lt;br /&gt;
&lt;br /&gt;
# Copy cffp.ini.cfm from /ADF/thirdParty/cfformprotect/ into your /_cs_apps/config directory&lt;br /&gt;
# Edit the parameters as you see fit. Please note the email settings.&lt;br /&gt;
&lt;br /&gt;
=== Adding comments to your page ===&lt;br /&gt;
The comments element, which will be configured in a step below, requires a variable called &amp;quot;request.comments.contentDataPageID&amp;quot;. This variable does not exist and will throw an error unless one of two things are done.  First, you can add a script to the page directly above where you place the comments element.   The script (pageComments.cfm) will define the variable needed by the comments element.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can add the following line of code to the template-basepage.head file in the site's /templates directory:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;cfset request.comments.contentDataPageID = request.page.id&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you add the line of code to your template-basepage.head file, then it is not necessary to place a custom script element on every page where you wish to use comments.  Adding this code to your template-basepage.head is the preferred installation method.  If your site does not have a template-basepage.head file, you may create one.  The Commonspot developer's guide explains the requirements for creating the .head file.&lt;br /&gt;
&lt;br /&gt;
# Edit your page&lt;br /&gt;
# '''Optional''' -- Add a custom script to your page&lt;br /&gt;
#* /ADF/apps/pt_comments/customcf/pageComments.cfm&lt;br /&gt;
# Add the comments element to your page&lt;br /&gt;
# Update the render mode on this element&lt;br /&gt;
## Select &amp;quot;Display existing element data (content reuse)&amp;quot;&lt;br /&gt;
## Select &amp;quot;Render results dynamically based on a filter, or display all records.&amp;quot;&lt;br /&gt;
## click on filter&lt;br /&gt;
## select &amp;quot;Subset of records&amp;quot;&lt;br /&gt;
## in the dropdown select Comments.contentDataPageID&lt;br /&gt;
## Set the comparison to equals&lt;br /&gt;
## click the ... next to the value&lt;br /&gt;
## enter: request.comments.contentDataPageID&lt;br /&gt;
## Sort Order: dateTimePosted ASCENDING&lt;br /&gt;
## click save&lt;br /&gt;
# submit your page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Reset ADF|Reset the ADF]] for the server and site.&lt;br /&gt;
&lt;br /&gt;
[[Category:Comments]]&lt;/div&gt;</summary>
		<author><name>Gcronkright</name></author>	</entry>

	</feed>