Disabling My Public Pages feature in Liferay - liferay

I am using Liferay 6.1.1 CE.
How can i disable add,manage and edit control (Dockbar) of a user's "My Public Pages" and "My Private Pages"?
Please find me some ideas?

http://vir-liferay.blogspot.in/2012/05/how-to-configure-dockbar-based-on-roles.html
this works for me....I fix it

try this thing. write this code in your portal-ext.properties
layout.user.public.layouts.enabled=false
layout.user.public.layouts.modifiable=false
layout.user.public.layouts.auto.create=false
similarly you found other options also.

I have the same problem and I looked for disable access to public and private pages.
The solution is to add these lines in your portal-ext.properties :
To disable access to private pages :
layout.user.private.layouts.enabled=false
layout.user.private.layouts.modifiable=false
layout.user.private.layouts.auto.create=false
to disable public pages :
layout.user.public.layouts.enabled=false
layout.user.public.layouts.modifiable=false
layout.user.public.layouts.auto.create=false
P.S : That's disable also the access to default portlets (Directory user list)
http://yoursite/web/yourusername/home
http://yoursite/user/yourusername/home

Related

How add new option at sulu administration interface?

What steps should I follow to add a new option to the left menu of the SULU administration panel? Following the documentation I did not succeed.
To extend the admin menu you need to create a new "Admin" class in your src/Admin folder and extend from the Sulu Admin class and then:
<?php
namespace App\Admin;
use Sulu\Bundle\AdminBundle\Admin\Admin;
use Sulu\Bundle\AdminBundle\Admin\Navigation\NavigationItemCollection;
use Sulu\Bundle\AdminBundle\Admin\View\ViewCollection;
class EventAdmin extends Admin
{
const EVENT_LIST_VIEW = 'app.events_list';
public function configureNavigationItems(NavigationItemCollection $navigationItemCollection): void
{
$eventNavigationItem = new NavigationItem('app.events');
$eventNavigationItem->setView(static::EVENT_LIST_VIEW);
$eventNavigationItem->setIcon('su-calendar');
$eventNavigationItem->setPosition(30);
$navigationItemCollection->add($eventNavigationItem);
}
}
See more in the documentation here https://docs.sulu.io/en/2.2/book/extend-admin.html and I really can recommend to do https://github.com/sulu/sulu-workshop first to get into sulu.
If you get any error you should show the error instead of saying you tried and it did not work. Look for error in your browser dev tools console, network tab, symfony log or webservers log.

disable Thunderbird 78's "Attach my Public Key"

Is there a config editor option to disable automatically attaching my public OpenPGP key (Options → Attach My Public Key) in Thunderbird 78 (which embedded Enigmail addon functionality into the email program)?
Currently, the Option to attach your public key can only be toggled on a per-mail basis and is set to on by default.
There is an issue on bugzilla, but currently there is no fix and I don't have any information if/when this feature will be added.
Update:
there is now an option to configure this in the config editor, for details look at: https://bugzilla.mozilla.org/show_bug.cgi?id=1654950#c55

Joomla configuration for livesite and admin

I installed Joomla in peterrisman.com/PilotMarketingStrategy-J/
I successfully built a new website
So far, so good.
I pointed pilotmarketingstrategy.com to peterrisman.com/PilotMarketingStrategy-J/
I updated .htaccess with RewriteBase /
I updated configuration.php with public $live_site = 'http:// pilotmarketingstrategy.com'
Viola! the site is live... BUT
I can't log into the admin from pilotmarketingstrategy.com/admin/index.php - it doesn't recognize my ID or p/w.
In order for me to log into the admin, I have to change configuration.php back to public $live_site = 'http:// peterrisman.com/PilotMarketingStrategy-J/'. When I'm finished, I have to change back to public $live_site = 'http:// pilotmarketingstrategy.com'
This CAN'T be right. Does anyone know how to properly configure Joomla so that both the live site and admin share the same domain?
Try setting the live_site parameter to null so the line in your configuration.php file should look like this:
public $live_site = '';
Recent Joomla installs rarely need this parameter to be set.
Here is a great answer how the paramter live_site works. Maybe this gives you the answer for your Problem.

hybris CMS Cockpit: preview doesn't work

I've just set up a new and clean hybris instance, created a b2c accelerator storefront using ant modulegen and the receipe b2c_acc - and of course I initialized my system after those steps. Everything works fine, but the CMS Cockpit preview.
Every time I try to open the preview of a page within the CMS Cockpit, I receive a HTTP 500 error which is being caused by a NullPointerException within this method of the DefaultUrlEncoderService class:
#Override
public Collection<String> getEncodingAttributesForSite()
{
return getCmsSiteService().getCurrentSite().getUrlEncodingAttributes();
}
The reason is that getCurrentSite() does not return any website, though the page I try to open (e.g. the Homepage) has been assigned to the "apparel-de" website.
Does anybody have a clue what might be the issue?
Did I miss anything?
change the location protocol from http to https:
https://localhost:9002/cmscockpit/index.zul

Sharepoint get User information

I have MOSS server and users authorization is going trough AD.
I want to programmaticaly get some current user information, like e-mail, phome number.
I made the following steps:
1) create dll with [assembly: AllowPartiallyTrustedCallers]
2) i have the class PhoneBookCL that inherits System.Web.UI.WebControls.WebParts.WebPart
and I try to override CreateChildControls() for testing;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.Office.Server;
using Microsoft.Office.Server.UserProfiles;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.Portal;
public class PhoneBookCL : WebPart
{
SPUser currentUser = null;
protected override void CreateChildControls()
{
try
{
SPWeb web = SPControl.GetContextWeb(Context);
currentUser = web.CurrentUser;
}
catch (Exception exp) { value = exp.Message; }
}
}
3) assigned strong name to dll, then add SafeControl to web.config:
4) dll -> to \Bin directory, added this WebPart to SP webparts collection,
added the webpart to the new Page.
Refreshing the page going to the exception: unexpected exception.
If I delete
"SPWeb web = SPControl.GetContextWeb(Context);
currentUser = web.CurrentUser;"
then all works great.
I can create Label and change its Text property and other things.
Also I tried to inherit from Microsoft.SharePoint.WebControls.WebPart, which actually inherit UI...WebPart, so the result is the same.
Maybe there is some security issue?
This problem occurs as you are deploying dll to bin. I assume your web.config has trust level as WSS_minimal . Minimal trust will not permit accessing object model.
Therefore , you have the following options:
Deploy the webpart using a wsp with custom code access security. This is slightly tedious.
Change the trust level in web.config to Full.
Deploy the dll to GAC.
From a best practices perspective, deploying the dll to bin with custom code access security will be the best option. But if you dont have security restrictions, you can look at deploying to GAC to keep things simpler.
Reference : http://msdn.microsoft.com/en-us/library/ee909485%28office.12%29.aspx
Regards,
Faiz

Resources