Create a Plone private site - plone

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.

Related

Plone 5 convert site to intranet

I am using Plone 5, I have a site created that is public and I want to convert it to intranet, I have installed the Workflow addon but I can't seem to find a way to apply the intranet policy to the site I already created. Does anyone know what am I doing wrong ?
You should be able to change the Workflow under "Content Settings" in the Plone Control Panel.
URL: site.com/##content-controlpanel
then leave the top drop down menu set as "(default)" and update the "New workflow" drop down menu to the one you want.
Plone ships with an "intranet_workflow", which you can choose and apply like described in Dan's answer.
However, this workflow might be too complex, depending on your usecase.
A very simple solution to create a basic intranet is, to set a folder's state to private and grant view-permissions via the sharing-tab of the folder to the group "Authenticated users" or a group of your choice.
You'll probably want to grant add-permissions, too, and if you want users be able to edit each other's articles, grant edit-permissions, as well.
The review-permissions should better not be granted, so articles will not accidentally be published, and you might want adjust your workflow to have "private" as the initial state of articles.

Can't access WordPress dashboard unless Administrator

Our non-Administrator (Shop Manager, Editor, Author, etc) users cannot access the WordPress/Woocommerce dashboard. Administrators can access the dashboard.
I have tried logging in users as "out of the box" Shop Managers, Authors, Editors, and they get bumped back to the storefront.
I have tried disabling plugins, and using the basic woo theme to no avail.
I have tried accessing admin pages they should have access to directly, but still cannot access.
Can anyone share any suggestions for getting our non-Administrators access to the dashboard?
Many thanks in advance.
Try to disable ALL the plugins at the same time.
If it works then enable the plugins one by one to find the culprit.
If its still doesnt work make sure you have the latest version or
Wordpress/WooCommerce.
If everything is up to date and its still doesnt work then look into the functions.php file in
your theme, maybe there is some script that causes the problem..
If nothing of these has worked you could always apply a patch until you find the real source of the problem, here is some suggestions:
Do a temporary quick fix by using the user_has_cap filter
Add capabilties to user roles so the will be able to access like an administratior see the add_cap() function
If you have installed Ultimate Member plugin:
Go to User Roles page
Press Edit on the role that you want to access the dashboard
Check: Can access wp-admin?
Press Update role
Then test; it should work then

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.

Drupal 7 user registration: creating mandatory gender/city fields

I'm a Drupal newbie, but have successfully installed it at a CentOS 5.5 Linux, PostgreSQL 8.4.7, PHP 5.3 machine.
I've chosen minimal installation and then enabled following modules: Block, Image, Locale, OpenID (hope to add Google accounts later...) and Search. The User module etc. are enabled by default anyway.
My problem is:
I don't know how to add Gender/City fields and make them mandatory.
As a SPAM-fighting measure at my old phpBB 3 site I have a mandatory question for new users about their gender: Robot/Male/Female and the first answer is default and prevents the new user from registering.
Is it possible to do the same in Drupal 7?
And I hope it is doable without installing any additional modules as the stock install is easier to update. (That is what I was doing with my old phpBB site - with no mods installed).
Thank you for your answers! Alex
UPDATE:
Here is my Field module screenshot, does it look ok?
Maybe my problem is that List is shown as disabled?
First, note that there is a huge difference between Drupal modules and phpBB mods. Drupal provides API's which allows modules to integrate with Drupal without changing any code. You can just download them into a folder, enable and they are running.
And yes, what you are trying to do is possible without any additional modules. Just go to admin/config/people/accounts/fields, add a Gender field of Type "List (text)" (If that is not available, you might need to enable it, but it part of Drupal core), then, enter the allowed values and on the second page, check the "required" and "shown on registration form" checkboxes and you are good to go.

Drupal wrongly allowing access for anonymous users to a single edit page

My Drupal / ubercart install has a bizarre issue. Anonymous users can access an edit page /node/44/edit for s SINGLE node only - an ubercart product. I have created a new version of the node, which does not have the issue. The tabs (view / edit) are also available on the product page to anonymous users. The issue became clear when the page was edited by a spam bot.
Is there any way I can output the decision making process which Drupal makes to the screen? For example can I output the variables to the screen which Drupal uses to make the decision about whether the user has access to a given URL or not?
Thanks in advance.
There may be a better way, but to start, you could create a custom module that implements hook_menu_alter, then dump the contents of the $items array, to see the access callback associated with /node/44/edit or /node/%/edit.
One thing to try would be to "rebuild node permissions" You do this from the admin/content/node-settings page. It might be as simple as the permissions being jacked up, which is rare but does happen sometimes.

Resources