I made a solution to deploy a custom master page (a WSP file).
After I activated the solution, I fired up SPD to make a new page based on the custom master page.
My elements.xml file has:
<Module Name="AddCustomMasterBMW1" Url="_catalogs/MasterPage">
<File Url="customWSPTest1.master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE">
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_masterpage_name;"></Property>
</File>
My issue is how do I surf to this custom master page in SPD to select the master page to use?
The custom master page is in the DB, i assume, so how do I tell SPD to use it?
In SPD, navigate to _catalogs/masterpage. Right click on the customWSPTest1.master and select Set as Custom Master Page. That said, I actually find it easier to use the browser. Go to Site Settings, click Master page under Look and Feel, and change the Site Master Page to customWSPTest1.master.
Related
I am new to Umbraco. Currently, I am facing an odd problem, which is some navigation link in the menu bar does not working properly.
For example, in my navigation link, I use relative link:
When I click that link on the web page, it redirect to error page, says cannot find the template. However, if I jump to Umbraco Admin page, and click link to document: /target, then it works!
I suspect when I trying to access /target from the webpage, it cannot find the document pointing to.
Could someone tell me some possibilities?
Have you tried to republish the node? Also ensure that a template has actually been set on the content node.
I've just recently started trying to use Umbraco, so I hope this doesn't sound stupid.
I'm trying to set the default web page to my site, but I am having no luck. I recently installed umbraco v 4.7.1.1, along with the blog starter kit that you can select when using the installation wizard.
In my "Content View", I have the following structure:
Content (folder)
Personal Site (folder)
Index
About
MyTestBlog
When I look at the Properties tab for MyTestBlog, the Template property is set to "Blog Post". When I go to www.mytestsite.com, the content on MyTestBlog shows up on the site's default web page.
I have the Template property for the Index page set to "Textpage". I right clicked on the Personal Site folder and selected Sort. From the Sort pop-up window, I dragged Index to the top of the list so that it has the sort order of zero (0).
From what I have read, whatever is set as the first item will be the default web page in Umbraco, but this does not seem to be the case for me. No matter what I try, I cannot get Index to be the default web page for the site.
I have checked to ensure that all of the web pages have been published. Is there something that I am missing or not doing?
Thanks!
Not a stupid question at all, it's a common stumbling block when first learning Umbraco. I know it tricked me when I started. Your assumptions are correct in that Umbraco will display the first node as the default page, but it's the node Personal Site which is actually the first node.
To fix this, add a property with the alias umbracoInternalRedirectId of data type Content Picker to your Personal Site document type. Then in the content section pick the node you want the Personal Site node to default to (it doesn't even have to be the first subnode).
Normally, you could use a property alias of umbracoRedirect but Umbraco doesn't allow this on the first node without it's problems. umbracoRedirect is safe to use (and generally preferred) for any other node in the site.
Or, if the website has already been published, add a rewrite rule to the Web.Config:
<rewrite>
<rules>
<rule name="Redirect to front" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^$" />
<action type="Redirect" url="/yourViewName" />
</rule>
</rules>
</rewrite>
Just include that inbetween the system.webServer tags within the configuration tags, and replace yourViewName by the appropriate view's name (like Contact or Work) and you're done!
Best of luck.
I am modifying an existing Sharepoint 2007 site. It just has two pages, the home page, and an admin page. The admin page has a couple form/document libraries. I simply want to have a search so that a user can search through all the documents/forms in the document/form library. I dont care if its a whole site search, as long as it pulls up results including those from all the document/form libraries on the site.
I have enabled site visibility ("allow this web to appear in search results") on both pages. I just cant find anywhere to enable an actual search button/search textbox/search webpart. I just want the actual control where i can type in a word and hit search. where/how can I enable that?
When I go to sharepoint designer I can see the search box at the top of the master page, but cant see it on the published (live) page.
First of all, search in MOSS 2007 is a BIG deal to understand... don't expect button "On/Off"!
Now that this is clear:
When you watch master page in sharepoint designer, you are seeing a page template as it would be seen with all functions enabled. So master page has to have the search button inside, so that MOSS knows where to show search button when it is enabled.
As for the first question:
First check in your server in the Central Administration Home page > if you have enabled search, crawling (to have any results in the first place) etc...
On your main site collection go to: "Site Actions > Site Settings > Modify All Site Settings > Site Collection Administration > Search settings" and check if you have enabled site search page.
Edit your search scopes.
P.S. Also I'm using a book for this kind of settings - great book
Office Sharepoint server 2007 - Administrator's companion
from Microsoft, written by Bill English (MS Sharepoint Community Expert)
Apparently a previous developer had modified the master page to hide the search feature controls.
The line in my master page that I had to edit was:
<td valign=top>
<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
<SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/>
</asp:ContentPlaceHolder>
</td>
The table cell had an inline style to "display:none;" which I removed.
I added a new ContentPlaceHolder (HeadContent) right below the Title so that I can add page-specific css and js files. But when I create a new View using the master page, it puts the default text of the page layout to have the HeadContent open/close tags at the end of the page. Unfortunately, I visually just see it as the first, second and third tags and start typing in my page's html into the last tag. But this isn't the BodyContent place holder because it is the second one. I have to go back and copy/paste them into the correct place. Ugh. Just for kicks, I scrambled all the tags around in the master page just to see what would happen in the view. Sure enough, VS.NET ignores their order in the master page and reorders them the same way everytime.
Why isn't VS just ordering the place holder tags in the same order as in my master page? Actually, how do I make it stop and just do it in the order I have in my master page?
What visual studio is doing (I assume) is loading the MVC View Content Template. I assume the reason all the contents are out of order from your master page is that Visual Studio Extensiblity loads the template then adds any ContentPlaceHolders that are not in the template after the template data.
You can see what the templates look like by going to your Visual Studio file in your Program files then goto Common7\IDE\ItemTemplates\CSharp\Web\MVC2.
There is also a folder for VB. In any case you can open the zip files located in that directory and drill down till you get to the .aspx page and you'll see what VS is inserting into your project when you do a Add New/View.
After the branding of a SharePoint site is done, I mean Site and System masterpages, there are still a few pages that uses the default style. My question is if we can change the master page for that pages too.
Example: http:///_layouts/settings.aspx
always looks like a fresh SharePoint
The master page connected to Settings.aspx is /_layouts/Application.master. Many system pages use this master page but none of them use the custom or default master of the site.
Do know that modifying the file isn't supported by MS :)
yes, you can refer your customized master page for those pages.