plone

How to set focus on rich-text-field, in edit-mode of a contenttype?

那年仲夏 提交于 2019-12-24 16:57:55
问题 I'd like to initially set the focus onto the text-field of an item when editing it, but cannot overcome TinymMCE'S iframe kickin' in. When disableling TinyMCE, everything works as expected, the text-field is focusable. I tried simulating a click in TinyMCE's body-element, no luck either. Is it possible at all, to focus the body-field via JS? This is what I tried so far: (function($) { $(document).ready(function() { $('#text').focus() // Only works, when TinyMCE is disabled. $('body#content')

Override sanity check when running Plone buildout?

本小妞迷上赌 提交于 2019-12-24 13:34:10
问题 I'm running Ubuntu 12.04 LTS with an apache server for my Jira/Confluence application. Now I need to additionally install an instance of Plone (production). But port 8080 is already taken by Jira and until now I couldn't find working instructions to change this. I followed these instructions to install plone: http://developer.plone.org/getstarted/ubuntu_production.html Do I have to take care of the port during these instructions? I have found this site (2.5. Creating New Instances): http:/

Plone - Overriding skins.xml of another product

ぃ、小莉子 提交于 2019-12-24 12:44:21
问题 In using Plone, I had the need to use image maps. So I added this product to my build. However, I noted that I was not able to use the product in my application. After investigation, I noticed that this particular product had specified specific themes to be used i.e. the plone default themes. Here is the skins.xml from the product: <?xml version="1.0"?> <object name="portal_skins" allow_any="False" cookie_persistence="False"> <object name="zopyx_tinymceplugins_imgmap" meta_type="Filesystem

How to add a new language to Plone

99封情书 提交于 2019-12-24 11:29:45
问题 We need a way to classify pages or files as being of a language not already known in the standard language list in Plone/Zope. We don't need any translation or other functionality, just a way classify items as these new languages. What is the best practice way of handling this? We are currently looking at using ATVocabularyManager to import a new list of languages and then creating a plugin that uses schemaextender to adjust the vocabulary used by the DC metadata language field on all Plone

List folders that a user has Reviewer access to in Plone 4

╄→尐↘猪︶ㄣ 提交于 2019-12-24 10:26:07
问题 I have a folder in my site that contains hundreds of subfolders. Each subfolder represents a document submission, and has items in it that are related to the submission. The default page for each subfolder is a custom page template (based on Document) that displays slightly different information depending on what the viewing users Role is. For instance, users with Manager role see something slightly different than users with Reviewer role or Editor role. Users on the site are assigned

Plone/form.SchemaForm - How can I reposition a button in a SchemaForm?

吃可爱长大的小学妹 提交于 2019-12-24 06:01:19
问题 I have an interface class, an class mapped to a back end database, and a form.SchemaForm class. Here is my interface. class IAsset(form.Schema): """Interface class of an asset """ ... Options = schema.Text..... Parent = schema.Int(title=u"Parent", required=False ) Status = schema.Choice..... I don't think the ORM class is of any instance, but here is a bit of my SchemaForm. class AddAsset(form.SchemaForm): grok.name('add-asset') grok.require('zope2.View') grok.context(ISiteRoot) schema =

Plone/form.SchemaForm - How can I reposition a button in a SchemaForm?

时光毁灭记忆、已成空白 提交于 2019-12-24 06:00:01
问题 I have an interface class, an class mapped to a back end database, and a form.SchemaForm class. Here is my interface. class IAsset(form.Schema): """Interface class of an asset """ ... Options = schema.Text..... Parent = schema.Int(title=u"Parent", required=False ) Status = schema.Choice..... I don't think the ORM class is of any instance, but here is a bit of my SchemaForm. class AddAsset(form.SchemaForm): grok.name('add-asset') grok.require('zope2.View') grok.context(ISiteRoot) schema =

Plone - XSLTApplyError: xsltValueOf: text copy failed

陌路散爱 提交于 2019-12-24 05:34:31
问题 I have a Plone 4 with plone.app.theming(Diazo) installed and I am having problem when I am using a zip file theme through Diazo Control Panel. I had tried for many times to identify the cause of the error showed in the Plone log bellow: 2011-07-10 20:20:55 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain Traceback (most recent call last): File "/opt/Plone4/buildout-cache/eggs/plone.transformchain-1.0-py2.6.egg/plone/transformchain/transformer.py", line 42, in

How to correctly set Documentroot in Apache serving Plone

对着背影说爱祢 提交于 2019-12-24 03:18:53
问题 I have a Plone site called example.com located at /var/www/Plone (I think). I have the following settings for the site located in sites-available for vhosts (excerpt): <VirtualHost 10.0.1.4:8082> ServerAdmin webmaster@localhost ServerName wiedhas.noip.me DocumentRoot /var/www/Plone When I try to reach my site wiedhas.noip.me , apache loads the Plone directory tree and not my Plone site. I can browse through the file system of /var/www/Plone but it is not loading the site. I must not have set

How to correctly set Documentroot in Apache serving Plone

时光毁灭记忆、已成空白 提交于 2019-12-24 03:18:50
问题 I have a Plone site called example.com located at /var/www/Plone (I think). I have the following settings for the site located in sites-available for vhosts (excerpt): <VirtualHost 10.0.1.4:8082> ServerAdmin webmaster@localhost ServerName wiedhas.noip.me DocumentRoot /var/www/Plone When I try to reach my site wiedhas.noip.me , apache loads the Plone directory tree and not my Plone site. I can browse through the file system of /var/www/Plone but it is not loading the site. I must not have set