Topic has moved on every forum post w/ fix.
On one of my sites which has been around since 4.6, and now runs 5.1 I was having an issue where all my forum posts ended up with “Topic has moved” messages, which pointed to nowhere (term/0). This seems to have been caused by us originally allowing multiple selections of forum topics. Of course the newest versions of Forum do no allow this, and prevent you from selecting this option. However it was still enabled on this site due to the migration path. So, a few SQL queries to fix the issue. First we need to fix the broken posts
UPDATE `forum` f INNER JOIN term_node t ON (t.nid=f.nid)SET f.tid=t.tidWHERE f.tid=0
Now we need to fix the forums topics
UPDATE `vocabulary` SET `multiple` = '0' WHERE `module`='forum';
Powered by ScribeFire.
Moving keywords(subjects) in plone
In plone, one of the fundamental UI issues I have/had was the Keywords list was on the Properties form. So you would have to save you document, then goto properties select your keywords, then save again. Putting it at the bottom of the edit form would be far more useful, and useable. So, here is the monkey patch I’ve written to move the keywords (subject) properties to the edit form. This is implemented in the Archer product I produced for work.
from Products.ATContentTypes.content import document, file, link, event
document.ATDocumentSchema['subject'].schemata = 'default'
document.ATDocumentSchema.moveField('subject', before='relatedItems')
file.ATFileSchema['subject'].schemata = 'default'
file.ATFileSchema.moveField('subject', before='relatedItems')
link.ATLinkSchema['subject'].schemata = 'default'
link.ATLinkSchema.moveField('subject', before='relatedItems')
event.ATEventSchema['subject'].schemata = 'default'
event.ATEventSchema.moveField('subject', before='relatedItems')
Powered by ScribeFire.
-
Archives
- July 2009 (1)
- February 2009 (1)
- December 2008 (1)
- November 2008 (1)
- October 2008 (2)
- September 2008 (1)
- August 2008 (1)
- April 2008 (2)
- February 2008 (4)
- January 2008 (2)
- November 2007 (1)
- October 2007 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS