Change Sharepoint main page name without changing URL - sharepoint

I have a SharePoint website, my main page is on mySiteRoot/Pages/default.aspx (quite normal until here I think) but the problem is that the name in the browser tab is also "default".
I want to change the name displaying in the tab without changing the name of the .aspx file, but despite all my searches I can't find it on SharePoint.
Does someone have a solution ?

Each page in SharePoint should have a Name and a Title. The Name refers to the filename of the page, and thus affects the page's URL (in your case, "default.aspx").
The Title is independent of the page Name, and this is what is displayed in the browser title bar / tab.
To edit an existing page, the easiest thing to do is to navigate to Site Actions > View All Site Content. Under the "Document Libraries" area, locate and open the "Pages" library. In the library, find "default" and from either its context menu or the ribbon, select "Edit Properties". There you can change the Title to whatever you want.

open the page in SharePoint designer.. and look for the string:
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
<SharePoint:ListItemProperty Property="BaseName" maxlength="40" runat="server"/>
</asp:Content>
Simply replace it as:
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
Your title
</asp:Content>
Hopefully you will get it working.

which edition/version of SharePoint ? I guess it's 2010 with wiki home feature enabled.
If I'm right, you have to rename the file to rename the page. But don't worry, your page will still be the home page of your site.
You can in all case click on set as default page on any page in the ribbon.
PS: you should consider posting on http://sharepoint.stackexchange.com which is the dedicated site for SharePoint Q/A.

Related

Liferay 7.4: How to create a configurable web content article footer?

I need to create a footer in a Liferay-project, that can be modified from the instance. I've been trying various things in my footer-code and instance, but haven't figured out how to do it.
Any content inside the footer can't be touched and in page edit mode, Liferay says "This area is defined by the theme. You can change the theme settings by clicking more in the Page Design Options panel on the sidebar". I didn't get any help from Page Design Options either. Is there a way to do this?
I found the answer after hours of work and searching and want to share it with everyone here. The working solution was found here, in one of the comments.
You need to write some code (I use Freemarker/ftl) and then configure the site pages a bit, but here's how it works:
Put a new setting inside liferay-look-and-feel.xml:
<settings>
<setting key="footer-article-id" value="" configurable="true" type="text"/>
</settings>
This will create a new configurable option in page options, allowing you to input the ID of the web content.
NOTE: <theme> might get underlined red "The content of element type "theme" must match". This still prints everything correctly, but the tags are given in a wrong order. Inside my <theme>, I have <template-extension>, <settings> and <portlet-decorator> in that order, which removes the error.
Assign a variable in init_custom.ftl (cleans up the footer-code):
<#assign footer_article_id = getterUtil.getString(themeDisplay.getThemeSetting("footer-article-id"))/>
And then add this to the footer-code, to create the spot, where the content is visible:
<#liferay_journal["journal-article"]
articleId=footer_article_id
groupId=page_group.groupId
/>
After this, everything should be ready code-wise.
Create a Web Content for your footer. In the creation screen, there's an ID on the panel on the right. Publish your content and grab the ID.
Finally, go to Site Builder --> Pages and click on configuration from the top bar (behind three dots). You should see the input field like in the first picture: That's where you add the ID.
Save the settings and your web content should now be in the footer.
Hope this helps!

Read sharepoint page title from list

I have a SharePoint 2007 page which display news details dynamically from a list using query string , all the news is displayed in page NewsDetails.aspx like this NewsDetails.aspx?ID=112, what i want to do is making the page title read from the news list so that it displayed deferent for every page depending on the news title in the page to make the website more search engine friendly ,
i have noticed that the page title come from
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
<SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,multipages_homelink_text%>" EncodeMethod="HtmlEncode"/>
-
<SharePoint:ProjectProperty Property="Title" runat="server"/>
is there a way to change this <%$Resources:wss,multipages_homelink_text%> to a list filed value ?
You can modify the master page and replace the content of the PlaceHolderPageTitle placeholder with your custom control. This custom control can check if the requested url contains NewsDetails.aspx if so you can set you custom text in all other cases you can display the multipages_homelink_text

Liferay page to auto-refresh?

We would like, for example, to have a page that displays a blog to refresh from time to time when a person leaves the page open.
Does anyone know of a quick and easy way to get a liferay page to auto-refresh at some interval? (preferably without having to create/modify a theme).
If you dont want to modify theme than just add new Web Contetn Display portlet to your page and create/select article that has only
<script type="text/JavaScript">
setTimeout("location.reload(true);",10000);
</script>
as content. Be sure to go to source view of your rich test editr field (if you use it).
Change 10000 (milliseconds) to your need.

Where can I find discussion board newform.aspx page to modify?

I have to modify text in discussion board new post page. Now it is showing "Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval."
I have to append some text to this message. I am trying to find discussion board newform.aspx page to modify. Please let me know where can I get that?
Assuming your discussion list is called "Public Discussion" at a site called "http://yoursite"
Connect to the site (http://yoursite) with sharepoint designer
Go to All Files -> Lists -> Public Discussion -> NewForm.aspx
Edit file
Look for <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
Add content as needed
Save file, it will warn you that you are about to save a customised layout.
The message you describe is injected by sharepoint's content approval framework. To custom the messsage, you will most likely need to use javascript to find the message box and change the text.
On my site the html xpath to the node is something like this:
//span[#id='part1']/table/tbody/tr/td[2]
On the file system it will be here:
$sphome / "Name of your discussion board" (this will be a folder) / Forms / newform.aspx
There is a similar question asked here. It describes custom template controls handle the display of this content.
There is also a link here that describes a solution to do this using css. This would allow you to hide the OOB text and then have your own content displayed instead. However, there is some question of it working on broswers other than IE so include this in your testing.

Create a Sharepoint page but don't show in breadcrumb

I'm struggling to do something which I thought should be straight forward, basically I need to create an aspx page which I now realise must be put into a document library but the problem I have is it's only one page and when the page is displayed the breadcrumb has a link to the document library.
We really don't want the users to be able to get to the library via the breadcrumb and just want to show the page. From one of my other questions some other helpful people made some suggestions like putting the file in the _layout directory but this won't work because the new page has a master page associated with it.
Any ideas how I can display the custom page but not allow normal users to navigate to the document list?
Thanks!
Dan
Having a master page associated with an ASPX page does not prevent it from being placed in the _layouts directory. All of my ASPX pages use a custom master page I wrote, and they're all stored in the _layouts directory. But there's enough methods to hide the breadcrumbs without changing the storage location.
If you want to hide the breadcrumbs on only a specific page, the simplest method to do so is to prevent the contents of the breadcrumbs from being displayed. On the default master page (and I'm going assume that your master page also has this), there is a content called "PlaceHolderTitleBreadcrumb", which is what displays the breadcrumb. By overriding this in the ASPX file, you can prevent this from displaying. A simple way is to just insert the following line in your ASPX file:
<asp:Content ContentPlaceHolderId="PlaceHolderTitleBreadcrumb" runat="server"> </asp:Content>
By being in the page itself, it becomes a custom version of the breadcrumb instead of the master page's, so it won't evaluate itself and will leave you with a blank line. The will keep content inside the table cell, so it will specifically make a blank line occupy the same space that the breadcrumbs normally would. If you just put an empty content there, then it will instead render nothing there and pull all of your content upwards. Up to you if you think that looks better.
As far as where to place the line, I recommend just beneath the following lines, if your ASPX page has them. If you don't have the following lines, you might have to experiment a bit to find what position works properly.
<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
<IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt="">
</asp:Content>

Resources