Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
fdd1c49b
"src/main/vscode:/vscode.git/clone" did not exist on "71c4dc2a1c812bb5a43a54f38e1c25eac75b9a20"
Commit
fdd1c49b
authored
Dec 28, 2019
by
tianbj
Browse files
栏目生成
parent
9c9556ea
Changes
1
Show whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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