Questions tagged [dexterity]

Dexterity is a content type framework for CMF applications, with particular emphasis on Plone. It can be viewed as an alternative to Archetypes that is more light-weight and modular

Dexterity is a system for building content types, both through-the-web and as filesystem code. It is aimed at Plone, although this package should work with plain Zope + CMF systems.

Dexterity is included by default in Plone 4.3 as an alternative to Archetypes and will be the main content type framework in upcoming Plone 5.0.

282 questions
0
votes
0 answers

dexterity item required schema.List field not validated if empty

I have a field like this on my custom content type: foo = schema.List( title=_(u'Foo'), value_type=schema.Choice( vocabulary='foo.vocab' ), required=True, ) The field is rendered as in/out widget and is marked as…
simahawk
  • 2,421
  • 1
  • 16
  • 22
0
votes
1 answer

Insert customized dexterity content type to tinymce editor in plone 5

Suppose I have a dexterity content type called 'Unit' in plone 5. I am looking for solutions of these following questions : How to create shortcut in tinymce to insert 'Unit' to tinymce editor (like the way we insert image)? Suppose the 'Unit'…
ega
  • 107
  • 8
0
votes
1 answer

How do I grant write permission to a field for anonymous users but not logged-in users?

In my dexterity form, I have a field "author" for anonymous to fill in, and without logged-in user. I define a permission called "isAnonymous", and grant "isAnonymous" to Anonymous user, I use dexterity.write_permission(author='isAnonymous'), like…
Andy
  • 213
  • 1
  • 9
0
votes
1 answer

Plone 4.3 without Archetypes

Is there a way to install Plone without Products.Archetypes - not just deactivating - only with Dexterity. I think there was a way....
user966660
  • 634
  • 1
  • 8
  • 20
0
votes
1 answer

Display first page of child file pdf in plone

I have a parent file type that is folderish, and I would like to include a thumbnail of the first page of a child pdf in the template. Can someone roughly outline the tools and process you can imagine would achieve this, so that I can investigate…
Adrian Garner
  • 5,235
  • 2
  • 23
  • 29
0
votes
1 answer

Custom template for collection

I'd like to create a page template that lists all of a particular content type where a certain value is true. I assume the best way to do this is to make a custom page template for a collection. So I follow these instructions…
Adrian Garner
  • 5,235
  • 2
  • 23
  • 29
0
votes
1 answer

how can i make a datagrid value searchable using dexterity in plone?

I have a custom content type built with dexterity and I have a datagrid on it. What I want to do is make the fields in the datagrid searchable with plone search engine. Please provide some sample if possible. im a noob. thanks
Ramon
  • 39
  • 1
0
votes
1 answer

Filter collection based on custom dexterity field

I would like to make a collection which returns my custom dexterity type if it's "featured" field is true. I have added this field to the catalog... is there anything else I need to do to be able to see it in the collection search terms?
Adrian Garner
  • 5,235
  • 2
  • 23
  • 29
0
votes
0 answers

Plone: how to create and associate (reference) items in-place with the dexterity framework

I've come across a couple use cases recently where I've wanted to create and associate (reference) items in-place. Please identify how I can achieve a "create and associate" pattern with the dexterity framework. The "create and associate" pattern…
David Bain
  • 2,439
  • 1
  • 17
  • 19
0
votes
1 answer

Error with Plone 4.1 adding package that uses plone.app.dexterity

I created a product that uses plone.app.dexterity and I needed modify the buildout.cfg file to include these dependencies: plone.app.dexterity = 1.2.1 five.intid = 1.0 plone.app.intid = 1.0 plone.supermodel = 1.1 plone.autoform = 1.2 The buildout…
Leonardo Andrade
  • 2,508
  • 2
  • 18
  • 24
0
votes
1 answer

Custom Add and Edit Template Dextertiy

'I have a package called foo.package. And I also have a content item called mydocument.py. As a standard structure, inside foo/package I have browser, content, profiles, etc. What I want to achieve is to create a customized add template for my…
user1225163
  • 127
  • 1
  • 1
  • 9
0
votes
1 answer

Can i show custom content only a user group

How and is it possible to show a custom content (created with dexterity) only a user or user group?
Erdem Güngör
  • 867
  • 5
  • 14
  • 27
0
votes
1 answer

Create custom page template based on default for dexterity type

I have created a page template for my custom dexterity type. The default view automatically shows all the fields, rather than my custom template which shows no fields. I'd like to start my template by copying the default template. I have tried…
Adrian Garner
  • 5,235
  • 2
  • 23
  • 29
0
votes
1 answer

How to set Edit Permission for Dexterity Content Type?

I have a dexterity content type and only Site Administrators should be able to edit it. For that I have created a extra permission and granted it to Site Admins. To the xml of the type I have added:
mara
  • 234
  • 1
  • 9
0
votes
2 answers

A good way to create users from Form

I must create a conference site, this conference occurred every year once. Users have to register, fill out ~10 questions and upload 2 files. In the following year the users should be able to login and correct their data. planned to…
user966660
  • 634
  • 1
  • 8
  • 20