Home > Backend Development > PHP Tutorial > Navigation position modification in PHPCMS2008_PHP tutorial

Navigation position modification in PHPCMS2008_PHP tutorial

WBOY
Release: 2016-07-14 10:09:59
Original
836 people have browsed it

Desired effect:

Current location:
Your current location: Homepage>>Products>>Dandelion Series>>Clothing Management System>>Product Details
But put the calling tag:
Your current location:Homepage>>{catpos($r['catid'])} Product Details
The result is:
Homepage>>Product Dandelion Series>>Clothing Management System>>Product Details
Missing>>
Hang, I looked at the global.func.php file and found this paragraph:
function catpos($catid, $urlrule = '')
{
global $CATEGORY;
if(!isset($CATEGORY[$catid])) return '';
$pos = '';
$arrparentid = array_filter(explode(',', $CATEGORY[$catid]['arrparentid'].','.$catid));
foreach($arrparentid as $catid)
{
if($urlrule) eval("$url = "$urlrule";");
else $url = $CATEGORY[$catid]['url'];
}
return $pos;
}
The red part didn’t exist before! After adding it, you can achieve the desired effect!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477560.htmlTechArticleDesired effect: Current location: Your current location: Home page products Dandelion series clothing management system product details but put Enter the call tag: Your current location: a href=Homepage...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template