need to add outside URL link within array
Posted: Tue Apr 13, 2010 10:50 am
I am working on a site that uses smarty templates and the owner has asked that part of the left navigation menu contain a link to a page that is not on their site, now the following code is the start of their naivation and contains links that are inside their site (like "inventory.php")
I tried to add the "Test Blog" link into the array but it comes out in the menu like "http://home site/http://test.hubspot.com...."
Is there a way I can display a link that is not inside their site within this array?
Thanks for any direction on this
I tried to add the "Test Blog" link into the array but it comes out in the menu like "http://home site/http://test.hubspot.com...."
Is there a way I can display a link that is not inside their site within this array?
Code: Select all
<?php
$aMenu = array(
'Home'=>'index.php',
'View Inventory'=>'inventory.php',
'Test Blog'=>'http://test.hubspot.com/CMS/UI/Modules/BizBlogger/4903fb476cf3'
);
foreach($aMenu as $page=>$url):
echo '<div><a href="'.$GLOBALS['cfg']['paths']['rel'].$url.'"';
if($url==basename($_SERVER['PHP_SELF']))
echo ' class="menuon"';
echo '>'.$page.'</a>';
echo '</div>';
endforeach;
...