论坛首页 Web前端技术论坛

在用shop++做项目时,发布文章的路径和文章名称如何修改及解决方法

浏览 1961 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2014-03-04   最后修改:2014-03-05
项目中遇到这样的需求:由这样路径名称
/article/content/201402/27/1.html
改为这样的路径名称?
/html/201402/27_1.html

因为采用项目是采购的shop++成品软件系统,希望能给以后遇到此类问题的朋友一个参考:
修改shopxx.xml文件如下内容:
<template id="articleContent" type="page" name="文章内容" templatePath="/shop/article/content.ftl" staticPath="/html/${createDate?string('yyyyMM')}/${id}_${pageNumber!1}.html" />
staticPath为静态页面路径
   发表时间:2014-03-07  
URL路由规则!
0 请登录后投票
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics