limiting output
Hi,
I am trying to create a page, which the used will be able to update herself using Power CMS.
On the index page, I only want to display part of the content, let´s say the first 200 characters, and then to read the remaining content, the user will have to click on "more".
I found a previous entry in this forum, concerning the same issue - your suggestion was to use the following entry:
<?php echo substr(WA_getCMSContent($database_localhost, $localhost,"Home Page", "Welcome"), 0, 150)."..."; ?>
Using my own settings, this should correspond to:
<?php include('cms102/WA_CMS/addtosite.php'); echo substr(WA_getCMSContent($database_localhost, $localhost, 'index.php' , 'content') "), 0, 150)."...";?>
However, when using this, I only get either a blank page, i.e. no content showing at all (not even background color or any design details) or error 500.
What am I doing wrong and how can I get the page to work?