Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
fdd1c49b
Commit
fdd1c49b
authored
Dec 28, 2019
by
tianbj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
栏目生成
parent
9c9556ea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
CmsParserUtil.java
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java
+4
-1
No files found.
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java
View file @
fdd1c49b
...
@@ -80,11 +80,11 @@ public class CmsParserUtil extends ParserUtil {
...
@@ -80,11 +80,11 @@ public class CmsParserUtil extends ParserUtil {
cfg
.
setTemplateLoader
(
ftl
);
cfg
.
setTemplateLoader
(
ftl
);
}
}
// 移动端模板
// 移动端模板
try
{
Template
mobileTemplate
=
cfg
.
getTemplate
(
Template
mobileTemplate
=
cfg
.
getTemplate
(
BasicUtil
.
getApp
().
getAppMobileStyle
()
+
File
.
separator
+
column
.
getCategoryListUrl
(),
Const
.
UTF8
);
BasicUtil
.
getApp
().
getAppMobileStyle
()
+
File
.
separator
+
column
.
getCategoryListUrl
(),
Const
.
UTF8
);
// pc端模板
// pc端模板
Template
template
=
cfg
.
getTemplate
(
File
.
separator
+
column
.
getCategoryListUrl
(),
Const
.
UTF8
);
Template
template
=
cfg
.
getTemplate
(
File
.
separator
+
column
.
getCategoryListUrl
(),
Const
.
UTF8
);
// 文章的栏目模型编号
// 文章的栏目模型编号
String
columnContentModelId
=
column
.
getMdiyModelId
();
String
columnContentModelId
=
column
.
getMdiyModelId
();
StringWriter
writer
=
new
StringWriter
();
StringWriter
writer
=
new
StringWriter
();
...
@@ -181,6 +181,9 @@ public class CmsParserUtil extends ParserUtil {
...
@@ -181,6 +181,9 @@ public class CmsParserUtil extends ParserUtil {
}
catch
(
TemplateException
e
)
{
}
catch
(
TemplateException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
catch
(
TemplateNotFoundException
e
){
e
.
printStackTrace
();
}
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment