Mono Support How to change page title for blog web part ? 

Viewed 11000 time(s), 5 post(s), 1/4/2013 9:42:00 PM - by super
1/4/2013 9:42:00 PM
6018 Reputation 709 Total posts

I placed blog webpart on homepage but now the page title on the browser says "All Blog Posts", I don't want this title on homepage. This title is good for blog section only not for homepage, - How to change it ?

1
1/7/2013 8:51:28 AM
15993 Reputation 2214 Total posts

Hi,

you should have a RewritePageTitle property on the WebPart that you can set to false and turn off the page title rewriting.

I have exposed few more properties around Blog WebPart related to this so if you can't turn page title rewriting off you will have to use the latest MonoX nightly build.

Regards

2
1/7/2013 8:51:53 AM
15993 Reputation 2214 Total posts

Note: We will push this update on Wednesday.

3
1/10/2013 1:35:03 AM
6018 Reputation 709 Total posts

I don't see any "RewritePageTitle" property in BlogContainer ?

I placed blog webpart on homepage but now the page title on the browser says "All Blog Posts", I don't want this page title on homepage.

Please help me in locating this property ? what to change and where to change ?

I am using the 1/9/2012 build which is latest.

BlogContainer.ascx only has this:

<%@ Control
    Language="C#"
    AutoEventWireup="True"
    Inherits="MonoSoftware.MonoX.ModuleGallery.Blog.BlogContainer"
    Codebehind="BlogContainer.ascx.cs" %>
 
<%@ Register TagPrefix="MonoX" TagName="BlogPostList" Src="/MonoX/ModuleGallery/Blog/BlogPostListHome.ascx" %>
<%@ Register TagPrefix="MonoX" TagName="BlogPostEdit" Src="/MonoX/ModuleGallery/Blog/BlogPostEdit.ascx" %>
<%@ Register TagPrefix="MonoX" TagName="BlogPostView" Src="/MonoX/ModuleGallery/Blog/BlogPostView.ascx" %>
<%@ Register TagPrefix="MonoX" TagName="BlogSettings" Src="/MonoX/ModuleGallery/Blog/BlogSettings.ascx" %>
<%@ Register TagPrefix="MonoX" TagName="BlogComments" Src="/MonoX/ModuleGallery/Blog/BlogCommentsList.ascx" %>
 
<div class="blog">
    <MonoX:BlogPostList ID="blogPostList" runat="server" RssEnabled="true" ParseCustomTags="Description" />
    <MonoX:BlogPostEdit ID="blogPostEdit" runat="server" />
    <MonoX:BlogPostView ID="blogPostView" runat="server" />
    <MonoX:BlogSettings ID="blogSettings" runat="server" />
    <MonoX:BlogComments ID="blogComments" runat="server" />
</div>

4
1/10/2013 10:17:22 AM
2218 Reputation 300 Total posts

Hello,

As Kristijan mentioned RewritePageTitle property is exposed on the BlogContainer.ascx control. To set it on the Blog.aspx page for example you need to set it in the following manner for example:

<MonoX:BlogContainer ID="blogContainer" runat="server" UsePrettyPhoto="true" DateFormatString="d" RelatedContentVisible="false" EnableSyntaxHighlighter="true" GravatarRenderType="NotSet" RewritePageTitle="true" />
You can also edit the web part properties using the designer, please see the attached screenshot.

Regards

5
This is a demo site for MonoX. Please visit Mono Software for more info.