Still trying to work it out going by this link:
viewtopic.php?f=2&t=2783I have just added the code below to my globals.php file
- Code: Select all
<cms:editable name='menu_code' label="Menu code"
height='100'
no_xss_check='1'
type="textarea"
/>
so it now looks like below
- Code: Select all
<?php require_once ( 'cms/cms.php' ); ?>
<cms:template title='Global Settings' executable='0'>
<cms:editable name='menu_code' label="Menu code"
height='100'
no_xss_check='1'
type="textarea"
/>
</cms:template>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php echo $title; ?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<?php echo $pgDesc ?>">
<link rel="stylesheet" href="./css/main.css" type="text/css" media="screen">
</head>
<body class="home cbp-so-scroller" id="cbp-so-scroller">
<!-- Mobile Menu -->
<div class="header">
<a href="#menu" class="button">menu</a>
<a href="contact.php" class="btn">free quote</a>
<a class="tell" href="tel:"><span>Call</span> </a>
</div>
<div id="menu" >
<ul class="menu_snap">
<li><a href="index.php">Home</a></li>
<li><a href="services.php">Services</a></li>
<li><a href="sales.php">Sales</a></li>
<li><a href="reviews.php">Reviews</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</div>
<div class="site-container" id="home">
<!-- Header -->
<header class="site-header">
<a href="index.php" class="logo"><img src="images/logo/nicom-logo-transparent.png" alt=""></a>
<div class="top-header">
<a href="contact.php" class="btn">free quote</a>
<p class="phone">
<i class="fa fa-phone" aria-hidden="true"></i>
<a href="tel:"></a>
</p>
<p class="companyname">
</p>
<ul class="socials">
<li><a href="" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-pinterest" aria-hidden="true"></i></a></li>
</ul>
</div>
<!-- N A V -->
<nav id="nav" class="nav-primary" >
<ul class="sf-menu menu menu_snap" id="sf-menu">
<li><a href="index.php">Home</a></li>
<li><a href="services.php">Services</a></li>
<li><a href="sales.php">Sales</a></li>
<li><a href="reviews.php">Reviews</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</nav>
</header>
<?php COUCH::invoke(); ?>
On the couch cms admin side, it's got Global Settings and it now has a textarea box that says menu code, this is where I get stuck and confused as can't see the existing menu links to change them and the names
It says the following, I did the first bit of visiting globals.php while logged in as super admin, the user does not know coding so need to see the current menu links and names and be able to change them
"Visit globals.php while logged-in as super-admin for Couch to pickup the changes.
In the admin panel you can now add the HTML code for each of the previously included files into their respectable editable regions.
To include the code entered within the editable regions created above into the rest of the templates of your site, use the cms:get_custom_field tag. e.g. change the
Code:
<?php include("menu.php"); ?>
or
<cms:embed "menu.php" />
in each of your templates to
Code:
<cms:get_custom_field 'menu_code' masterpage='globals.php' />"
Am really confused on this