about security settings of plone control panel - plone

There are lot of configuration options on plone control panel, for example "security settings".
I need to pre-set for checking "enable user folders " option, it should be immediately effect when a plone site created.
How do I configure control panel settings from a generic setup profile?

It's often a good idea to create a policy product that'll be installed to initialize your site. In your case, your policy product would only have a GS profile.
To get what you're asking, the easiest way would be to simply, make the change on a vallina plone site, then export the GS settings of your site and then use that in your product.
To export the current settings for your site:
go to the zmi(append /manage onto site url)
go to portal_setup
go to export tab
scroll down and click to export all profiles

You import a changed version of the "controlpanel.xml" GenericSetup file. Some details on the controlpanel.xml file are at http://plone.org/documentation/manual/developer-manual/generic-setup/reference/control-panel, and the general procedure for working with GenericSetup is at http://plone.org/documentation/manual/developer-manual/generic-setup. You also may find http://collective-docs.readthedocs.org/en/latest/components/genericsetup.html helpful.

Related

How to translate all messages in the Auth0 Wordpress plugin?

I found how to translate most of the Lock 10 widget by setting the 'Extra settings' under 'Advanced' tab to e.g. the following:
{"language":"nl"}
That works fine for most of the Lock widget, but not for everything, e.g.
"Login with WordPress username"
"There was a problem with your log in"
and probably some more.
Is there some other setting I would need to change?
The text "Login with WordPress username" belongs to the Auth0 Wordpress plugin itself and not the Auth0 Lock widget so that's why you won't see any changes despite changing the Lock language setting; the plugin does not currently support I18N.
If you really need to display that option you can submit an improvement request to support I18N on the plugin itself; you can use the GitHub repository (https://github.com/auth0/wp-auth0) to submit the issue. Additionally, if you don't really require that option to be enabled you can hide the text by disabling the option WordPress login enabled in the plugin settings.
Regarding the other piece of text you mentioned I wasn't able to track the source of it, but if it comes from Lock you should also try to use the languageDictionary; see the following links for additional information on this:
Lock Customization - languageDisctionary
Lock Customization - Error Messages
plugins usually come with .po files that contain the plugin strings in the default language, one way to translate the default messages a plugin will show is using Locotranslate
install locotranslate plugin
then go to locotranslate > plugins> choose your plugin> choose a language you want to translate to

Only site administrators should be able to set default display view of folders on Plone 4.3

All logged-in members of my plone site have the permission to edit, create and publish content. Unfortunately, they are also able to change the default display view of a folder. This leads to a lot of problems as the site members sometimes - accidentically - change to a view template that a folder is not suitable for.
How can I change plone the way that only role administrator is able to set the default view of all folders? Normal site members should not be able.
Since I trust my members something like a JS+CSS solution that hides the display menu for everybody except site administrators would be acceptable, too.
The permission you are looking for is called Modify view template. All roles with this permission can change the template. If your Workflow manages the permission, give it only to the Administrators.
If your Workflow does not manage the permission you can change it globally by change the security configuration on the plone root.
Goto: http://plonesite/manage_access (Security-tab in ZMI)
Search for Modify view template.
Change the configuration. In your case only allow Administrator to change the view template.

Registration page is missing in a BuddyPress website

I am a newbie to word press and buddy press.For learning purpose I have created an account in a free word press hosting site and installed buddy press manually.But in my buddy press website when I am clicking on register new user link its showing a "Page not found" error message.
I have checked the buddy press folder and found a registration folder inside it.Can anyone please suggest a solution for this problem. Sorry for my bad English.
a free word press hosting site....
That's the problem. Free hosting sites are crippled and typically don't allow mod_rewrite and have other reduced functions that will impact anything more than a bare-bones WP install. Get a real hosting account: Recommended WordPress Web Hosting
This may not apply to you if the free host problem was actually the problem but the way to create a custom registration page is as follows..
In wordpress create a new page. Name it anything you like, let's say 'Register' and then click Publish Don't alter it in any other way.
A. In the wordpress admin panel go to settings -> buddypress -> pages.
B. Under Registration -> Register choose 'Register' (this is the blank page you created of the same name.)
Get a copy of register.php from bp-legacy (the default BP templates location)
/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/register.php
Rename it to index-register.php and copy it to this location..
/wp-content/themes/YOURTHEME/buddypress/members/index-register.php
Your registration page will be at your.website/register/ Check that it is working (and of course change your.website to your actual domain name)
If you've followed these steps properly you will know wether your host is the problem.
You can customize index-register.php to suit your needs.

How do I add a new user in a ScrewTurn wiki?

We have an internal development wiki setup that uses ScrewTurn, but I am struggling with the most basic of tasks which is to add new users or edit existing ones. This was setup by a former colleague that is no longer employed at the company and no one has any experience of the administration side of it.
Based on the information available this should be a very simple task, however the "Accounts" tab described and pictured in the previous link simply does not exist in the administration section of our wiki.
The tabs we have are Admin Home, User Groups, Wiki Pages, Categories, Snippets/Templates, Nav. Paths, Content Editing, System Log, Providers and Configuration.
We have 8 registered users, all set as administrators (confirmed in the front end and databased) and these are set granted as having full control.
So what am I missing? Can the "Accounts" section be hidden? Are we using a different version (the listed version is 3.0.5.600 which reports itself to be up to date)?
It looks simple enough to setup users in the database, but I'd like to be able to use the front end.
Select Administrators under User Groups and grant full control to your admins and uncheck unwanted restrictions under "Deny".
If you are cannot access the User Groups tab, try to login as super administrator to verify the permissions of your Administrators group.
To login as super administrator, add this to your web.config under <appSettings>:
<add key="MasterPassword" value="YourSecretPasswordHere" />
Then login with the user admin and the password you set.
And make sure to remove that setting after you sort things out.
The admin menu was probably modified. Try going directly to the page AdminUsers.aspx (so something like "http://yourwikidomain.com/AdminUsers.aspx").
To fix the menu, download the Screwturn install files from the web site (http://www.screwturn.eu/Download.ashx) and copy the "Admin.master" page to your site. You may want to compare them first to see what changes were made.

Create a Plone private site

I should create a private plone site.
I tried to read both the howto on plone.org
http://plone.org/documentation/kb/creating-private-plone-site
both of the responses already made an identical request for this channel
What is the best way to create a Plone private site
but I have not found a solution.
I do not want to use (if possible) as a product http://pypi.python.org/pypi/iw.rejectanonymous but I'd only change the workflow or permissions.
I thought "enough" to set as the default workflow "intranet_workflow" where state internally_published permits "View" and "Access contents information" only to authenticated but, so 'doing, connect to my site only see a blank page (I tried it on a basic install version 4.1.2) and the user isn't redirect to the login form.
Thanks for any help
Alex
it "just works"(TM) like this:
create a new plone site
go to /##types-controlpane and set the intrantet workflow as default workflow
and do not forget to apply changes.
after that, visiting the portal will redirect unauthenticated users to the login_form
(i tested it with a plain plone4.1.3 site)
no idea why you just see a blank page. any add-ons or themes installed?
For Plone 5 I followd fRiSi answer but I haven't found /##types-controlpane, however there's a way to get to that menu through ZMI.
Go to /<plone_site>/portal_workflow then under Workflows by type in (Default) field replace simple_publication_workflow with intranet_folder_worflow.
The list of available workflows can be found under /<plone_site>/portal_workflow/manage_main
Then click on Change and Update Security Settings. This should update workflow for all objects on the Plone site.

Resources