Ive always been a stickler for usability when it comes to RedDot CMS projects. Anything I can do to speed up the content entry process for authors and editors – and im onto it!
With this in mind, I created the ‘Add Page’ plugin a while back but never actually had the time to rewrite it for ‘general’ use… until now! I got the idea after seeing the Add Page option under the RedDot placeholders drop down, but soon worked out that this feature no longer works (please tell me otherwise if this is not the case!)
This ‘Add Page’ plugin enables you to create and connect pages (and page parts) to lists, containers and anchors with a single click. It also gives you the flexibility to create pages without having to open up a parent page first.
For each link placeholder within a page, the plugin will automatically insert a custom RedDot which – when clicked – will prompt the user to enter in a headline for the new page. Users can then select what type of page they wish to create (via template preassignments) either inline within the page – or when prompted to enter the headline.
Installation
1. Download and unzip the Add Page plugin file (rdUIAddPage.zip, 35Kb) within the plugin directory of RedDot CMS
2. Cut and paste the following code within the header section of each foundation page where you want to use the plugin
<script type="text/javascript" src="/cms/plugins/rdUIAddPage/jquery.pack.js"></script>
<script type="text/javascript" src="/cms/plugins/rdUIAddPage/rdUIAddPage.js"></script>
<link href="/cms/plugins/rdUIAddPage/rdUIAddPage.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript">
jQuery(document).ready(function() {
// set up page variables
rdUIAddPage.vars.pageguid = '<%!! Context:CurrentPage.Id.ToString(N).ToUpper() !!%>';
<!IoRangeRedDotEditOnly>rdUIAddPage.vars.pagemode = '1'<!/IoRangeRedDotEditOnly>
// run the plugin
rdUIAddPage.init();
});
</script>
3. Adjacent to each link placeholder, add the following line of code:
<div class="RedDotCreatePage" link="lst_pages" mode="1"></div>
Set the ‘link’ attribute to the name of the link placeholder you wish to target (in this case ‘lst_pages’).
(Optional) The ‘mode’ attribute (set to either 1 or 0) enables you to control where the template selection occurs.
When set to ’1′, a drop down list of template preassignments is displayed inline within the page:

When set to ’0′ (or when the attribute is blank), the drop down list selection is displayed to the user when prompted to enter in the headline for the new page
4. If you wish to use the plugin for RedDot CMS Versions 7.5 – 9, please change the following variable within the rdUIAddPage.asp file to indicate the CMS version you are using.
Const CMSVersion = 10
Limitations
The plugin does not support the use of Target containers at this point in time. This is something I am looking at adding in the near future.






























Kim Dezen is a Senior RedDot CMS (Open Text Web Solutions) CMS Consultant, Developer and Freelancer. Part time DJ and obsessed music / vinyl junkie. This site is my personal blog for all things related to Red Dot, SEO/SEM and Web Development.