plone / plone/plone.patternslib

Expandable Tree pattern does nothing in Plone 5.2.1

Open
#37 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2
Forks
5
Avg merge
7h 25m
Merged PRs (30d)
2

Description

After successfully installing Patternslib in my Plone site and testing other patterns with success, pasting the following test code for the Expandable Tree pattern into a page through TinyMCE's "View Source" tool (with HTML filtering disabled completely):

<ul class="pat-expandable">
  <li class="folder">Folder name</li>
  <li class="folder open">Folder name
    <ul>
      <li class="document"><a href="#">Document name</a></li>
      <li class="folder closed">Folder name
        <ul>
          <li class="document"><a href="#">Document name</a></li>
        </ul>
      </li>
      <li class="document"><a href="#">Document name</a> </li>
      <li class="document"><a href="#">Document name</a> </li>
      <li class="document"><a href="#">Document name</a> </li>
      <li class="document"><a href="#">Document name</a> </li>
      <li class="document"><a href="#">Document name</a> </li>
    </ul>
  </li>
  <li class="folder">Folder name</li>
  <li class="folder">Folder name</li>
  <li class="folder">Folder name</li>
</ul>

...produces an ordinary bulleted list (with no special behaviour at all).

My plone site versioning is as follows:

Plone 5.2.1 (5208)
CMF 2.4.2
Zope 4.1.3
Python 3.6.9 (default, Jan 24 2020, 11:58:01) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
PIL 6.2.1 (Pillow)
WSGI: On
Server: waitress 1.4.3

...and the plone.patternslib version pulled and included was 1.1.0.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source file or test. First reproduce the Expandable Tree markup in Plone 5.2.1 with plone.patternslib 1.1.0, then trace the Plone integration for the Expandable Tree pattern. Done means the supplied list receives the expected expandable and collapsible behavior instead of remaining an ordinary bulleted list.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.