Skip to content

If an object is renamed. There is actually no traking if it is a default... - #69

Merged
jensens merged 2 commits into
plone:4.3.xfrom
hoka:4.3.x
Jan 24, 2015
Merged

jensens merged 2 commits into
plone:4.3.xfrom
hoka:4.3.x

Conversation

@hoka

@hoka hoka commented Oct 1, 2013

Copy link
Copy Markdown

... page.

Hi,

here a little usability improvement.

If a default page is renamed, now the relation to the parend is fixed.

Comment thread Products/CMFPlone/PloneTool.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we fix the getDefaultPage method of the portal object instead of adding this special case?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How should this be possible?
I think the wrong value has to be changed. If it is renamed you will no longer know wich is the new id. Currently the selected view will fall back to folder_listing if the default page is not accessible.
I think this is bad usability.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't make myself clear. I agree with your pull request as a whole. But I think it could be improved by removing lines 1331-1333 and instead make sure the portal root's getDefaultPage method will look at portal.getProperty('default_page', '')

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok now i get it. I will take a look on it on monday what the Problem could be

@davisagli

Copy link
Copy Markdown
Member

Please add a changelog entry.

@davisagli davisagli mentioned this pull request Feb 25, 2014
90 tasks
@jensens

jensens commented Apr 3, 2014

Copy link
Copy Markdown
Member

IMO this is a good tiny improvement. It is needed for 5.0 as well. Would be nice to have a test.

@jensens

jensens commented Jun 16, 2014

Copy link
Copy Markdown
Member

@hoka whats the state here?

@jaroel

jaroel commented Jul 4, 2014

Copy link
Copy Markdown
Member

This could use a test.
Shouldn't this also go into master?

@pbauer

pbauer commented Jan 23, 2015

Copy link
Copy Markdown
Member

I implemented this for Plone 5 in plone/plone.app.content#24

jensens added a commit that referenced this pull request Jan 24, 2015
If an object is renamed. There is actually no traking if it is a default...
@jensens
jensens merged commit eca5dd2 into plone:4.3.x Jan 24, 2015
jensens added a commit that referenced this pull request Nov 12, 2021
Correctly select tab in GlobalSectionsViewlet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants