Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interal link browser should start from current folder and/or should be customizable #1974

Closed
tomgross opened this issue Mar 21, 2017 · 7 comments · Fixed by #2055
Closed

Comments

@tomgross
Copy link
Member

What I did:

  1. Edit a page nested in a folder structure
  2. Open dialog to insert internal link

What I expect to happen:

Search / Browsing starts at the folder the current page is located

What actually happened:

Search / Browsing starts at Root (next NavRoot)
In Plone 4.3 there were two options: Current Folder, Root and it was even custom extendable.

What version of Plone/ Addons I am using:

5.1b2-pending

@hvelarde
Copy link
Member

@tomgross an issue can be a bug or a regression, but not both.

@hvelarde
Copy link
Member

hvelarde commented Mar 21, 2017

I just tested and this is a regression from the behavior found in Plone 4.3.

@fgrcon
Copy link
Member

fgrcon commented Mar 21, 2017

a bug which comes back is still a bug but also a regression (what makes it worse) , or i am totally wrong ? :-)

@fulv
Copy link
Member

fulv commented Mar 21, 2017 via email

@hvelarde
Copy link
Member

hvelarde commented Mar 22, 2017

a regression is a bug (or a different behavior) introduced (or reintroduced) due to a refactor like in this case; it's something that should not happen if we have tests for a specific use case.

@paskyorg
Copy link

I get the same behaviour with Plone 5.0.4. Anyone know if there is a plan to correct it?

thet added a commit to plone/plone.app.widgets that referenced this issue May 19, 2017
- Let the browsing/searching start path be the current context if its folderish or a level up.
- Include the ``contextPath`` option to exclude the current context from selection.
- Include the ``favorites`` option with the current context and the navigation root to quickly jump to these paths.
- Clean up obsolete options.
Fixes plone/Products.CMFPlone#1974
thet added a commit that referenced this issue May 19, 2017
Let TinyMCE options for the related items widget be generated by ``plone.app.widgets.utils.get_relateditems_options``.
This aligns the options to how the related items widget is used elsewhere.
Fixes #1974
@thet
Copy link
Member

thet commented May 19, 2017

These issue is among others addressed here:

#2055
plone/mockup#765
plone/plone.app.widgets#159

thet added a commit to plone/plone.app.widgets that referenced this issue May 22, 2017
- Let the browsing/searching start path be the current context if its folderish or a level up.
- Include the ``contextPath`` option to exclude the current context from selection.
- Include the ``favorites`` option with the current context and the navigation root to quickly jump to these paths.
- Clean up obsolete options.
Fixes plone/Products.CMFPlone#1974
thet added a commit that referenced this issue May 22, 2017
Let TinyMCE options for the related items widget be generated by ``plone.app.widgets.utils.get_relateditems_options``.
This aligns the options to how the related items widget is used elsewhere.
Fixes #1974
thet added a commit that referenced this issue May 22, 2017
Let TinyMCE options for the related items widget be generated by ``plone.app.widgets.utils.get_relateditems_options``.
This aligns the options to how the related items widget is used elsewhere.
Fixes #1974
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue May 23, 2017
Branch: refs/heads/master
Date: 2017-05-22T14:54:00+02:00
Author: Johannes Raggam (thet) <thetetet@gmail.com>
Commit: plone/plone.app.widgets@2639986

Related items widget options changes
- Let the browsing/searching start path be the current context if its folderish or a level up.
- Include the ``contextPath`` option to exclude the current context from selection.
- Include the ``favorites`` option with the current context and the navigation root to quickly jump to these paths.
- Clean up obsolete options.
Fixes plone/Products.CMFPlone#1974

Files changed:
M CHANGES.rst
M plone/app/widgets/tests/test_utils.py
M plone/app/widgets/utils.py
Repository: plone.app.widgets
Branch: refs/heads/master
Date: 2017-05-23T13:06:49+02:00
Author: agitator (agitator) <agitator@users.noreply.github.com>
Commit: plone/plone.app.widgets@b0fa4b4

Merge pull request #159 from plone/thet-relateditemsoptions

Related items widget options changes

Files changed:
M CHANGES.rst
M plone/app/widgets/tests/test_utils.py
M plone/app/widgets/utils.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants