How to integrate BE into existing ASP.net site

Jun 8, 2010 at 5:09 AM

Hi,

 

I have a existing website hosted onto server,  I just want to integrate BE into my site.  But how can I do this?  As only 1 virtual directory and domain name is available in hosting server.  Can anybody help me this?

 

Many Thanks!

Jun 8, 2010 at 12:59 PM

In your situation the best (imho) option for you will be to create a custom theme that looks like your site and use the blog as your website. It is very extensible and will probably suit your needs.

Jun 9, 2010 at 5:01 AM

Thanks Taylex, for giving the response.  But most probably you did not understand my problem.  I have no right to create new virtual directory in hosting environment.  I am having a web space in which my existing site lie.  I can depoy my existing website there but  can not make any configuration in  IIS or can create virtual directory.  BE and existing site both are different web site.   Now my question is that how can I integrate\ Deploy it with my existing site so I need not to purchase another websapce or in other words how can I call BE into my existing web site.  If I am going to merge it, it will take lot of modification.  Do you know any way to do this?

 

Jun 9, 2010 at 12:52 PM
Edited Jun 9, 2010 at 12:54 PM

Actually I understood exactly however I should havee xpanded to ask you how complex the existing site is. If it is primarily static then I still suggest you re-skin BE and make it your website. You can easily add pages to BE and give it the appearance of a website that just happens to have a blog in it.

The other route of integrating is much more complicated although certainly doable. I followed a post from these discussions some time ago and was successful. I believe that was with version 1.4 though. I'll see if I can find it and edit this post with the URL.

 

edit: here is the URL http://www.ajaymatharu.com/integrating-blogengine-into-an-existing-site/

Jun 9, 2010 at 6:12 PM

Hi Taylex,

given URL is not working.  For the option 1 I have to understand the blog engine code which might be not easy.  I still could not understand how can I change the menu item.  Could you please tell in which file i have to make change to alter the menu?

Jun 11, 2010 at 11:45 AM

The link is working for me.

To change menu items you want to open /themes/name-of-theme-your-using/site.master. The below example is from the Standard theme. You do not necessarily have to use AbsoluteWebRoot and Resources.labels although it would be a good idea.

A new entry might look like this, <a href="<%=Utils.AbsoluteWebRoot %>MyNewPage.aspx">My New Page</a> or <a href="~/mynewpage.aspx" runat="server">My New Page</a>

<ul>
      <li><a href="<%=Utils.AbsoluteWebRoot %>" rel="home"><%=Resources.labels.home %></a></li>
      <li><a href="<%=Utils.AbsoluteWebRoot %>archive.aspx"><%=Resources.labels.archive %></a></li>
      <li><a href="<%=Utils.AbsoluteWebRoot %>contact.aspx"><%=Resources.labels.contact %></a></li>
      <li><a href="<%=Utils.FeedUrl %>" class="feed"><img src="<%=Utils.AbsoluteWebRoot %>pics/rssButton.gif" alt="Feed" /><%=Resources.labels.subscribe %></a></li>
      <li><a href="javascript:void(BlogEngine.filterByAPML())" class="apmlfilter"><%=Resources.labels.filterByApml %></a></li>
    </ul>

Jun 14, 2010 at 6:31 AM

Ya,

It's working now.  Thanks.  I'll modify the menu as per your suggesstion.