Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/SSCMS.Core/StlParser/StlElement/StlChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,11 @@ private static async Task<string> ParseAsync(IParseManager parseManager, string
inputType = InputType.DateTime;
parsedContent = DateUtils.Format(channel.AddDate, format);
}
else if (StringUtils.EqualsIgnoreCase(type, nameof(Channel.LastModifiedDate)))
{
inputType = InputType.DateTime;
parsedContent = DateUtils.Format(channel.LastModifiedDate, format);
}
else if (StringUtils.EqualsIgnoreCase(type, nameof(Channel.ImageUrl)))
{
//inputType = InputType.Image;
Expand Down
2 changes: 1 addition & 1 deletion src/SSCMS.Core/StlParser/Utility/StlDataManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public async Task<int> GetChannelIdByLevelAsync(int siteId, int channelId, int u
if (topLevel < channel.ParentsCount)
{
var parentIdStrList = ListUtils.GetStringList(ListUtils.ToString(channel.ParentsPath));
if (parentIdStrList[topLevel] != null)
if (topLevel < parentIdStrList.Count && parentIdStrList[topLevel] != null)
{
var parentIdStr = parentIdStrList[topLevel];
theChannelId = TranslateUtils.ToInt(parentIdStr);
Expand Down
Loading