Create a Link to Another Page

From Snapp CMS Developer Documentation

Jump to: navigation, search

Creating a Link to another page is very easy

1) With a Widget

 <?php echo $cms->loadWidget('Link',array('page'=>10))?>

See WidgetLink for more options

2) Manually

 <a <?php print $cms->buildURL(10)?> >Goto Page</a>

The buildURL function will automatically generate the href and title attributes depending if SEO URL's is turned on or not

OR

 <a href="<?php print $cms->buildURL(10,true);?>" title="Visit Page" >Goto Page</a>

If you want to control the title of the link

See buildURL() function for more options

Personal tools
Core Components
Standalone Installs