craftercms / craftercms

Parent project for Crafter CMS. Issue tracking across all repositories and global builds.
GNU General Public License v3.0
288 stars 98 forks source link

Shared content data source incorrectly handles the display and selection of pages the have child pages #6844

Open AndyReiter opened 1 month ago

AndyReiter commented 1 month ago

Duplicates

Latest version

Describe the issue

A customer has noticed an inconsistency between the Node Selector's Search and Browse functionality. Currently, the Node Selector has issues selecting child pages when using the Browse option, but does not have this issue when using the Search option.

CI: ZD 4699

Steps to reproduce

Steps:

  1. Go to Studio and select Editorial project
  2. Go to project tools, content types and edit Category Landing page
  3. Add a new datasource type "shared-content"
    • Title Article
    • Keep Enable Browse Existing and Enable Search Existing selected
    • Set repository path and browse path as /site/website
  4. Add a node-selector control under Articles
    • Name Articles
    • Select the Article datasource
    • save
  5. Go to side bar, Home/articles/2020/12 and create a new Article page under top-books-for-young-women. Use any content
  6. Go to Entertainment Landing Page and edit
    • Go to Articles , click en Add+ and select Browse for Existent Article
    • In the tree at left side navigate to Home/articles/2020/12/Top Books For Young Women
    • Notice the new Test Article is not shown in the center section. Instead it says "No items found."
    • Try to select the new test article created from the tree.

Relevant log output

No response

Screenshots and/or videos

https://github.com/craftercms/craftercms/assets/42217570/db0c1248-85e9-4658-864c-cb7b688d78b1