how to remove side navigation and top header area from all pages in SharePoint using SPFx - spfx

I'm trying to remove side navigation and top header area from SharePoint but the result is reflecting only on homepage.
How can I remove it from all pages?
Is there any way to remove this with SPFx extension with out using old css technique
#sideNavBox,#titleAreaRow
{
display: none;
}

For removing it from all pages, you will need to include this CSS code in custom MasterPage and use that MasterPage for your site.

Yes, you could use an SPFx Application Customizer and reference the JS/CSS you want to remove.
Chris O’Brien has written an excellent post on this. http://www.sharepointnutsandbolts.com/2017/06/SPFx-Application-Customizer-Global-JS-Page-Header.html?m=1

Related

Load razor pages with layout without refreshing entire page

I just created a net6.0 Razor Pages project in Visual Studio 2022. I haven't made any changes to it at all.
The layout is the standard file that gets created. Using a nav bar with links to Home/Index and Privacy. I plan on adding a side bar for navigation as well.
All I want to do is, while using _Layout.cshtml, load pages from my nav links (ex: Index, Privacy, etc...) without reloading/refreshing the entire page. I just want to update the main content without reloading everything.
I've been searching online for a few hours and I just can't find what I'm looking for. I'm not sure where to start :(
There is no way without JavaScript. Try SignalR and JavaScript for Razor Pages

How would I move from the default ASP.NET layout to another theme

I just started to use MVC for a simple website. Very new to this.
I am trying to change from the default layout to a simple layout page with sidebar navigation with drop-down list capability. Something similar to one that is shown in the enter link description here
Could you please guide me through this? I have downloaded the HTML, CSS and js files.
I added them to the project and referred to them in the bundleconfig.cs. But still no success.
Thank you very much

Orchard About us Page in Solution Explorer

I am new to Orchard CMS. I have created an About-Us page from the admin Dashboard.
Now, I want to put javascript on About-Us page only. Kindly tell me where can I find the About-Us page in solution explorer of Visual Studio? Or is there any other way to achieve this?
PS: I am using Orchard 1.8.
Thanks
I do not think, i quite get it.
here is the view for the dashboard: \Orchard.Web\Core\Dashboard\Views\Admin\Index.cshtml
Adding javascript to any view is done by using Script.Include([PathToResource]) or Script.Require([NameOfResource]) and/or #using (Script.Foot()) { [InlineJavascript]}
If what you are asking is, How to add javascript to a page created with the Page Content Type then you need to add Parts to your ContentType.
A good start will be Vandelay.Industries 1.8 (the latest), but there are others.
Enjoy!

Themes and editing pages in Sitefinity 4.4

When I edit content in the backend I would like to be able to see the page as like it is in sitefinity 3.7. Right now all I'm seeing are the contentplaceholders, I don't think this is will work for inexperienced users. Is this this possible to achieve? I've tried adding themes="theme" to the tag in the web config, but this applies it to the CMS elements as well.
Sitefinity version: 4.4
Thanks for your time!
Peter
To apply styles for particular elements only for the page editor (placeholders, widget headers etc.), put .sfPageContainer before every element. For example, if you want to change the color of the links in the page editor write .sfPageContainer a{color:blue} and this will apply only in the page editor, not in the whole system.

How can change a text on a label in COMPONENTS PAGE when using MUI2 for NSIS?

I want to add a link somewhere on the components page. I tried the method presented here, while it is indeed working for the WELCOME PAGE, it causes the installer to crash when I'm adding it to the components page.
The thing I want to add is a text that contains an underlined blue word which opens a url on the default browser when clicked on. I want to add it to the existing components page.
Thanks,
J
I solved it using some help from the nsis forum the relevant links are:
Add Link to Components Page and How to customize an existing MUI2 page (components)
The main issue is that in contrast to welcome/finish page, the components page is not a nsDialog page. In order to dynamically add a label we have to use User32::CreateWindowEx. I used the resource hacker to add a static label in order to get its position and use that as a guide for the new label I added (It's all explained in the links...)

Resources