2010-04-07, 10:12:19
yeah forget that, I'm using texTile for editing...
I'm adding a random string to pages that I want to print a teaser for , in my case "[***]"
When printing out the page I see if this string exists, if it does I print everything up to the string followed by a link to the full page. I also have fancy URLs turned off...
When printing the full page I retrieve the full page, and remove the string before echoing.
Simple and no changes need to the backend...
Mike,.,,,
I'm adding a random string to pages that I want to print a teaser for , in my case "[***]"
When printing out the page I see if this string exists, if it does I print everything up to the string followed by a link to the full page. I also have fancy URLs turned off...
Code:
echo stripslashes(substr($page['content'],0,strpos($page['content'],"[***]")));
echo "<a href=\"index.php?type=blog&id=".$page['url']."\">Read More....</a>";
When printing the full page I retrieve the full page, and remove the string before echoing.
Code:
if ($_GET['type']=="blog"){
$content= str_replace("[***]","",$content);
echo $content;
}
Simple and no changes need to the backend...
Mike,.,,,