This project is read-only.

"is front page" setting hides my blog posts

Topics: Controls
Apr 23, 2014 at 9:33 AM
I've posted this under "issues" as well, so sorry for the duplicate, not sure where I should post this under...

When users navigate to my blog, I want to have a default welcome page appearing and below that all the blogposts.

When I enable the setting "is front page" for a page, it hides all blogposts.
While exploring for a solution I found a possible solution to modify the theme's master page with this setting:
<a href="<%=Utils.RelativeWebRoot%>blog.aspx">Blog</a>

I unfortunate don't have an idea where in my master page to add this line.
I'm using the standard theme.

Any guidance or a sample would be great, thanks!
Apr 24, 2014 at 2:47 PM
Hi Mfpgoose,

You put <a href="<%=Utils.RelativeWebRoot%>blog.aspx">Blog</a> in your site.master page on around line 45 or so in the header.

That should do it :)
Apr 24, 2014 at 4:06 PM
Hi, thanks for your reply.

Wouldn't that only give me a Hyperlink to the blogposts?
I'm looking for a solution which shows the content of my default page, following by the blogposts (the content) not a page link.
Or am I misunderstanding you?

Apr 24, 2014 at 4:48 PM
"is front page" intended to replace regular default post list with any page you like, not to add a page on top of post list as you seems to want.
Apr 24, 2014 at 4:58 PM
It seems that that is the design of BE.NET

Ok, is there a way that I can keep a specific blogpost persistent on top, followed by blogposts sorted by date (most recent on top)?

It seems that another alternative is to just edit default.aspx and add my content in there....
Apr 24, 2014 at 5:27 PM
You can modify your theme to include any static content on top of posts, or even dynamic although it would be a little harder. Default.aspx is shared by all themes and gets updated every version, no need to touch it.
Apr 24, 2014 at 5:45 PM
Hmmm...not really solving my problem....
Apr 24, 2014 at 5:55 PM
Hi MFpgoose,

I was going by what you said earlier:

I found a possible solution to modify the theme's master page with this setting:
<a href="<%=Utils.RelativeWebRoot%>blog.aspx">Blog</a>

I unfortunate don't have an idea where in my master page to add this line.

I'm using the standard theme.


Line 101: <asp:ContentPlaceHolder ID="cphBody" runat="server" />

Wrap that section in a if statement

<% if (isFrontPage = true)


<asp:ContentPlaceHolder ID="cphBody" runat="server" />



This in theory should work. Not tested but in theory.

If not then put in the <PostList control> instead of ContentPlaceHolder.

Main point it is possible to do :)
Apr 24, 2014 at 6:19 PM
Apr 25, 2014 at 1:21 PM
Unfortunate I can't get your code suggestions to work.

I like the theme you've sent me though, so definitely going to explore that.
I'm hoping that you've got more pointers on your code suggestions, that would be great.

Apr 25, 2014 at 1:43 PM
The theory of the code should work.

Just getting the right control is the issue.

<asp:ContentPlaceHolder ID="cphBody" runat="server" />

I will do some testing and once figured out will post it here.

most likely

<blog: postlist> <-- User Control Would work.
Apr 25, 2014 at 1:55 PM
Really appreciated!

It will help other too I'm sure, I've seen multiple questions on the similar topic outside these discussions here. Sometimes reason enough to abandon BE.NET which I find hard to believe.
Apr 25, 2014 at 2:20 PM
I know others would like to know how to do this too :)

I am curious too.

It will be done !

Apr 25, 2014 at 7:04 PM

I solved it!!!!!!!!!!!!

Super super easy fix

Just put this in your front page any where you like it:

[usercontrol:~/User controls/PostList.ascx]

Can put that in just the editor and it works!!!

Forgot about user control injection.

See it live on my website below

The SEO Testing Platform

Can't believe its that simple!

Have a great day!

Brian Davis

Apr 26, 2014 at 12:31 AM

You're awesome!

This is really really great, thanks for sorting this out and taking the time to guide me through it, You Rock!

If I see this question pop up again, I'll refer to this discussion and your site!
I think this helps a lot of people breaking their head on how to do it.
It works like a charm and so easy do it.

Apr 26, 2014 at 4:05 AM
Hi Mfpgoose,

No problem at all :)

Told you it will get done.

You can also create your own control and inject it the same way.

Was thinking a custom control for post list to display specific hand pick posts or the most visited posts to list on main page.

Main point if you have an issue post it here, someone will eventually figure it out.

If you don't get answer keep asking.

For me I periodically check the forum just a quick scan of the first 10 posts and thats it.

So if a question goes off the 1st page more likely won't get answered.

So reply to your post to bump it up to the first page again :)
Apr 26, 2014 at 1:23 PM
Hi Brian,

Can you do me a favor and test if when you add a new post, that it will show?

In my environment, if I add a new post, it will not show.
It will show when I'm logged in as an admin, but not to visitors.

Apr 26, 2014 at 2:55 PM
Its the time off-set issue.

It happen with me too, just set the post a day behind Like today is 26 so have its publish date 25 and that works.

You can also fix it for good by putting in your server off-set time in Admin settings.

You have to figure out what time zone your server is actually in and then compare that with your local time zone.

The difference between the two you have to put in the off-set settings.

Like Server time: 3:00 p.m

Local Time : 5:00 p.m

Off-set would be -2

Apr 26, 2014 at 7:22 PM

Great, that solved it!

Thanks again!