Blog Question

Topics: General
Jul 1, 2011 at 12:38 AM

New to using the CMS and have a few questions about the blog.  I followed the instructions on setting the blog up and added one entry.  When I go to the blog page I see my blog entry, the Archive and the Tags.

When I click on the Blog entry title it just sits there on the same page and does nothing, doesnt bring up the blog content detail.

When I click where it shows Comments(0) it does the same thing.

The RSS click works but the blog entry click and comments click isnt.

I know it is probably something I am missing and have been playing with it but am stumped.

Thank you.....

Jul 1, 2011 at 6:15 AM

what does your urls looks like when clicking on a blog entry?

Developer
Jul 1, 2011 at 6:23 AM

Hi kcchief

Could you please tell me?

  1. The build number of your C1? (Admin console > Help > About Composite C1 > Build No.  2.1.4192.18646)
  2. The version of the Blog package you've installed (Admin. console > System > Packages > Installed packages > Composite.Community > Composite.Community.Blog > Package Info > Version > 1.5.6)
  3. The web server you are using (IIS 6, IIS7, WebMatrix's IIS Express, Visual Studio's built-in Dev Server)?

I would like to reproduce it if possible.

Thank you in advance

/Vitaly

    
Jul 1, 2011 at 6:25 AM

Here is what the entries show after I click each one.

http://localhost:85/company_blog/2011/06/30/third-blog-entry

http://localhost:85/company_blog/2011/06/30/second-blog-entry

http://localhost:85/company_blog/2011/06/30/first-test-blog

When I click commets it looks like this

http://localhost:85/company_blog/2011/06/30/third-blog-entry#newcomment

http://localhost:85/company_blog/2011/06/30/second-blog-entry#newcomment

http://localhost:85/company_blog/2011/06/30/first-test-blog#newcomment

Thank you for the help....

Jul 1, 2011 at 6:32 AM
Build no. 2.1.4113.99
Version 2.1.1
Blog 1.5.6
The site is running on a Windows Server 2003 machine running IIS 6.0
Thank you
Jul 1, 2011 at 6:33 AM

what does the links look like from the rss feed? is it because of any casing-issue, where the link should actually be http://localhost:85/company_blog/2011/06/30/Third-blog-entry maybe?

Jul 1, 2011 at 6:43 AM

The RSS feed link when I click it in the url looks like this:

http://localhost:85/BlogRssFeed.ashx?bid=7388b042-4189-4fa0-9a8b-ae9f2d8f4e16&cultureName=en-us

Then the links in the feed look like this

http://localhost:85/Home/Company-Blog.aspx/2011/06/30/Third-Blog-Entry

http://localhost:85/Home/Company-Blog.aspx/2011/06/30/Second-Blog-Entry

http://localhost:85/Home/Company-Blog.aspx/2011/06/30/First-Test-Blog

Thank you.....

Jul 1, 2011 at 7:02 AM

so can you confirm that browsing http://localhost:85/company_blog/2011/06/30/Third-Blog-Entry work?

Sounds like the same issue there was here http://compositec1.codeplex.com/discussions/260636 and here http://c1packages.codeplex.com/workitem/767

Jul 1, 2011 at 7:07 AM

Yes if I copy the link from the RSS feed and use it, it works.

One thing I have noticed is my urls dont have .aspx and also it is not following the tree.

Example when I click about us it displays about-us  but shouldnt it show Home/About-Us.aspx   

Thanks

Bill

Jul 1, 2011 at 7:10 AM

so what is the exact links that works... is it http://localhost:85/Home/Company-Blog.aspx/2011/06/30/Third-Blog-Entry or http://localhost:85/company_blog/2011/06/30/Third-Blog-Entry ?

about the urls without .aspx and Home and lowercase, it looks like you have installed the Contribution package and using NicerUrls, maybe due to the choice of using Masterpages templates?

Jul 1, 2011 at 7:23 AM

These are the exact links that work

http://localhost:85/Home/Company-Blog.aspx/2011/06/30/Third-Blog-Entry

http://localhost:85/Home/Company-Blog.aspx/2011/06/30/Second-Blog-Entry

http://localhost:85/Home/Company-Blog.aspx/2011/06/30/First-Test-Blog

But for some reason the links on the page show this

http://localhost:85/company_blog/2011/06/30/third-blog-entry

http://localhost:85/company_blog/2011/06/30/second-blog-entry

http://localhost:85/company_blog/2011/06/30/first-test-blog

One thing I am noticing is that the menu is not following the tree structure.....

Jul 1, 2011 at 7:25 AM

hm... yeah, you would need to answer wysocki about the more technical details... what versions, what packages, which startersite if you're using that...

Developer
Jul 1, 2011 at 7:28 AM

Yes, the problem starts when you use Blog + CompositeC1Contrib

I have installed Contribution.CompositeC1Contrib.Core v1.0.6 and now reproduce the same behavior

Jul 1, 2011 at 7:35 AM

but can you confirm that the problem is indeed the casing of titles and http://localhost:85/Home/Company-Blog.aspx/2011/06/30/Third-Blog-Entry works?

Jul 1, 2011 at 7:40 AM

Yes when I take this link

http://localhost:85/Home/Company-Blog.aspx/2011/06/30/Third-Blog-Entry

and past it in my browser url the detail blog comes up.

The above link is the link to the blog in the RSS Feed....

But the link on the blog title in the blog area does not work....

Thanks

 

Jul 1, 2011 at 7:41 AM

Is there any way to remove the

Contribution.CompositeC1Contrib.Core

or can I?  The site uses master pages...

Developer
Jul 1, 2011 at 7:45 AM

Hi burningice

http://localhost:85/Home/Company-Blog.aspx/2011/06/30/Third-Blog-Entry is working, even with the CompositeC1Contrib installed
http://localhost:85/company_blog/2011/06/30/third-blog-entry is not working

I was using WinSrv 2003 / IIS6
C1 2.1.3 (2.1.4113.99)
Starter Site: XSLT-based

Installed Blog v1.5.6 (worked OK)
Then installed Contribution.CompositeC1Contrib.Core v1.0.6

With new URLs (no Home, no aspx, lower case), the Blog entries stop showing

Jul 1, 2011 at 7:47 AM

Wysocki,

That is exactly what mine is doing.  Exactly what you just described....

Thanks.....

Jul 1, 2011 at 7:56 AM

I went to the navigation function and did a preview and here is how it is showing it is building my menu:

<html xmlns="http://www.w3.org/1999/xhtml">

    <head/>
     <body>
         <table width="100%" cellspacing="0" cellpadding="3" height="20">
             <tr>
                 <td bgcolor="#625D34">
                     <div align="center" class="menu">
                        <a href="/Home.aspx?dataScope=administrated" class="NavigationOpen">Home</a>
                    </div>
                </td>
                 <td bgcolor="#625D34">
                     <div align="center" class="menu">
                        <a href="/Home/AboutUs.aspx?dataScope=administrated">About Us</a>
                    </div>
                </td>
                 <td bgcolor="#625D34">
                     <div align="center" class="menu">
                        <a href="/Home/Products.aspx?dataScope=administrated">Products</a>
                    </div>
                </td>
                 <td bgcolor="#625D34">
                     <div align="center" class="menu">
                        <a href="/Home/Services.aspx?dataScope=administrated">Services</a>
                    </div>
                </td>
                 <td bgcolor="#625D34">
                     <div align="center" class="menu">
                        <a href="/Home/Clients.aspx?dataScope=administrated">Clients</a>
                    </div>
                </td>
                 <td bgcolor="#625D34">
                     <div align="center" class="menu">
                        <a href="/Home/ContactUs.aspx?dataScope=administrated">Contact Us</a>
                    </div>
                </td>
                 <td bgcolor="#625D34">
                     <div align="center" class="menu">
                        <a href="/Home/CompanyBlog.aspx?dataScope=administrated">Company Blog</a>
                    </div>
                </td>
            </tr>
        </table>
    </body>
</html>
Now what is weird is the link for the products page shows shows  <a href="/Home/Products.aspx?dataScope=administrated">Products</a> but what is being put on my page is http://localhost:85/products
Developer
Jul 1, 2011 at 8:39 AM
Edited Jul 1, 2011 at 8:41 AM
kcchief wrote:

Is there any way to remove the

Contribution.CompositeC1Contrib.Core

or can I?  The site uses master pages...

Contribution.CompositeC1Contrib.Core actually installs http://compositec1contrib.codeplex.com/

One of its features is Nice Urls: http://compositec1contrib.codeplex.com/wikipage?title=Nicer%20Urls&referringTitle=Documentation

As a workaround, you can simply comment out two entries in your web.config like this:

<system.web/httpModules>:
<httpModules>
    <!-- <add name="UrlFilter" type="CompositeC1Contrib.Web.UrlFilterModule, CompositeC1Contrib" /> -->
</httpModules>

<system.webServer/modules>:
<modules>
    <!-- <add name="UrlFilter" type="CompositeC1Contrib.Web.UrlFilterModule, CompositeC1Contrib" /> -->
</modules>

You will lose the Nicer URLs  functionality but should keep the Master Pages - and you will be back to URLs like this http://localhost:85/Home/Company-Blog.aspx/2011/06/30/Third-Blog-Entry

burningice, will it be enough like I suggest?

(If I am not mistaken, there was a problem with shorter URLs in the Blog package. It was fixed to work with the upcoming release of C1 2.1.3 (It is not available for 2.1.1, though))

Jul 1, 2011 at 8:41 AM

the NicerUrls functinality installs a filter that replaces the links "on the way out of the door" which is why you internally see's the C1 legacy urls, but the more compact version when the viewing the site. You can easily disable NiceUrls by removing/commenting the UrlFilterModule in web.config.

@wysocki like i posted on your issues list, IMO being case sensitive when looking up both News and Blog title is a design flaw and should be changed! Its by design that NiceUrl lowercases the whole url to keep consistency, nothing more annoying tHAn tO rEad SoME weIRd CasEd tExt :)

Jul 1, 2011 at 8:45 AM

That fixed it.

I commented out the following lines

<httpModules>
    <add name="UrlFilter" type="CompositeC1Contrib.Web.UrlFilterModule, CompositeC1Contrib" />
</httpModules>

<system.webServer/modules>:
<modules>
    <add name="UrlFilter" type="CompositeC1Contrib.Web.UrlFilterModule, CompositeC1Contrib" />
</modules>

and now it is all working, the url pathing and the blog detail as well.

Thank you for all you help, I appreciate it.....

Jul 1, 2011 at 8:57 AM

Maybe there would be a way to create it so it is optional with in the CMS, a way to turn nice urls on and off.  The client I am working on will be intergrated with a third party tracking company and one of the things they use on there tracking is the whole complete raw url, the complete structure that takes you to that page.  So actually having the whole complete url with the structure on how you got to the page in the url is what I am going to need to have for their tracking system when it is added in.

Thank you guys for all your help, I appreciate it.

 

Coordinator
Jul 1, 2011 at 11:45 AM

@burningice Case sensitivity is by design - years ago we used to accept any kind of casing, until people with SEO knowledge educated us that we were in fact vulnerable to duplicate content (/Hello and /hello are two different paths). We fixed this by doing a perma redirect for badly cased paths to the good cased paths, so requests for /hello would go to /Hello and everyone is happy (both users why hand type and search engines). So case sensitivity is indeed by design and a good thing - but it makes good sense also doing a redirect in case of wrong casing.

Jul 1, 2011 at 11:52 AM

@mawtex makes sense... i guess it would here goe under the "be generous on input but strict on output", meaning that you should accept as much as possible, also all kinds of casing, but the output - in this case a permanent redirect, should be strict.