-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
POC DO NOT MERGE - Make CMS Main work with other models
- Loading branch information
1 parent
117dc25
commit 769136f
Showing
8 changed files
with
300 additions
and
103 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
<%-- Loop is all on one line to prevent whitespace bug in older versions of IE --%> | ||
<% if $Pages %> | ||
<% loop $Pages %><% if $IsLast %>$MenuTitle.XML<% else %><% if not Up.Unlinked %><a href="$Link" class="breadcrumb-$Pos"><% end_if %>$MenuTitle.XML<% if not Up.Unlinked %></a><% end_if %> $Up.Delimiter.RAW <% end_if %><% end_loop %> | ||
<% loop $Pages %> | ||
<% if $IsLast %> | ||
<% if $hasField('MenuTitle') %> | ||
$MenuTitle.XML | ||
<% else %> | ||
$Title.XML | ||
<% end_if %> | ||
<% else %> | ||
<% if not Up.Unlinked %><a href="$Link" class="breadcrumb-$Pos"><% end_if %> | ||
<% if $hasField('MenuTitle') %> | ||
$MenuTitle.XML | ||
<% else %> | ||
$Title.XML | ||
<% end_if %> | ||
<% if not Up.Unlinked %></a><% end_if %> $Up.Delimiter.RAW | ||
<% end_if %> | ||
<% end_loop %> | ||
<% end_if %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
templates/SilverStripe/CMS/Controllers/Includes/CMSMain_TreeNode.ss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
<li id="record-{$node.ID}" data-id="{$node.ID}" data-pagetype="{$node.ClassName}" class="$markingClasses $extraClass"><ins class="jstree-icon font-icon-right-dir"> </ins> | ||
<a href="{$node.CMSEditLink.ATT}" title="{$Title.ATT}"><ins class="jstree-icon font-icon-drag-handle"> </ins> | ||
<span class="text">{$node.TreeTitle}</span> | ||
<span class="text"> | ||
<% if $node.hasField('TreeTitle') %> | ||
$node.TreeTitle | ||
<% else %> | ||
<% if $node.hasField('MenuTitle') %> | ||
$node.MenuTitle | ||
<% else %> | ||
$node.Title | ||
<% end_if %> | ||
<% end_if %> | ||
</span> | ||
</a> | ||
$SubTree | ||
</li> |