In phpcmsv9, how do I write the bread navigation?

Source: Internet
Author: User
In the phpcmsv9 topic, how to write the breadcrumb navigation? many people may say {catpos ($ catid)}. let me tell you. I tried it. no, because the premise is used in the topic.

Of course {catpos ($ specialid )}
No. isn't the v9 topic applicable to the breadcrumb function? do I have to develop it again! Dizzy
This is the minimum function.

Okay. if you have to do this twice, please give me some advice.


Reply to discussion (solution)

Catpos is used to obtain the topic path. the topic does not belong to the topic. Below is the code I changed. if you think you can, take it.

function catpos($catid, $symbol=' > '){$category_arr = array();$siteids = getcache('category_content','commons');$siteid = $siteids[$catid];$category_arr = getcache('category_content_'.$siteid,'commons');if(!isset($category_arr[$catid])) {$db = pc_base::load_model('module_model');$info = $db->get_one('`module`=\''.$_GET['m'].'\'');return $info['name'].'  ';}$pos = '';$siteurl = siteurl($category_arr[$catid]['siteid']);$arrparentid = array_filter(explode(',', $category_arr[$catid]['arrparentid'].','.$catid));foreach($arrparentid as $catid) {$url = $category_arr[$catid]['url'];if(strpos($url, '://') === false) $url = $siteurl.$url;$pos .= ''.$category_arr[$catid]['catname'].''.$symbol;}return $pos;}

Catpos is used to obtain the topic path. the topic does not belong to the topic. Below is the code I changed. if you think you can, take it.

function catpos($catid, $symbol=' > '){$category_arr = array();$siteids = getcache('category_content','commons');$siteid = $siteids[$catid];$category_arr = getcache('category_content_'.$siteid,'commons');if(!isset($category_arr[$catid])) {$db = pc_base::load_model('module_model');$info = $db->get_one('`module`=\''.$_GET['m'].'\'');return $info['name'].'  ';}$pos = '';$siteurl = siteurl($category_arr[$catid]['siteid']);$arrparentid = array_filter(explode(',', $category_arr[$catid]['arrparentid'].','.$catid));foreach($arrparentid as $catid) {$url = $category_arr[$catid]['url'];if(strpos($url, '://') === false) $url = $siteurl.$url;$pos .= ''.$category_arr[$catid]['catname'].''.$symbol;}return $pos;}


Where have you changed? do you think I don't know global. fun. I don't know who is playing with this php file. you don't have to worry about copying it first. who is playing on this forum? you can do it, but you have to change it, where have you changed? Can we respect the work of the phpcms development team? it was originally from someone else. would you say that you are not blushing?


Catpos is used to obtain the topic path. the topic does not belong to the topic. Below is the code I changed. if you think you can, take it.

function catpos($catid, $symbol=' > '){$category_arr = array();$siteids = getcache('category_content','commons');$siteid = $siteids[$catid];$category_arr = getcache('category_content_'.$siteid,'commons');if(!isset($category_arr[$catid])) {$db = pc_base::load_model('module_model');$info = $db->get_one('`module`=\''.$_GET['m'].'\'');return $info['name'].'  ';}$pos = '';$siteurl = siteurl($category_arr[$catid]['siteid']);$arrparentid = array_filter(explode(',', $category_arr[$catid]['arrparentid'].','.$catid));foreach($arrparentid as $catid) {$url = $category_arr[$catid]['url'];if(strpos($url, '://') === false) $url = $siteurl.$url;$pos .= ''.$category_arr[$catid]['catname'].''.$symbol;}return $pos;}


Where have you changed? do you think I don't know global. fun. I don't know who is playing with this php file. you don't have to worry about copying it first. who is playing on this forum? you can do it, but you have to change it, where have you changed? Can we respect the work of the phpcms development team? it was originally from someone else. would you say that you are not blushing?


function catpos($catid, $symbol=' > '){$category_arr = array();$siteids = getcache('category_content','commons');$siteid = $siteids[$catid];$category_arr = getcache('category_content_'.$siteid,'commons');if(!isset($category_arr[$catid])) return '';$pos = '';$siteurl = siteurl($category_arr[$catid]['siteid']);$arrparentid = array_filter(explode(',', $category_arr[$catid]['arrparentid'].','.$catid));foreach($arrparentid as $catid) {$url = $category_arr[$catid]['url'];if(strpos($url, '://') === false) $url = $siteurl.$url;$pos .= ''.$category_arr[$catid]['catname'].''.$symbol;}return $pos;}

This is the source code of PHPCMS.


Catpos is used to obtain the topic path. the topic does not belong to the topic. Below is the code I changed. if you think you can, take it.

function catpos($catid, $symbol=' > '){$category_arr = array();$siteids = getcache('category_content','commons');$siteid = $siteids[$catid];$category_arr = getcache('category_content_'.$siteid,'commons');if(!isset($category_arr[$catid])) {$db = pc_base::load_model('module_model');$info = $db->get_one('`module`=\''.$_GET['m'].'\'');return $info['name'].'  ';}$pos = '';$siteurl = siteurl($category_arr[$catid]['siteid']);$arrparentid = array_filter(explode(',', $category_arr[$catid]['arrparentid'].','.$catid));foreach($arrparentid as $catid) {$url = $category_arr[$catid]['url'];if(strpos($url, '://') === false) $url = $siteurl.$url;$pos .= ''.$category_arr[$catid]['catname'].''.$symbol;}return $pos;}


Where have you changed? do you think I don't know global. fun. I don't know who is playing with this php file. you don't have to worry about copying it first. who is playing on this forum? you can do it, but you have to change it, where have you changed? Can we respect the work of the phpcms development team? it was originally from someone else. would you say that you are not blushing?


Since Tianzi is smart, I won't talk about it if I change it.


Catpos is used to obtain the topic path. the topic does not belong to the topic. Below is the code I changed. if you think you can, take it.

function catpos($catid, $symbol=' > '){$category_arr = array();$siteids = getcache('category_content','commons');$siteid = $siteids[$catid];$category_arr = getcache('category_content_'.$siteid,'commons');if(!isset($category_arr[$catid])) {$db = pc_base::load_model('module_model');$info = $db->get_one('`module`=\''.$_GET['m'].'\'');return $info['name'].'  ';}$pos = '';$siteurl = siteurl($category_arr[$catid]['siteid']);$arrparentid = array_filter(explode(',', $category_arr[$catid]['arrparentid'].','.$catid));foreach($arrparentid as $catid) {$url = $category_arr[$catid]['url'];if(strpos($url, '://') === false) $url = $siteurl.$url;$pos .= ''.$category_arr[$catid]['catname'].''.$symbol;}return $pos;}


Where have you changed? do you think I don't know global. fun. I don't know who is playing with this php file. you don't have to worry about copying it first. who is playing on this forum? you can do it, but you have to change it, where have you changed? Can we respect the work of the phpcms development team? it was originally from someone else. would you say that you are not blushing?


The first one-time Reply to three, used in the landlord such as the real Nima waste ..
Reply to the landlord:
1. it's global. func. php. it's the first time you face it.
2. this forum is a ghost. I am just a bird who has been using PHPCMS for more than three months.
3. I respect the PHPCMS development team, but I do not respect you.
4. ask the landlord to understand. I mean "change", not "original". please do not take it out of context.
5. You can't see how many lines of code you have.
6. you are blind

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.