We’re deploying a new slate landing page on our stack. There’s an action button that seems to be showing up for everyone in the top right of the page. Any way to either get rid of it or only show it for users of a particular given group?
Thanks!
You can hide the action button with a snippet of document CSS.
The easiest way to figure this out is to right-click -> inspect on the element and find the top-level HTML element for the button - in this case it's the sl-app-view-actions element.
In the Styles tab in your Slate document, simply add:
sl-app-view-actions { display: none }
Note that with the 'Actions' dropdown hidden, you'll need to manually navigate to the /edit URL to access edit mode or access edit mode through the actions on the Compass resource.
Your users will also no longer have access to the "Get Shareable View" or "View Source Datasets" actions.
Related
When a link is clicked and the browser redirects to another page the highlighting is maintained when revisiting the original page. This allows the user to know which links she has clicked even after they have left the page. Is it possible to apply this same functionality to a button?
I have an application where you can display 2 kind of content.
There are 3 "main content" pages, which have the urls:
/ (root)
/favorites
/timeline
There is also a settings popup. It goes on top of the "main content". I should be able to deep-link to this setting popup directly. Opening that link directly (like, from an email) should lead to the content displayed for the root / in the background with the settings popup opened in the foreground.
When the settings popup gets closed, it should not affect main content that was under the popup. Url should take back its previous value (the one of the main content: one of / /favorites or /timeline)
Usecase: being somewhere, opening the settings popup, and then closing it.
Be on /favorites
Click on /settings link
Settings popup should open
Click on close button in settings popup
Settings popup should close and url should be /favorites
I'm having trouble implementing this. I've tried to use history.goBack() but it is actually not what I want. On close I don't want to go back, but I actually want to push a new /favorites entry into the history.
Also, using goBack means that if the user comes directly from link /settings, then there's nowhere to go back because there's no back history entry...
I'm also trying to see how I could use history.push() but it seems a bit unnatural to me (and very tightly coupled!) that my settings popup could have to do something like history.push("/favorites") to close itself...
Any idea on how to solve this problem in an idiomatic way?
Like most of dynamics crm programmers know, we can add "web resources that are not associated with any entity" to the sitemap. If such a customization is made, when user clicks that link, web resource will be opened and the buttons in the application ribbon will be added to the ribbon section of the dynamics crm.
What I am wondering is if there is any way I can hide this global buttons that are in the application ribbon based on the web resource on the page.
Let's say I added more than one web resources to my sitemap, namely a.htm and b.htm. Let's say I have a custom button named x in the application ribbon. Right now x is displayed both for a.htm and b.htm, but in reality I would like to hide the button when user clicks on b.htm from the sitemap.
Is there a way to accomplish that?
You could use the following (unsupported) code to hide the Ribbon button (the 'Run Workflow' button in this example):
var btnRunWorklfow=top.document.getElementById("account|NoRelationship|Form|Mscrm.Form.account.RunWorkflow-Large");
btnRunWorklfow.style.display='none';
You can also use ribbon editor available in codeplex to disable your button based on your javascript.
Refer to: http://crmvisualribbonedit.codeplex.com/
I figured there is no supported way of doing this.
I'm creating single HTML5 page using bootstrap. I have some menu items like services, portfolio etc. When I click on one of these menu items, it scrolls down and display that particular section but it does not change the url.
for example:
suppose if I opens website, index.html will open. now if I click on "portfolio" link, it scrolls down and display the section "portfolio" but it does not change URL like index.html#portfolio. It remains index.html
refer: www.nuabikes.com/#/home
when you open this site, click on one of the menu item and check the url, it changes automatically. And also when page is scrolled down the URL changes automatically.
I want to add this feature in my page.
When you change the content with Javascript and you want the change to reflect in the address. Its called routing, check it up.
Basically you have three options:
Use a framework such as angularjs or ember who does the routing for you more or less
Us a Jquery plugin that does some this. Such as http://www.asual.com/jquery/address/
Handle the change yourself. See this for reference: Updating address bar with new URL without hash or reloading the page
I'm doing a chrome extension which adds an option to right click menu in "page" context. I see the option added in the context menu after I click on extension's icon in the toolbar.
But I need the option to be added without clicking on the extension icon in the toolbar. If I add contextMenu creation code in the content script which gets injected in every page, the option is not added in the contextmenu.
What do I need to do to: add an option in the contextMenu when the user loads any webpage without clicking the extension first.
Add your context menu in the background page.
http://code.google.com/chrome/extensions/background_pages.html
Background pages is a single long-running script to manage some task or state. That is where you should put it.
Hope that helped.