0

分类(拼音)/视频(内容ID)/播放(内容ID)伪静态规则

使用手册
admin
2023-6-20 108

视频分类规则  
/tv/
/dianying/

视频内容规则
/tv/1.html
/dianying/1.html

视频播放页规则
/tv/play/1-3-1.html
/dianying/play/1-3-1.html

首先我这里只以TV为例,共需要三步操作第1步,后台伪静态规则

vod-read-id-(:num)===pinyin/(:num)
vod-play-id-(:num)-sid-(:num)-pid-(:num)===pinyin/play/(:num)-(:num)-(:num)
vod-show-cid-tv===tv===id=2
vod-read-id-(:num)-cid-tv===tv/(:num)
vod-play-id-(:num)-sid-(:num)-pid-(:num)-cid-tv===tv/play/(:num)-(:num)-(:num)

第2步,定义栏目分类拼音路径,分类管理

第3步,批量替换默认模板详情页链接,播放页链接,最后修改导航的链接(如:电视剧的路径为/tv/)

{:xz_url_vod_read($list_id,$list_dir,$vod_id,$vod_ename,$vod_jumpurl)}

替换为

{:str_replace('video/',$list_dir.'/',xz_url_vod_read($list_id,$list_dir,$vod_id,$vod_ename,$vod_jumpurl))}

{:xz_url_vod_read($xzcms['list_id'],$xzcms['list_dir'],$xzcms['vod_id'],$xzcms['vod_ename'],$xzcms['vod_jumpurl'])}

替换为

{:str_replace('video/',$xzcms['list_dir'].'/',xz_url_vod_read($xzcms['list_id'],$xzcms['list_dir'],$xzcms['vod_id'],$xzcms['vod_ename'],$xzcms['vod_jumpurl']))}

{:xz_url_vod_play($list_id,$list_dir,$vod_id,$vod_ename,$xzcms['player_sid'],$pid)}

替换为

{:str_replace('pinyin/',$list_dir.'/',xz_url_vod_play($list_id,$list_dir,$vod_id,$vod_ename,$xzcms['player_sid'],$pid))}
最新回复 (0)

    暂无评论

请先登录后发表评论!

返回
请先登录后发表评论!