蟬知后臺首頁如何自定義快捷入口
- 2016-07-19 15:05:00
- GavinHsueh 原創
- 6605
如果我們想自定義后臺首頁的快捷入口該如何操作,比如我想把下面的【添加產品】去掉。
操作很簡單,我們找下對應的 蟬知模塊和文件,
對應模塊:www\s y s t e m\module\widget
對應目錄文件:www\s y s t e m\module\widget\view\commonmenu.html.php
打開該文件:修改你要調整的入口鏈接即可。
<?php if(!defined("RUN_MODE")) die();?> <div class='shortcutGroup'> <?php $this->app->loadLang('admin'); if(!empty($articleCategories)) echo html::a($this->createLink('article', 'create'), $lang->admin->shortcuts->article, "class='btn btn-default'"); else echo html::a($this->createLink('tree', 'browse',"type=article"), $lang->admin->shortcuts->articleCategories, "class='btn btn-default'") ?> <?php echo html::a($this->createLink('product', 'create'), $lang->admin->shortcuts->product, "class='btn btn-default'");?> <?php echo html::a($this->createLink('message', 'admin'), $lang->admin->shortcuts->feedback, "class='btn btn-default'");?> <?php echo html::a($this->createLink('site', 'setBasic'), $lang->admin->shortcuts->site, "class='btn btn-default'");?> <?php echo html::a($this->createLink('company', 'setBasic'), $lang->admin->shortcuts->company, "class='btn btn-default'");?> <?php echo html::a($this->createLink('company', 'setcontact'), $lang->admin->shortcuts->contact, "class='btn btn-default'")?> </div>按照我的需求,我只需要將
<?php echo html::a($this->createLink('product', 'create'), $lang->admin->shortcuts->product, "class='btn btn-default'");?>這行代碼刪除即可。
我們來看下效果:
注意:我這里直接修改的源文件,可以采用蟬知的擴展功能。