Wednesday 20 November 2013

Promoted Links popup does not work on publishing pages


Today my colleague could not get new Promoted Links webpart to work when setting it to open the links in a dialog popup. Earlier the same day it worked perfectly.

The reason seems to be related to publishing pages. It works on team site pages, but not on publishing pages.



If you debug the site you get the following javascript error:
"Unable to get property 'ShowPopupDialog' of undefined or null reference"

The html a tag generated is the same for the page in SitePages (where it works) and for the page in Pages (where it doesn't work). Eg this is not the issue.

The masterpage is the same (seattle.master). Eg this is not the issue either.

Perhaps the javascript file is loaded in the page layout? Or at least the object containing the ShowPopupDialog is initialized in the pagelayout? (or in case of a master page it it clearly not loaded).

It must of cause be a bug, but unfortunately I haven't found a solution just yet. Next step is to digg into where exactly the SP.UI.ModalDialog object is initialized. Hopefully this will give some answers on why it is null.

Thursday 7 November 2013

Save as template missing

Publishing sites can NOT be saved as a template.
When you enable the publishing feature, the "Save site as temple" will disapear.