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

rating

Understanding Page Optimization

Thread began 10/04/2011 8:44 am by jonas374655 | Last modified 5/18/2012 5:12 pm by Jason Kline | 2020 views | 13 replies |

jonas374655

Understanding Page Optimization

I do not really understand how Page Optimization in Power CMS is supposed to work. Is it intended that the meta-tags that are already entered in the template page shall be replaced. In this case they do not. When I look at the page in a browser, it's the same meta-information that is in the template page. Whereas all other information is properly replaced.

Sign in to reply to this post

toms016390756

I use apache to rewrite my urls and meta. for SEO purposes. I do this for several websites. I always find it better to hand code everything so it more optimized.


Sign in to reply to this post

Jason ByrnesWebAssist

you will need to edit the meta and title tags to use the CMS Content areas for page optiomization.

fir example:

php:
<meta name="keywords" content="<?php echo WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'pageName''meta-keywords'); ?>" />
<meta name="description" content="<?php echo WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'pageName''meta-description'); ?>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'pageName''meta-title'); ?></title>
Sign in to reply to this post

jonas374655

template based pages not work

Thanks, now it works on individual pages.
But not on the pages that I created from the CMS system that is based on a template.
These pages are completely blank.

Sign in to reply to this post

Jason ByrnesWebAssist

a blank page means a php error has occurred but error reporting is turned off.

add the following code at line 1 to turn error reporting on:

php:
<?php 

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



Report back with the errors and a copy of the page so I can see the code.

Sign in to reply to this post

jonas374655

I get this error:
"<br /> <b> Fatal error </ b>: Call to undefined function WA_getCMSContent () in <b> / www/webvol16/z3/e7v7i55mki9ry4i/jonasn.se/public_html/WebAssistTst/svenska/test.php </ b> on line <b> 10 </ b> <br /> ".
The code is correct compared to the pages it works on. Also, the database is properly implemented.

Here are the code:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Test', 'meta-title'); ?></title>
<meta name="keywords" content="<?php echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Test', 'meta-keywords'); ?>" />
</head>

<body>
<?php
include('/www/webvol16/z3/e7v7i55mki9ry4i/jonasn.se/public_html/WebAssistTst/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Test', 'area1', false);
?></body>
</html>

Sign in to reply to this post

Jason ByrnesWebAssist

move this code:

php:
include('/www/webvol16/z3/e7v7i55mki9ry4i/jonasn.se/public_html/WebAssistTst/WA_CMS/addtosite.php');




into a php code block at line 1:

php:
<?php

include('/www/webvol16/z3/e7v7i55mki9ry4i/jonasn.se/public_html/WebAssistTst/WA_CMS/addtosite.php');
?>
Sign in to reply to this post

DarylBeta Tester

After inserting the code as suggested, where do you enter the page optimization information?

I have found a page within admin_cms called 'optimization', but cant find anywhere to access this from.

Sign in to reply to this post

Jason ByrnesWebAssist

for each of your content pages, create new content areas named:
meta-title
meta-keyword
meta-description

Sign in to reply to this post

SPT

Just in case someone is trying to figure out how to get the Keywords to work according to the last post (like I was).

Use:
meta-keywords

instead of:
meta-keyword

Also why isn't this in the help documents?

You should also point out that you need to be sure you edit the php code in the header of your page and change the "pagename" to what you have the page named to within the CMS editor.

And lastly - These optimizations add the <p> tag to the meta tags so be sure you go back in and edit the opening and closing <p> tags out in your CMS editor.

Sign in to reply to this post
loading

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

Content

rating

Layout

rating

Ease of use

rating

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...