imthenachoman / nsptiles Goto Github PK
View Code? Open in Web Editor NEWWindows style tiles for SharePoint
Home Page: http://nsptiles.js.org
License: MIT License
Windows style tiles for SharePoint
Home Page: http://nsptiles.js.org
License: MIT License
If the nSPTiles list does not exist, or a user does not have permissions to see/read it, and the user doesn't have permissions to create the list, then the code should show a pretty error instead of the ugly one saying the list doesn't exist.
Cloning tile results in "Unable to add new tile" error. Any idea what is causing this issue?
I've noticed that when I promote pages to home page status, the page must be reloaded to render the tiles. I was able to reproduce this quirk on 5 home pages. My guess is the redirect function in SP hangs up the load. Instances on subpages worked fine. I was able to remedy this problem by using an absolute URL in lieu of a relative one. Just FYI...
It works in Chrome but not IE. Changing to window.location
makes it work for both.
// opens a tile link
var openLink = tiles.openLink = function(tile, type, url)
{
if(type === "none") return;
var holderID = tile.parentNode.parentNode.id;
if(/^mailto:.*?@.*$/.test(url))
{
window.location.href = d; // RIGHT HERE
}
There seems to be an issue with the tile not rendered check. When using this function the script will fail in IE10 and IE11 (IE9, Firefox and Chrome are fine)
Seems to be related to the XML query used on line 1046 in the script.
Are you aware and do you have a solution? (looking into this myself as well because I need it)
XPathResult is not defined
being able to load tiles by passing the group name as a URL paramater
mail link custom href
Suggestion to provide the ability to change the background when the tile link matches the current URL. This is for when you are using the same set of tiles for page navigation so the user can clearly see they they are on the page that the tile with a different background color has.
I would like the ability to add javascript to be used in html override. I have created custom tiles using html override with buttons that call functions but currently I have to add the javascript via cewp for the functions that the HTML calls.
var tileOnClick = "nSPTiles.openLink(this, '" + row.g...
I am unable to use the CEWP after using the code. Is there some sort of configuration on the admin/server side before I can use it? I was able to use SPJS Tiles with the same procedure and site.
Thank you in advance
I noticed that the siteURL is getting the wrong URL for it since it's a subsite. I changed the tilesTracker[holderID].siteURL to the correct one and it worked. I just hope it doesn't affect other rendering codes.
Hi
I am trying to use this in CEWP. I added one tile it worked. Then when added other tiles, all pile on top of each other on topLeft. What could I have done wrong?
add support for tile border
It creates the list ok, but the next call to update the list fails, throwing an unhelpful generic soap exception error.
I deleted the list and then loaded version 1.4 and the list creation and update was successful.
It would be useful if placeholders e.g. {subsite} could be used for tile URLs so that when subsites are created from a template the links that go to it's subsite libraries will automatically work.
Example URL with placeholder: /{subsite}/lists/documents
Hi Nachoman,
great tool! indeed terrific!!!
Is there a possibility that the Tile launches pure JavaScript? My initail situation is that I would like to launch a specific modal dialogue, rather than the dialog given with the dialog link type (showModalDialog method ) with given size of the dialogue. If I use the onclick function in the configOptions, the dialog still starts, even with my custom modal dialog hides the dialog URL, but then two modal dialogs are open ...
new/edit form toggle should not collapse other sections when a new section is expanded
I like the improvements over the blue print, SPJS-Tiles, especially the possibility to hide Tiles based on a SharePoint group. But there is a huge downside in nSPTiles: Tiles are not positioned automatically according to rows and columns. Because of that, hidden Tiles (because of a user's permissions) will leave "blank" room on the canvas.
Use case:
I have 5 buttons. I want to show 3 buttons to a group A, 4 buttons to a group B and 2 buttons to a group C.
A user in group A might not able to see the first and last button.
In the actual row of 5 buttons, the user of group A will see free room left and right. If the order of those buttons 1 and 5 is changed, there might be even a gap between the buttons.
An option to have a non-mandatory offset, which could lead to the responsive display of Tiles per defined rows and columns, would be great (as it's possible with SPJS-Tiles).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.