Jul 22, 2013 at 3:47 PM
Edited Jul 22, 2013 at 4:05 PM
I'd like to be able to create a 'top-hat' navigation menu that is common across all tenants in a multi-tenant site.
For this purpose, I will create a custom menu widget.
Normally, a menu widget calls code something like this:
var sharedMenu = _contentManager.Query<TitlePart, TitlePartRecord>()
.Where(x => x.Title == "My Shared Menu")
The menu however, is only stored in the default tenant tables. So it would not work for other tenants (i.e. sharedMenu would be null).
Q1. Am I right in thinking WebAPI is the correct course here? (I'm guessing I shouldn't be hacking sessionLocator etc.)
Q2. If I do use WebAPI, just to save time, any examples anywhere showing e.g. menu (or other content item) deserialisation via WebAPI?
Q3. Is using WebAPI much cleaner/faster than using a partial Html view on the default site and ajax injecting it? (which would need no deserialisation).