I'm trying to only enable my custom ribbon button when an item is selected, but it looks like you can't do JavaScript in O365 from everything that I've read. Is this true? Is there no way to enable/disable a button based on the item(s) selected?
You can use custom Page components to do that. There's an execellent article in DIWUG magazine issue 6 on how to do it. http://www.diwug.nl/DIWUG_SharePoint_eMagazine6.pdf
Related
beginner question for sitecore about settings the right.
So I have an item is open in the page editor.
The renderings on the page has bunch of icons on the ribbon. One of them called 'select the parent element (element name)'.
In my case when I click on it, I am presented with the placeholder with button 'add here' and the ribbon with some component buttons that a user can use to add the controls.
So, QUESTION:
"how I add access to the button on that ribbon for certain role? Where do I set it up? "
For some certain role that placeholder's ribbon is completely empty, including there is no button 'select the parent element' even though
i know there is a parent element.
thank you very much for help,
HF
Here are the screenshots (no icons on the placeholder ribbon, and the user's rights:
enter image description here
And here is how that looks for the admin:
All the settings for the Page Editor are held in the Core database. So in the Sitecore Desktop, switch to the core database and open up the Content Editor.
Navigate to : /sitecore/content/Applications/WebEdit
This item holds the items that make up the page editor. To edit the ribbon menues, go to:
/sitecore/content/Applications/WebEdit/Ribbons
I don't remember seeing that particular button in the Core database, so this is likely a built-in feature that requires the user to have one of the built-in permissions.
The first thing I would check is that Designing is turned on. Have the user go to the 'View' tab in Page Editor and make sure they have checked the 'Designing' checkbox.
If that doesn't work, it sounds like the user you have does not have design access to the page. I would examine the inherited roles using the User Manager and check if they have the Sitecore Designer role inherited.
It is possible they just need to be provided the correct role in the system so that they can access the buttons.
Have you tried the "Sitecore Client developing role"?
Also, for the blue arrow drop list location, in order for the rendering button to show up in that location, you have to check whether the button in the webedit folder under core database(/sitecore/content/Applications/WebEdit/Default Rendering Buttons). The Type field needs to be "Common" in order to show up in the blue arrow droplist.
Example can be the "Edit related item" (/sitecore/content/Applications/WebEdit/Default Rendering Buttons/Edit related item) shows up in the blue arrow droplist.
New to ember but trying to figure out how to allow selections on click. Once selected, I want to have the ability to select 'Remove' from the actions dropdown to remove the images from the store. Is this possible or do I have to revert to a checkbox somewhere?
Gist Here
JSBin Here
Try this out: http://jsbin.com/pezikuji/2/
What I've basically done in this update was bind a property called "isSelected" from your model to your view.
I'm then using that property in ImagesController to create a computed property called canDelete. This is used by the template in an if statement to show/hide a menu item.
Hope that helps!
Please look at the below E-Mail form.
And you can see one button called "Insert Template" highlighted with red color. How can we replace(hide it and add new one) this button with our own custom button like, we can hide the same named button on ribbon through XML...?
That button isn't on the ribbon, it's a part of the rich editor control. There is no supported way to change those buttons that I know, so you'll have to go with some JavaScript as #lazarus suggested.
I'm using a dojox.mobile.Opener to select an action from an ActionSheet.
The Action sheet should operate on an item inside an EdgeToEdgeList below that opener.
After the user selects an item, and clicks the open ActionSheet button, I would like to scroll the EdgeToEdgeList so that the selected item is at the top of the screen (not under the opener).
Does anyone have any idea how I can programmatically ask the EdgeToEdgeList to scroll up to a particular item.
Thanks,
Guy
You can use the DOM node's scrollIntoView() method.
Generic browser version:
document.getElementById('NodeIdToScrollTo').scrollIntoView();
Dojo version:
dojo.byId('NodeIdToScrollTo').scrollIntoView();
or if you would rather go via widget id:
dijit.byId('NameOfListItem').domNode.scrollIntoView();
is it possible to hide or deactivate a menu item in the file button called also jewel button? I´m able to hide completely the file button with javascript, but I want to hide or disable only some menu items in the flyout menu.
Thank you in advance
You will find these Jewel buttons within the application ribbon. You can choose to hide these buttons in your customizations.xml via some hide HideCustomActions. The names of some of the Jewel buttons you will find are:
- Mscrm.Jewel.NewMenu.NewActivity
- Mscrm.Jewel.NewMenu.NewRecord;
For example, within your appointment ribbondiffxml section within your customizations.xml, you could have a HideCustomAction like:
<HideCustomAction HideActionId="CustomHideAction.JewelMenu.NewActivity" Location="Mscrm.Jewel.NewMenu.NewActivity" />