Is there any way to add extra column to Permission tab in Configuration setting of Portlet? I have a portlet which allows adding and editing of some documents. So i need to set some configuration such as Allow Add / Edit to user based on their roles.
I read about "Implementing Configurable Portlet Preferences" in the documentation section of Liferay. It adds an extra setup tab where we can specify some settings. However if i need to add some extra columns/parameters in existing tab, i am not sure how to do it. If you have any ideas, please let me know.
Thank you
What I understand is you are looking for additional permissions in the permissions tab. In order to achieve the same check out - https://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/security-and-permissions
Let me know in case of any doubts.
Related
I need a hyperlink in OTRS Ticket.
How can i add a hyperlink for a particular ticket in its right pane under ticket information of OTRS.
This is needed to link with other system.
You can add the link by modifying the template in Kernel/Output/HTML/Templates/Standard/AgentTicketZoom/TicketInformation.tt
But please read the documentation on creating your own 'themes' for how to modify them while keeping your system upgradeable:
http://otrs.github.io/doc/manual/admin/stable/en/html/themes.html
Also, if the link is using data in a Dynamic Field you can do it in the Dynamic Field configuration and you don't need to modify the template at all, see the "Show link" option here:
http://otrs.github.io/doc/manual/admin/stable/en/html/dynamicfields.html#dynamicfields-configuration-text
And if all the tickets you want the link to appear in have customer records, you can also use this config option and modify it: http://otrs.github.io/doc/manual/admin/stable/en/html/ConfigReference_Framework.html#ConfigReference_Framework:Frontend::Customer:Frontend::CustomerUser::Item_2-Google
I cannot seem to get the Configuration Button to appear in the Top right hand corner to amend Rule contents (I can Deactivate or Change Severity but would like to be able to change contents also).
I have tried this both using the default admin/admin and my own user both of which have the Global Permission 'Administer Quality Profile and Gates' set for User and Group.
This has been tried with both the In-Built Profile (Sonar way) and my own created from a copy of 'Sonar Way'.
We are using Version 4.5.2 but the same issues seem to exist with Version 5.1 which I have also downloaded.
Don't know whether this is something stupid I am doing, a Plug-In required or possibly a Paid Option but any help or information would be gratefully received as all the Documentation and YouTube vids seem to suggest we are configured correctly and should be able to do this.
Regards,
Dave.
There's no link named "Configuration" in version 4.5. I suppose you mix management of "Quality Profiles", which requires the permission "Administer Quality Profiles and Gates" and global management console, named "Settings", which requires the permission "Administer System".
Screenshot: https://www.evernote.com/l/APs76rLwBZJHEaI7a5C7di--y3peIf42BiY
How can I open few projects in left work area in PhpStorm? I need to quick switch between projects.
If you want to open more than one project in this way (and by this I mean so they have their own different settings), then currently it is not possible.
http://youtrack.jetbrains.com/issue/WI-15187 -- vote/star/comment to get notified on progress.
If you need to include files from those projects for reference purposes (to see how you have done it there, to copy some code from there etc) -- you can include them under "External Libraries" -- Settings | PHP | Include paths. Files included this way are protected from modifications.
If you need to modify those files ... you can add them into actual project as Additional Content Root (Settings | Directories| Add Content Root) -- such folders will be treated as part of the actual project with no separate settings.
Other than that -- Alt + Tab (or whatever the shortcut is on your OS) to switch between different PhpStorm windows (each project is opened in separate window/frame).
This is a right on time answer.
It is possible to quick switch between project by adding a keyboard shortcut to the "manage project" menu.
To do just that, go to Settings > Keymap and search for "Manage Projects". Then add it the keyboard shortcut you desire and you're all set.
Hope this will help someone looking for an answer like I did.
As LazyOne said, you can add paths to your project from Setting | PHP | Include paths or from the useful keystroke F4.
But I'd like to also share how I organise my projects, I think when you create a project, you should not open a new window but instead open it in the same window.
This way you don't get confused between the different opened windows.
In settings you can assign a keystroke to Reopen recent projects. I then use ctrl + shift + R but it is up for you to chose the keystroke you like.
Hope this will help you as I struggled as well to find a way to manage all my current projects.
Those are asked during the installation, but are not anywhere in config files\tables to change afterwards
EDIT:
The changelog states the following:
[#MODX-760], [#MODX-1080], [#MODX-1528] Added setup option to set new_file_permissions and new_folder_permissions in welcome view
[#MODX-760], [#MODX-1528] Removed new_file_permissions and new_folder_permissions system settings from setup
Seems kinda weird to me to do that... I am still in need to change them, though.
It appears that these should be in your MODX System Settings although I wasn't able to locate them in any of my own MODX installs (all Revo 2.1+). There's a chance they might be redundant or are for some reason not being properly created during installation (in which case it might be an installer bug).
You might be able to override them by adding those settings, like so:
Key: new_folder_permissions
Value: 0755
Do that and then try creating a new folder using the File Manager. Let us know if the correct permissions are then being used. If so I'll look at opening up a bug report for the installer.
They are not in System Settings, as they default to the PHP umask values, as they should. If you want to override them, you can do so by adding the settings "new_file_permissions" or "new_folder_permissions" to your System Settings.
apache/webuser needs to write to:
core/cache
core/export
core/config/config.inc.php [change back after install]
core/packages
core/components
assets/components
EDIT Sorry, take a look here: core/model/modx/processors/system/filesys/folder/create.php
they appear to be hard coded in that file.
I went to the address of zope manage:
localhost:8000/manage
Entered my plone_site named 'foo', than clicked on the portal_types link.
Went through the content type named 'MyContentType', and there clicked on the tab Permissions.
Changed some permissions to assign than to some roles, and so on...
Now, I went to the portal_setup to try to export this changes, but didn't find an option to export that. I only found Role/Permissions, which is responsible for export changes on the 'main' tab Security, under the root of the plone_site.
So, how can I export my configuration on the permissions of specified content type under the portal_type tool?
What you've described is changing access to the Factory Type Information (FTI) of MyContentType, which is probably not what you want.
Assuming you have a custom permission 'Add MyContentType' controlling who can add instances of that type, then you can assign that permission to the right roles at the Plone site object level. You should do that with the rolemap.xml GenericSetup file. The 'Role/Permission Map' step you've found in portal_setup will export a rolemap.xml for you.
If you want more finegrained control than that, you'll need to give MyContentType a workflow. Have a look at how your other types are setup in portal_workflow. Make your settings change with workflows.xml.
The Import/Export button in the ZMI can be useful to move pieces of content between matching (i.e. identical) Plone sites in ZEXP files, but generally I'd steer clear. The XML import/export there was broken last time I checked.
Well, as nobody answered, I will:
On the ZMI, on the plone_types page, there's an option (a button) on the bottom of the page, to Import/Export changes.
The solution is click that button.
Although it's not possible to export the changes in a .xml format, you still can export for .zexp format (if that fixes for you).
For me it was not sufficient. So I started working with portal_workflow's permissions, because workflow permissions are preferred to other permissions.