Link type in Plone 4.0.2 stopped working

南楼画角 提交于 2019-12-23 10:03:01

问题


I'm working on a Plone 4.0.2 website that for awhile has been running smoothly, but just recently the Link contenttype has stopped functioning as it should. Regardless of being logged in or not all that is ever seen is the page saying "The link address is :[target URL]". Also when creating/editing a link the info message that usually says "you're seeing this because you have permission to edit..." isn't showing up. I've attempted to reinstall archetypes and no change occ


回答1:


in portal_skins/plone_content there is a view called link_redirect_view a Script (Python) that normally does the job : here is the doc :

Redirect to the Link target URL, if and only if:
  - redirect_links property is enabled in portal_properties/site_properties
 - AND current user doesn't have permission to edit the Link

I would check with /select_default_view what is the default view of the link. If there is no link_redirect_view available I would go and see what is going on in portal_types as Jihaisse said. Could it be that quintagroup.seoptimizer has something to do with the problem ? It happened to me and I've got quintagroup.seoptimizer, hmm..

Actually, since it happened to me again (may because uninstall quintagroup.seoptimizer) To have my redirections in the same way as before I had to go /@@types-controlpanel and ask to see the type Link : there it was a setting call some things like .. "direct redirection"




回答2:


You may check the default view of the link. It's like it's base_view not link_view. You can see this directly on the link by choosing the view action, or in the ZMI in portal_types.

If the view has changed, it's surely because of an add-on.



来源:https://stackoverflow.com/questions/7111661/link-type-in-plone-4-0-2-stopped-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!