jzubero / silverstripe-sitetree-labels Goto Github PK
View Code? Open in Web Editor NEWLabel your Page items for better orientation in large SiteTrees :bookmark:
License: MIT License
Label your Page items for better orientation in large SiteTrees :bookmark:
License: MIT License
A report to get e.g. all Pages that are "to review" would be awesome.
It's missing some proper Behat/Codeception/Unit tests. Otherwise, looks pretty awesome!
Hi! I am a huge fan of your module, cleans up our sitetrees very nicely, thank you for sharing!
I discovered a bug with nested sitetree items. The case I had was a root-level item, with subitems, and subsubitems. Whenever the root-level item was expanded (by clicking the little arrow and /admin/pages/getsubtree?ID=...&ajax=1 was called), the interface moved all subitem and subsubitems up one level in the interface. They weren't actually reparented (the database still showed them to be subitems of the correct parent), but the tree moved them up. I traced the origin of the bug back to a closing that apparently is not needed. So my solution was to change the LeftAndMain_TreeNode.ss to the following (basically I just removed the at the end ;-) ):
<li id="record-$ID" data-id="$ID" data-pagetype="$ClassName" class="$Classes"><ins class="jstree-icon"> </ins>
<a href="$Link" title="$Title.ATT"><ins class="jstree-icon"> </ins>
<span class="text">$TreeTitle</span>
<% if $SiteTreeLabels %>
<% loop $SiteTreeLabels %>
<span class="sitetree-label" style="background-color: $Color">TT $Title</span>
<% end_loop %>
<% end_if %>
</a>
This is in line with /framework/admin/template/Includes/LeftAndMain_TreeNode.ss (which also has no ending ). Could you incorporate this fix with the next version?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.