Content Editor toolbar is not displaying in ADX Portal - javascript

What could be the reason why the Content Editor Toolbar of ADX Portal is not displaying, We recently published our code but then the editor toolbar is not displaying, we reverted our codes to the previous one but the same issue still occurs, while inspecting the html element the class "yui-panel-container" is there but the visibility is hidden, we change the visibility of it to visible but still there's no content.
What should be done to fix this issue?
Thanks.

If you are having the issue even after reverting your code, it makes me believe your web page access rules were changed.You must change permissions to grant on the page you want the content editor to show up.

In Administrator Web Role, make sure the target contacts are included.
Also, make sure Grant Change to Administrators is included in Web Page Access Control Rules.
Finally, in Grant Change to Administrators, make sure all required fields are filled in.

hi associate a web role to the user and then if you have created any business flow for your form in CRM , make sure to remove it and try again.

Related

Remove "Sign-in as NAME" from Google Sign-in

Is there a way to remove the "Sign-in as (NAME)" option on the new Google Sign-in? I can't find a way to re-style or remove the "Sign-in as (NAME)" button.
My preference would be to have users see the "Sign in with Google" button each time, but it would also be acceptable to restyle this so that it matches like in the first image.
I set auto-select to false and thought that would solve it but it didn't.
I was going at this problem entirely the wrong way. I got the functionality I wanted by using running window.google.accounts.id.prompt() through an #click on a custom button.
Previously, I was using window.google.accounts.id.renderButton(). However, renderButton() will always create an iframe after you've logged in, even if you style the iframe appropriately, Google's content inside the iframe cannot be styled.

How do you create a Squarespace form block in Developer Mode?

Does anyone know how to create a form block in
Developer Mode in Squarespace? I want to create a form with a Squarespace id and built in javascript validation and submit behavior but can't use the GUI since I'm in Developer Mode. I haven't been able to find any documentation on it so far. Any help would be appreciatated!
Developer Mode only gives you access to the overall site template itself, but does not give you access to you at the "block level". It does, however, give you access at the "block field level".
To add a Squarespace Form Block in Developer Mode, you'd add a Squarespace Block Field. Then, you must push your changes to the live site. Having done that, you can log into the live site and add Blocks to the Block Field as needed using the GUI. In your case, that may be adding just a single Form Block.
The other alternative is, of course, to add your own form code outside of the GUI, using your own HTML, CSS, and JavaScript. I'm guessing that is not what you're looking to do here, though.
With Block Field IDs, keep in mind that you can assign it a static ID which would allow you to reuse it across any page on the site. Or you can assign it an ID based on the Collection ID, therefore making the Block Field unique on every page that loads the Block Field.

Add custom button to gmail inbox with chrome extension

I'm trying to develop a chrome extension to interact with an email inside gmail inbox. Currently I'm using page action to show the icon of the extension and when user clicks on the icon, the plugin assumes the opened page is an email inside gmail inbox and it interacts with the email.
But it seems to be better if I can add a button to gmail web interface instead of the page action icon like below (notice the add button added by a plugin called todoist).
One way to do this is to observe html in other buttons provided by gmail,
and injecting a new button with the content script. But the classes used in elements in gmail seems to be have no verbal meaning and not sure the classes change dynamically. For example to define an icon, the html is like below.
<div class="ase T-I-J3 J-J5-Ji"></div>
Injecting may not work if the classes are changing dynamically. Also the button structure may change if the user changes different themes. (Or may be they are always the same and I can continue injecting)
Is there a standard way to do this? Or else, a stable way to inject the button?
Note: Contextual gadgets is not a solution as I want to get the attachment.
You should use gmail.js add_toolbar_button method using this you can add a custom button in Gmail inbox.
gmail.tools.add_toolbar_button('content_html', function() {
// Code here
}, 'Custom Style Classes');
There are various helper methods through this you can easily build an extension top on Gmail Inbox.
You can also use InboxSDK to inject buttons in Gmail.
Code snippet:
InboxSDK.load(1, 'YOUR_APP_ID_HERE').then(function(sdk){
sdk.Compose.registerComposeViewHandler(function(composeView){
console.log("compose view exists!");
});
});
I know this question is 4 years old but this tool could be useful for someone who is looking for a solution to inject buttons in gmail.

Hide WSS 3.0 Webpart Using JavaScript

I am using WSS 3.0 in my application. I am displaying a List as a DataView Webpart. My objective here is to make this webpart visible to a selected group of individuals. As there is no option for Target Audience in WSS 3.0, I went to edit Permissions for List and gave Read permissions only to selected users. This doesn't hide the web part from the page, rather shows an Access Denied message to other users.
Access denied. You do not have permission to perform this action or access this resource.
As I said, I want to hide this webpart, as in make it invisible on the web page from other users who do not have permissions to view it. As this message will be displayed only to those users who do not have permissions!, my approach is to search for the above message in the html and identify and hide the parentnode, thereby hiding the webpart.
I am not quite sure how to do this. Any ideas? Thanks in advance!
I'm going to assume you're in a situation where you can add additional web parts to the page and not trying to add JavaScript to the DataView Web Part directly. My suggestion won't work on a separate page if a Designer adds another view of this list.
Upload a blank .js file to your Site Assets. Add a Content Editor Web Part to your page, point it at that file. Add JQuery from a provider or host it yourself, adding the reference in your file. From there, you have 3 directions in which to work: first, explore the web part with Internet Explorer's F12 Developer Tools, keeping a particular eye on divs and tables with good unique ids, names, or classes that would solve your problem if hidden. Also keep an eye on the id of the div or table or cell or whatever that contains your access denied text. Second, (assuming you're new to JQuery) do some JQuery tutorials and then start playing with selecting the above items and, say, changing their background color. Once you have both of those, you're 90% there: (try to) select the object that would contain the access denied text, and if the innerHTML is present and equals that string, then set display:none for the div or tables to hide your web part. The third tool you have is editing the page directly with SharePoint Designer: you can toss a div with an id of your choosing around any xsl:template, which might help in your JQuery selecting.
I'm sorry I can't give you the specific code, since I'm not in a position to test it. If that changes, I'll try and give a more detailed response.
Old, misdirected answer: Do either of the answers here work for you? Alternatively, this answer has some great resources to solve your problem. Just change the message to an empty string.
Thanks Aron :D
I found the id for the webpart and hard coded it. It provided the solution, but I was hoping to programmatically fetch the id instead by searching the innerhtml, as I have more than one web parts that have to be hidden.
I found a partial solution here:
Hide SharePoint web part using javascript onclick method
I put a CEWP on the page and added the following script in it:
<script>
function hide()
{
var content = document.getElementById("webpartID").innerHTML;
var n = content.search("Access denied. You do not have permission to perform this action or access this resource");
if(n!=-1)
{ document.getElementById("webpartID").style.display="none";
}
}
_spbodyonloadfunctionnames.push("hide");
</script>
In my case, I picked up the webpart id from the aspx page or view source for the page.

block web parts in sharepoint from certain users

I'm looking to see if it's possible to block certain data in web parts from loading or showing for certain users?
I have a SharePoint page that was written in asp.net and JavaScript. What i have is a page that runs several queries and displays them as separate web parts. I would like to be able to block certain web parts that show financial information to only show for the managers group.
I am able to just hide the web part from showing at all but that isn't necessarily helpful.
any help at all would be greatly appreciated.
thank you!
I would create a hidden div that contains the users access level (or I guess you could use an array to hold / define unique users who should or shouldnt be able to to 'see' the parts)... then just write a function that reads the hidden field and based on the user who is viewing the page, show or hide the content based on the id of the web content element / part.
I would probably try to do this on the server side though before the content in question is sent to the dom.
good luck
A possible solution could be is to hide the webparts using audiences. Edit the page, edit the webpart, navigate to the properties, in the Advanced section you'll find something called "Target Audiences". Either use an existing audience (which you can create in the user profile service application) or enter a SharePoint group name (like the site members, of something alike 'managers'). Members of that group/audience will see the webpart then. Other users will not see the webpart.
Notice that this is not a security measurement. E.g. it's just preventing the rendering of the webpart, it's not preventing users from accessing the data if they know where it comes from.
Read more here: http://office.microsoft.com/en-us/sharepoint-server-help/target-content-to-specific-audiences-HA010169053.aspx

Categories

Resources