MOSS 2007: Changing the masterpage for one page layout - master-pages

In a MOSS server, I would like a specific page layout to use the selected masterpage. Instead, i want this specific page layout to use a blank master page so i can use that page layout for pop message. I want to use a blank master page so that the my site's navigation menu, header and footer don't appear in my popup.
I found this blog post (Change MasterPageFile for a specific PageLayout) which explains how to do this but it requires the page to be ghosted which cannot be in my case.
Thanks

Create your own page layout in Sharepoint Designer, in the attributes of the page you can specify a masterpage url, instead of using the keywords ~default.master or ~custom.master use your own master page (make sure its published and available or it will fail).

Related

How to add an external link under a page in Kentico?

We’re using Kentico 11.0.26 with MVC.
I need to add an external link under a page.
In content tree it should look something like this:
Page A
Page A1
Page A2
https://www.www.google.com/
The problem is that when I click the + button in Pages application, I only see page types, and there is no option to add a link.
Why not use value of page field to store the link and load the value inside of MVC app? Content tree alone does not have capability for this. All nodes have to be pages in one way or the other and plain old link to external domain can not be placed instead of page. To be honest I do not see benefit of having a link inside of content tree even for menu since you have to create menu using document path and not only its name anyway so accessing additional property should not be that much of a problem.
You could create a new content type to represent an external link and put that into your content tree. This would then also give you options to set additional properties of the link such as target and title rather than just a URL.

Piranha CMS existing models and Piranha Menu

I cannot seem to figure out how to add my preexisting pages to the auto navigation menu that Piranha generates when I call #UI.Menu().
Currently, I am using the method described here under Getting the Models to pull CMS content and display it above my model data. I can successfully render the page with Piranha content, but I'm not sure how I can have this page display in the top navigation.
Alternatively, I can pull my data and display the CMS content by creating a new page type, but this means the page type is only ever used to display this single page. It shows up in the navigation generated by #UI.Menu(), but if I continue using this method, I would need to create an additional piranha controller for every Action.
My main objective is adding CMS functionality to my custom MVC project and have everything display in an automatically generated navigation with #UI.Menu().
If you want to add pages in the menu that aren't really controlled by the CMS add a single page type for them, for example "Application Page". Then check the documentation for page types under section 2.5 here http://piranhacms.org/docs/pages/page-types.
If you check the checkbox to allow pages to change the route you can specify the route on each page of this page type. This means you can add your application pages into the structure and the add the route to your controller/action.

Master Pages - Sharepoint 2007

I have created a Master Page in Sharepoint 2007. I am having difficulty with the main content. I have tried putting the content into the PlaceHolder Main but the content will not render on the page, the content consists of images (which I will eventually link to other pages). If I go outside the PlaceHolder and create a div and div id and connect the div id to my css it will render on the master page. That brings up a totally different issue, not only do the images render on the master page, but they also show up in all of my document libraries.
I have spent many hours trying to figure this out. I do not want to change any application pages. I have tried to apply the changes to the master page and not the rest of the site, I could not get that to work. I have tried moving the content to different Placeholders and the images still render in the libraries. Someone please help me to understand why the images from the master page show up in all of the document libraries. I would really really appreciate it.
Thank You.
Standard ASP.NET page generating at work here. The content in the master page content zone is replaced with the content in the page layout content zone. Without changing the application page you are stuck.
It sounds like you should be editing the application page anyway (because you don't want it to appear in all document libraries)

sharepoint how to add code handler for button click

I have a SharePoint publishing page. I added a server button via SPD, assign the OnClick handler to btnSubscribe_Click. The question is, how and where can I add codes for this handler? If I have it inside a dll, how can I relate the SharePoint page to the .cs file?
You cannot add controls to publishing pages with SPD, I assume you mean you have added the button to the page layout? or master page?
To make an onclick work, as you know, you need to have a code behind, or script in code.
1) To make the code behind work, you need to make a custom page layout class, extend from Microsoft.SharePoint.Publishing.PublishingLayoutPage
Then change your page layout declaration to use your new page layout code:
<%# Page language="C#" Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %>
2) Or you can enable inline script through web.config, and have standard <script runat=server> sections
3) Or better yet, write a web part or a control that will do your subscribe action. And add that to your page layout.

SharePoint page edit issue

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I am using SharePoint Designer 2007 to design pages. When I open the default.aspx under Pages sub-folder of a site, there are two options -- Edit in Browser and Edit Page Layout. I want to know what are the differences between Edit in Browser and Edit Page Layout -- especially what is the function of Edit Page Layout, because when I select Edit Page Layout, WelcomeSplash.aspx opens in SharePoint Designer, other than default.aspx itself (very confused).
thanks in advance,
George
The page layout is default.aspx's backing "template". It holds the actual controls. Edit page layouts to move around controls etc. You can also create your own and bind them to content types.
Edit in browser basically means you edit the values of say the title control, or the content of a richtext fieldcontrol. This is usually done through sharepoint's front end web UI. You can also change a page's assigned pagelayout to a different one, i.e. have default.aspx use ArticlePage.aspx as pagelayout instead of WelcomeSplash.aspx. THis is done in the publishing console in the web ui as well.

Resources