For "The Doctor" Only
Sorry to bother you again on this, but SharePoint is such a monster!
The script you used is completely awesome and I love the fact you used default SharePoint dialogs. I like that way better than the previous java script.
I have tried to use the script on various other pages and it is not working...LOL... go figure. I am sure it is something you can figure out, and I am sure it is a SharePoint issue causing it.
Basically I took your script and copied it to another page : https://bsa.sharepoint.com/hr/Pages/Home.aspx
but no dialog pops up. The difference with this page is it is a publishing page and not a web part page as we were working on earlier.
I have been able to get links to open in Dialogs following some examples, however the trick I am looking to do is this:
1. Pass a URL into the spdialog function no matter where the url comes from on the page.
there are a couple of ways that a sharepoint url can be created on the page:
1. sumXXXXX XXXXXnk web part (which is what I am using ALOT)
2. Content Editor web part
3. Main content area within the page
An example that works on any page currently is:
Howver, I would like to pass a variable as the URL, and in order to allow me specific URLS something like RootFolder= is a good search.
However , I am open to any suggestion.. What ever is easier , even if I had to Hard code the URL in the script that's completely cool.
Something that could work would be:
1. url 1
2. url 2
then your jquery could say IF url = 1 or 2 or 3 then open in dialog
but if searching for like: RootFolder= or another key term I could replace is cool too. Whatever you think is easier and could work on all pages and URLs
Anyway, hould you check the HR site https://bsa.sharepoint.com/hr/Pages/Home.aspx
code is on left hand side under the menu "edit snippet"