系统安装

汇总性教程

内容管理

栏目管理

静态管理和缓存管理

标签和模板

模板教程

常见疑难问题

二次开发教程

动静态分离部署

首页 >  国微CMS教程 >  内容管理 >  快速发布内容
链接的标准写法

 

                               链接的标准化(标准化系列)

 

 

一、静态写法:

 

1、主站静态链接写法:

 

 

A:主站的“更多>>:静态的写法

 

<a href="{$this_system.domain}/html/893/" target="_blank">更多</a>

 

 

B:主站的导航:静态地址写法

 

html/781/

 

 

 

2、分站静态链接写法:

 

A:分站的更多>>的链接静态地址写法

 

<a href="{$site_domain}/19107/" target="_blank">更多>></a>

<a href="{$site_domain}/19785" target="_blank">MORE+</a>

 

B:内容页的静态写法:

<a href="{$site_domain}/2018_05/10_18/content-12843.html" target="_blank">更多>></a>

 

 

C: 静态导航菜单写法:

{$site_domain}/19106/

 

 

 

二、动态地址写法:

 

1、主站动态链接写法:

 

A:主站的“更多>>:静态的写法

 

 <a href="{$core.controller}/cms/item-list-category-44.shtml" target="_blank">更多</a>

 

 

 

B:主站的导航:动态的写法

 

index.php/cms/item-list-category-1360.shtml

 

 

 

2、分站动态链接写法:

 

A:分站的"更多>>": 动态的地址的写法

 

<a href="{$this_system.controller}/item-list-category-8784.shtml" target="_blank">更多>></a>

  

 

B:动态导航菜单写法:

 

{$system_url}/item-list-category-8784.html

 

 

 

 

 

三、主站的其他的链接写法:

 

A:信箱的链接写法

 

<a href="{$core.controller}/letter-list">党委信箱</a>

 

 

B:表单的写法

 

<a href="{$core.controller}/forms-post?mid=29"><span>网上举报</span></a>

 

 

 

 

四、统一入口的链接写法(会员中心、标签、后台):

 

A:主站

 

主站会员中心登陆:{$core.U_controller}

B:子站

 

会员中心:{$core.U_controller}?site=school01

 

分站某后台:{$core.admin_controller}/sites-index?site=school01

 

分站某首页标签:{$core.controller}/../s.php/school01?&edit_label=1

 

 

 

相关内容