Git Product home page Git Product logo

Comments (11)

theboxer avatar theboxer commented on September 2, 2024

This will be available in next version of MODX, because there is no way to get it working in current version...

from collections.

exside avatar exside commented on September 2, 2024

doh, there isn't?? I just tried that...setting the attribute "hide_children_in_tree" of the CollectionsContainer resource indeed hides the arrow... (this is not set "normally" though, e.g that attribute has value of 0, also when its a Collection)...I guess there's something that was a problem when doing so?

I just saw 3 different editors clicking on that arrow...that's why it seems to be an issue for me...

modx collections treearrow

from collections.

theboxer avatar theboxer commented on September 2, 2024

The problem is, that when you set this property, you will not be able to drag and drop resource in collections....

from collections.

exside avatar exside commented on September 2, 2024

shit...yap...any possibility to hide that arrow via css??

from collections.

theboxer avatar theboxer commented on September 2, 2024

hmm, probably you can try it based on the collections (not sure how it's named in real, LOL) class that it has because of the collecions icon.

from collections.

labr1005 avatar labr1005 commented on September 2, 2024

This works for me in MODX 2.3.2 to hide those triangles via css:

[ext\:tree-node-id="web_269"] > i.x-tree-ec-icon.x-tree-elbow-plus {
    visibility: hidden;
}

where tree-node-id is "context" + "_" + "resource id".

from collections.

theboxer avatar theboxer commented on September 2, 2024

If you'll have nested collections, or folder under collections, it will not work properly

from collections.

labr1005 avatar labr1005 commented on September 2, 2024

That's true. This is just a dirty fix for the case as described by exside. I currently have this situation, too, where there's nothing nested but the editors always click on the triangle.

from collections.

christianseel avatar christianseel commented on September 2, 2024
  1. Shouldn't modResources have the show_in_tree flag set to 0?

  2. Shouldn't MODX recognize if all children have the show_in_tree flag set to 0 and don't show the little arrow?

from collections.

theboxer avatar theboxer commented on September 2, 2024

ad 1) resources under Collections have that flag set to 0
ad 2) yes it should :)

from collections.

christianseel avatar christianseel commented on September 2, 2024

Oops, (1) was a bug in Gitify (which is now fixed) :)

from collections.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.