I have created iframe Dashlet and now I want that all users should able to see it. How can I set its visibility to all users?
You need to copy the user preferences to all the users. You will need to create a script.
To add a new default dashlet you should edit _PATH_TO_YOUR_SUGAR_/custom/modules/Home/dashlets.php and add your new dashlet in the $defaultDashlets variable like this:
$defaultDashlets = array(
'MyCallsDashlet'=>'Calls',
'MyMeetingsDashlet'=>'Meetings',
'MyOpportunitiesDashlet'=>'Opportunities',
'MyAccountsDashlet'=>'Accounts',
'MyLeadsDashlet'=>'Leads',
'MyCustomDashletName' => 'Custom Dashlet Name'
);
Please take in consideration, that it will be default for all NEW users, that register in the system. In case you want to add it to existing user Home dashboards you should refresh/reset their Home dashboard via Admin -> User Management -> -select user- -> Edit _> Reset Homepage ( See image )
Related
I'm trying to redirect the users to home page after to log in. I've already added default target URL in the web part also in the template, I tried also by code
else if (!String.IsNullOrEmpty(DefaultTargetUrl))
{
redirectUrl = ResolveUrl("~/Compliance.aspx");
}
I also add a new domain alias with a default alias path but nothing is working.
Instead of using ~/admin as the login page, create your own ~/login page, that can be redirected to anywhere. If you use the default ~/admin it result to /CMSPages/logon.aspx?ReturnUrl=%2fKentico11%2fAdmin%2fcmsadministration.aspx which return URL is the Admin/cmsadministration.aspx
In my website, I have integrated HybidAuth for Facebook Login authentication. I have installed HybridAuth using composer and integrated all required codes as per the document. The login authentication is working and I'm getting the response too. But now it is redirecting to facebook login page in full screen, to overcome this they have a display setting which includes these different settings "page, popup, iframe, touch or wap".
In this, "page" is the default. When I change it to "popup" or "iframe" it is not working.
My Reference Document: https://hybridauth.github.io/hybridauth/userguide/IDProvider_info_Facebook.html
My Code sample:
$configArray = array(
"base_url" => "<< my base url >>",
"providers" => array (
"Facebook" => array (
"enabled" => true,
"keys" => array ( "id" => "<< my app ID >>", "secret" => "<< my app secret key >>" ),
"scope" => ['email', 'user_birthday', 'user_hometown'],
"display" => "popup"
)
)
);
I have installed the latest version and also included required files in my program. I need some help to find a solution to this issue, so I can have the login screen in a pop-up or in an iframe.
Thanks in advance.
Your html button leads to calling hybridauth decides how large the popup window is.
check the tutorial here
I have also posted this question in Github and received the answer for this, Please check this link https://github.com/hybridauth/hybridauth/issues/832
The display option is set to be not applicable in the Hybrid Auth implementation. This option can be used only when we use Facebook SDK for JavaScript.
SO the author removed the Display setting from the documentation and updated the document with this setting.
Thanks for all your answers and helps.
This is driving me cray. I am trying to retrieve the Facebook id after logging in. I am assuming I have to use the attribute mapping in order to achieve this? Any thoughts?
Heyo, Just thought I'd reply here too in case anyone else has questions about this.
I looked at the Facebook scopes reference page, and it says that public_profile is the scope that contains the user ID. So, I went to my Facebook Directory, and under 'Provider Configuration' on the 'Scopes' tab, I added public_profile. Under the 'Attribute Mappings' tab, I added id as the Attribute Name and set customData.id as the 'Stormpath Field Name'.
When users log in to my web app using their Facebook credentials, their ID is saved directly to their account's customData:
{
"id": "1260737122323"
}
To grab this data from the Account's customData and display it on the profile page of the React-Express sample project, you need to do two things:
Ensure that the web.me.expand.customData config is set to true in order to have the custom data fields populated,
Add a new field on the profile page with name="customData.id", like this:
This is covered in the docs under the Access custom data fields by prefixing field names with customData section.
The documentation of these Facebook scopes is a little confusing, the properties on "public_profile" are actually available on the root of the Facebook user object, so in Stormpath you want to map id to customData.public_profile.id.
In identityServer3 using the default embedded login page I have set the SiteName to a custom value just fine.
I would like to have the default login page display the name of the client application that routed them to the login page... Is that possible or will I need to role my own page?
var options = new IdentityServerOptions
{
SiteName = "My Authenitcation Services",
SigningCertificate = SigningCertificate,
Factory = factory
};
To show a custom application name and such you need to override the partial view. IdentityServer3 Sample: EmbeddedAssetsViewService shows how to do this exactly.
Basicly...
In your identityServer Application add a templates folder in the site.
Copy their _login.html file and put inside this folder.
In your IdentityServerOptions set the SiteName = "What Ever you want",
The build and run your client application that pulls up the login page.
You should be good to go...
Finding the sample code example can be a bit difficult...
Where to download the sample code: [ link ]
Here is the sample code location in the samples download:
..\IdentityServer3.Samples-master\source\DefaultViewService\EmbeddedAssetsViewService
I want to create signup page in SugarCRM. after entering their details in the signup page all details have to insert in the SugarCRM database.
I written signup form using PHP but I don't know how to integrate it with SugarCRM. Kindly help me.
Tried Campaigns module but no use of this for my requirement.
Based on your question and comment, I understand that you want to have a web form that creates users in your SugarCRM system. This can be mostly done using the API, although the API doesn't seem to handle user passwords very well. I would approach it this way:
<?php
// leverage Asa Kusuma's excellent SugarCRM API Wrapper for PHP
$sugar = new \Asakusuma\SugarWrapper\Rest;
$sugar->setUrl('https://my.sugarsystem.com/service/v2/rest.php');
$sugar->setUsername('admin'); // ensure this user has the ability to create and manage users
$sugar->setPassword('password');
$sugar->connect();
$user_data = array(
'user_name' => 'Sharmila',
'first_name' => 'Sharmila',
'last_name' => 'Smith',
'email1' => 'ssmith#whatever.com',
'is_admin' => '0',
'status' => 'Active',
'employee_status' => 'Active',
);
$new_user_id = $sugar->set('Users',$user_data);
You'll then need a mechanism to email this new user a link to the login page with instructions to click "Forgot Password?" and have a password re-set for them. They will not be able to log in until they've reset their password. Alternatively, you could create a logic hook or API extension to save the password via this API call or another one.