plone

How do I add keywords to SearchableText for a Dexterity content type?

隐身守侯 提交于 2019-12-10 14:19:24
问题 I have a site running Plone 4.1 which has a custom content type developed with Dexterity 1.1. My content authors can add keywords to basic Plone pages using the Categorization tab and users successfully find these pages if they search using one of the keywords. My content authors have also produced pages using a Dexterity custom content type I developed. This was defined using a Python-based file system schema. If users search for terms in the title and description of a Dexterity content type

Plone5 Mockup Widgets like pat-pickadate not working for dynamically generated content

霸气de小男生 提交于 2019-12-10 13:23:07
问题 Assume the following silly code fragment in a plone 5 page template: <input id="foo" class="pat-pickadate" /> <input id="bar" /> <script type="text/javascript" > $('#bar').click( function () { $('#bar').addClass("pat-pickadate"); }); </script> You will get two inputs. The first is a nice calendar input and the second is empty at start. After clicking the second input its class will be set to "pat-pickadate" - like the first - but no calendar is rendered. I came across this while trying to

How do I add extra fields (custom captcha) to the registration form in Plone 4.1

筅森魡賤 提交于 2019-12-10 10:09:33
问题 I am trying to add a custom captcha to the registration form for my Plone site. I recently upgraded from 3.1.x to 4.1.3 and this broke my existing customizations to the join_form template and validation script. I have been trying to follow the collective.examples.userdata example to make my customization. I think I have followed the example correctly but the new field is not being rendered into the registration form. How do I figure out why the extra fields are not showing up and is there a

Plone - In an AutocompleteFieldWidget, how can I fix a glitch where (none) is still selected despite another selected?

喜夏-厌秋 提交于 2019-12-10 09:42:14
问题 I have a form.Form whose interface has a field that is a AutocompleteFieldWidget. (none) is displayed because the field is not required. There is a glitch where (none) will remain selected even if the user hits another radio button. Parent = schema.Choice(title=u'Parent Object', source=ParentSourceVocabSourceBinder(), required=False, default=None) The field is bound to an object class acting as a vocabulary. The object has the required functions. The search function searches for records of a

How are portlets rendered / ordered / layed out in Plone?

自古美人都是妖i 提交于 2019-12-10 09:30:19
问题 I'm trying to change the global ordering of the portlets in my Plone site. I've searched the Plone source code but I can't find the code that actually iterates through and renders the portlets, for example the 'plone.rightcolumn' and 'plone.leftcolumn' content providers. Where is that code? 回答1: First check http://developer.plone.org/reference_manuals/old/portlets/rendered.html for technical details (imho this is still up-to-date) The PortletRetriever (plone.portlets) collects and orders all

collective.xdv and multiple theme files

Deadly 提交于 2019-12-10 06:56:28
问题 I am having different theme HTML files for different site sections. There are some major layout differences depending if the page is the front page, or a certain subsection. As far as I see the default behavior is just to have one HTML file: http://pypi.python.org/pypi/collective.xdv#usage What would be the best strategy to use multiple theme files, slight rule variations and collective.xdv? Plone 4.1b. 回答1: We usually just utilize plain xdv and use the rules.xml (or whatever you want to call

Is there a good reference list for the names of the genericsetup import steps

隐身守侯 提交于 2019-12-10 05:20:15
问题 Is there a comprehensive reference list of the generic setup import step names? The names of generic setup import steps don't always match the names of their corresponding xml files for example 'types.xml' has an import step called 'typeinfo'. In the absence of a list, I would be satisfied with a simple approach to finding out the name of the import step. For example the import step name for plone.app.registry which is managed by the 'registry.xml' file is not obvious, I tried to refer to it

Nested overrides in portal_skins folder

匆匆过客 提交于 2019-12-10 04:05:18
问题 How one could override files in nested portal_skins folder? The default behavior seems to be that you need to copy whole folder structures if you want to override a single file. This is a maintenance nightmare. E.g. how to override file: Producs.TinyMCE/skins/tinymce/plugins/table/js/table.js ... without needing to create a duplicate for the whole Products.TinyMCE skins codebase? 回答1: Use z3c.jbot, and put a file in your jbot template directory called Products.TinyMCE.skins.tinymce.plugins

What is the correct way to backup ZODB blobs?

扶醉桌前 提交于 2019-12-10 03:58:04
问题 I am using plone.app.blob to store large ZODB objects in a blobstorage directory. This reduces size pressure on Data.fs but I have not been able to find any advice on backing up this data. I am already backing up Data.fs by pointing a network backup tool at a directory of repozo backups. Should I simply point that tool at the blobstorage directory to backup my blobs? What if the database is being repacked or blobs are being added and deleted while the copy is taking place? Are there files in

How to directly publish only child items of my Container type in Plone?

懵懂的女人 提交于 2019-12-10 03:36:43
问题 I have a custom folderish Dexterity content-type in Plone. It can have only Documents as children. I want these documents to be directly published as they are created. I can achieve this easily by setting an appropriate workflow for the Document type, but that would affect every document in my site. I want only the ones inside my container type to be directly published. Two options come to my mind: Custom page Create basically just a copy of the stock Document type and set its workflow to