.NET MAUI: How to have Blazor page use the layout when navigating from the Shell - .net-maui

I am able to navigate to a Blazor page from the shell thanks to How to navigate on a TabBar on .NET MAUI/Blazor hybrid?
However the MainLayout is not used even if I specify it in the Blazor page.
[GitHub source replicating the problem] (https://github.com/jfversluis/MauiBlazorPlatformTabs)
*edit
Goal was to navigate to a page in an existing BlazorWebView from the AppShell Flyout. This method is creating a new "website" with the one page.

Related

SharePoint JavaScript development without doing add-ins?

I have to create some custom functionality in SharePoint 2013 using JSOM/REST, but I don't have the administrative rights to publish an add-in to the site.
What is the procedure for creating JSOM/REST code on a SharePoint page without doing an add-in?
I'm not sure if this the best way, but I have created an .aspx page and loaded this page in the "Page viewer" web part, this then loads the .aspx page in an iframe, this mimics an app.
Do you have any suggestions?
Use the content editor web part or the script editor web part to just insert javascript/jsom in your application page

Adding pages and templates to a portlet

I am using eclipse ide and I have created a liferay project Test-portlet. I haven't written any code for this project
When I ran this project I got the usual welcome screen and I added the Test-portlet to the page and removed other stuff from the page.
I actually want to create a website using liferay. The website already exists which should be rewritten in liferay.
So when I load the project I get this welcome screen and the Test-portlet. At the top of this page I get the the menu-Admin,Sites,.... and LIferay logo on LHS.
I wish to remove all of these and displa only the web page data of the website. I know I can use themes and layouts for such purpose.
If I should use portlet to create this website , how should I keep adding pages and designs?
Also how should I add pages,themes,templates to this portlet?
Before creating this Test-portlet project, I had created pages using control panel.
How should I create this website? Using portlet by creating project?
EDIT:
Also this Test-portlet is displayed as a small portlet on the entire page. WHen click on the gear symbol and click on maximise, it only maximises during that time and when project is run again, it comes back to its original size.
Should I create this websiste using portlets?
Data for website comes from database. Few pages have static data.
Subsequent pages may be added in future.
HOw should the pages be added if I use portlet to create the website?
Please go through liferay themes and liferay layouts

Sammy.js External Navigation

I have built a SharePoint 2010 web part that is a single page app using knockout and Sammy to navigate between views of the SPA. Everything works fine within the SPA web part, but if I try to navigate to another page in SharePoint, the Sammy.js routing kicks in and just reloads my SPA home view. Is there a way to "override" the Sammy.js navigation when clicking a link outside the SPA web part?
Unlikely. Instead I would remove Sammy and make the navigation work using templates in knockout dependent on the current view.
Optionally wire it into Sammy so it could run stand-alone with proper URL routing, or simply nested inside the dom somewhere not using Sammy.

How to get Site Icon to properly update in Sharepoint 2010 Web Part Page

I'm working on creating a reusable and extensible web application in SharePoint 2010. I've created a master page to apply across all pages in the site. However, whenever I create a web part page and navigate to it, the site icon does not display. Instead of my custom site icon being displayed it shows the default SharePoint icon. I can get around this by placing the icon directly into the master page, but that would require me to create a new master page if I ever wanted to extend this web application.
Does anyone know why this is happening? My initial thought was that the web part page had somehow been customized to not use the default master page, but that does not seem to be the case: if I update the master page it is reflected in the web part page.
Googling around and checking this site yielded little answers. I only found one post out there that reported the same issue I am observing but there was no solution.
If it helps, I did notice one phenomena when navigating to this page. Before the page completely loads, the correct site icon appears for a split second before being replaced with the default site icon. Hope that helps.
I ran into the same issue this morning and didn't want to create a custom master page just for this, but luckily it was quickly resolved by following admlcrunch's suggestion (on SharePoint 2010):
Go to the desire page
Click on the "Page" tab at the top
Click on the "Title Bar Properties" at the right (in the ribbon)
In the Image Link section on the right, paste in the image URL
Click OK
The only bad thing about this is, you have to update every Web Part page that you want custom icon image to display.
I was just having the same issue. Web Part Pages have their own icon that you can set.
To set the icon click Page > Title Bar Properties. This will open the Web Part Page Title Bar dialog. In this dialog there is an area to set the Image Link. You can set the icon here. I just copied the URL to the site icon.
Open the page in designer and remove the custom titlebar place holder:
[WebPartPages:TitleBarWebPart]
from the :
[asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea"]

Is it possible to put a Content Editor Web Part in a sharepoint app page

Is it possible to put a Content Editor Web Part in a sharepoint app page along with the ability to edit the web parts contents from the browser? In other words have it behave as it would on a web part page.
I can get the web part to show but I have no clue if it can be setup for in browser editing on the application page ... I can't get it to show the edit button.
Jay
You can put a Content Editor WebPart on an application page because it's just a special kind of web control, but there is no web part manager on the page and even if you added one it would not have a record in a content database for the page. So it would not know where to store the information.

Resources