close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Repeat Region Update problem

Thread began 12/03/2012 2:44 pm by info444274 | Last modified 12/03/2012 3:36 pm by info444274 | 1007 views | 2 replies


Repeat Region Update problem

i am testing Design Extender and following this video watch?v=kbplAlzNexI there is a step to add a Repeat Region i did this but page only show last blog title and not all blog titles as explain video in minute 7:14 this is my test code, any idea??

<?php require_once('Connections/PowerCMSConnection.php'); ?>
<?php require_once("WA_CMS/WA_CMS.php"); ?>
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
return $theValue;

$maxRows_BlogRS = 10;
$pageNum_BlogRS = 0;
if (isset($_GET['pageNum_BlogRS'])) {
$pageNum_BlogRS = $_GET['pageNum_BlogRS'];
$startRow_BlogRS = $pageNum_BlogRS * $maxRows_BlogRS;

mysql_select_db($database_PowerCMSConnection, $PowerCMSConnection);
$query_BlogRS = "SELECT C2.ContentGroup, C2.ContentPageSetOrder FROM pcms2_contents AS C1 LEFT OUTER JOIN pcms2_contents AS C2 ON C2.ContentPagesetParentID = C1.ContentID WHERE C1.ContentGroup = 'BlogPosts' AND C2.ContentPageSetOrder IS NOT NULL GROUP BY C2.ContentPageSetOrder ORDER BY C2.ContentPageSetOrder DESC";
$query_limit_BlogRS = sprintf("%s LIMIT %d, %d", $query_BlogRS, $startRow_BlogRS, $maxRows_BlogRS);
$BlogRS = mysql_query($query_limit_BlogRS, $PowerCMSConnection) or die(mysql_error());
$row_BlogRS = mysql_fetch_assoc($BlogRS);

if (isset($_GET['totalRows_BlogRS'])) {
$totalRows_BlogRS = $_GET['totalRows_BlogRS'];
} else {
$all_BlogRS = mysql_query($query_BlogRS);
$totalRows_BlogRS = mysql_num_rows($all_BlogRS);
$totalPages_BlogRS = ceil($totalRows_BlogRS/$maxRows_BlogRS)-1;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>


<?php do { ?>

echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'BlogPost', 'BlogPostTitle', false, $row_BlogRS['ContentPageSetOrder']);
<?php } while ($row_BlogRS = mysql_fetch_assoc($BlogRS)); ?>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...