|
|
|


1. Article Manager Special: Save $75 (one week only - ends Apr 16th)
|
For just one week you can get Article Manager 2 at the special price of only $274.97.
Purchase a 5-pack and get each license for only $164.98 or buy a 12-pack and get each license for only $109.99 (a 69% savings off of the regular price!). Do you have any upcoming projects? Now's the perfect time to purchase any extra licenses you need at a discounted rate, if it turns out you don't need them, you can always get a refund within 90 days.
Article Manager 2 is the perfect article management system for running a site with tons of articles filled with news, photos, and more. If you're not sure Article Manager has all the features you need for your project, give us a call toll free (1-800-752-0455) or send us an email, we're happy to answer all of your questions.
Feature for feature, Article Manager is the best article management system out there. Check out these 15 reasons why you should use Article Manager.
|
2. Coach's Corner with Mike Briggs - PHP article pagination in Article Manager 2
|
Hi Everyone!
For this Coach's Corner I'll be talking about a new PHP pagebreak add-on for Article Manager 2. This add-on allows you to add a simple tag right into your article that will split up the content over multiple pages.
Splitting up your articles over multiple pages can help keep your site cleaner and better organized. This is also good news if you serve up advertisements on your site, as multi-page articles mean more impressions for your advertisements.
Multi-page articles are something we've had requested before and while there are already some methods for doing this (here and here) this latest method (explained below) is my favourite.
With this new method there's a block of PHP code that you'll put into your article template. This will set up Article Manager to automatically break up your article content whenever it finds a specific piece of code in the content. From there, the appropriate links are output right on your article page so visitors can navigate through your article.
There are only a few steps to get this up and running and I'll outline this for you here:
1. First, you'll want to setup Article Manager to publish its pages as PHP files. As I mentioned above, the script itself is written in PHP so you'll need to have Article Manager set up to publish PHP pages.
You can change this by logging into Article Manager and clicking Admin->Publishing. You'll want to change the "Default File Extension" at the top of the page to "php" and then click "Save".
Also, you'll want to click the checkbox at the top of the list of publishing rules (to select them all) and then scroll down to the dropdown menu at the bottom of the page. You'll want to select "Templates: Convert SSIs to PHP includes" and then click "Go". This will ensure that all of your includes (category list, search form, etc.) still work when you switch to PHP.
From there you'll want to click the "Publish All" button to re-publish all of your articles and you should be all set to publish your pages as PHP.
2. The next step is to make a quick change to your /templates/articlePages/articlePage.html (or any other template files that you're publishing articles with). First, be sure that you have backups of any templates you modify. Next, open up this file and find this line of code:
$article.content$
You'll want to replace this line of code with:
<?php
$allContent = <<<___CONTENT___
$article.content$
___CONTENT___;
global $totalPages, $prevPage, $nextPage, $pageNumber;
$pageNumber = @$_GET['page'] ? $_GET['page'] : 1;
$contentPages = explode("--page--", $allContent);
$content = $contentPages[$pageNumber-1];
$totalPages = count($contentPages);
$prevPage = ($pageNumber > 1) ? $pageNumber-1 : 0;
$nextPage = ($pageNumber < $totalPages) ? $pageNumber+1 : 0;
function showPageLinks() {
global $totalPages, $prevPage, $nextPage, $pageNumber;
if ($totalPages == 1) {
return;
}
if ($prevPage) { print "<a href='?page=$prevPage'>"; }
print "<< prev";
if ($prevPage) { print "</a>"; }
print " | \n";
foreach (range(1, $totalPages) as $num) {
$isSelected = ($pageNumber == $num);
if ($isSelected) { print " $num |"; }
else { print " <a href='?page=$num'>$num</a> | "; }
}
if ($nextPage) { print "<a href='?page=$nextPage'>"; }
print "next >>";
if ($nextPage) { print "</a>"; }
}
?>
<?php showPageLinks(); ?><br/>
<!-- Display Content -->
<?php echo $content; ?><br/><br/>
<!-- /Display Content -->
<?php showPageLinks(); ?>
Once you're done you can re-upload this file to your server and click "publish" for your "Article Pages" publishing rule in the admin program.
3. The above block of code will separate your article content based on a specific tag it looks for in your "Content" field. The tag you'll want to insert into your "Content" field will be:
--page--
Once you've finished step 2, you can go through your existing articles and add this tag wherever necessary. From there, you should find that when you view a live article (for example http://www.yoursite.com/artman/publish/article-title.php) you can click the provided links to get to pages 2,3,4, etc. which should have URLs that look like this:
http://www.yoursite.com/artman/publish/article-title.php?page=2
http://www.yoursite.com/artman/publish/article-title.php?page=3
etc.
As always, I'd be happy to help you out with this if you have any questions. I should be able to add this to your Article Manager site with just 1 hour of Priority Consulting so if you'd like me to set this up for you, or if you have any other questions or comments, please feel free to send me an email.
Best Regards,
Mike Briggs - Consultant
consulting@interactivetools.com
1-800-752-0455
|
3. Tips and Tricks from the CMS Builder Forum
|
The CMS Builder forum has become an extremely popular place for developers to exchange ideas and get the latest tips from our Senior Developer, Dave Edis. With a massive list of posts that grows bigger every day it's a good idea to check up on the forum regularly. Here's a list of some recent favourites:
Alternating Background Colors
Want to alternate the background colors for each item on your list pages? It's just a few simple lines of code to do just that.
Email this page
In this post Dave explains how you can create an "Email this Page" link for use in your Page Viewer code.
CMS Builder Photo Gallery
Learn how you can build a photo gallery using CMS Builder and a few lines of PHP code.
|
4. Developer Resources
|
Here are a couple of useful resources for web developers and designers. Send me an email with YOUR favourite resources - I might be able to feature them in a future newsletter.
How User-Friendly Is Your Site?
The Queen of Screencasts from DemoGirl.com shares valuable information on making your website more user-friendly. She shows the best and worst features of the user interface from her vast experience of evaluating and testing countless startup sites (over 500 screencasts and counting!). This is a valuable resource for all startups and any website.
Grid-Based Design: Six Creative Column Techniques
Grid systems bring visual structure and balance to your website. When a grid design is used properly, they can enhance the user experience by creating predictable patterns for users to follow. From a designer’s point of view they allow for an organized method for the planning the website's layout.
|

About the author
The interactivetools.com newsletter is written by Luke Holzken.
About interactivetools.com
interactivetools.com creates world-class web software. Web developers use our software to provide their non-technical
clients with an easy-to-use system for managing their websites. Visit
interactivetools.com or try an
online demo, free! Call us at 1-800-752-0455
if you have any questions not addressed on our site.
Top of Page
|
|
|