in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Content Management Section New Pages - display problem

Last post 08-24-2008 11:30 AM by sun21170. 12 replies.
Page 1 of 1 (13 items)
Sort Posts: Previous Next
  • 05-25-2008 10:08 AM

    Content Management Section New Pages - display problem

    I am just starting out using Dash commerce and it looks really good so far.  I do have a question, however about the way that the content management system displays the regions on the page and how to get them to display the way I would expect them.  I would expect using the template - 2 column template (main right) that the content would display with the main content in the center, and the right on the right side of the screen.  However, when I put in my test content, it doens't arrange itself in columns but stacks it - as you should be able to see in the screen shots below.  

    If someone could tell me what I am doing wrong so that the data shows up in two columns, that would be great! 

     here is the page showing how the page was set up in the content management system.   

     CMS Page Setup

     

    Here is how it displays in IE 7 on vista:

    ie 7 on vista
    and finally, here is how it displays in firefox on vista

    firefox on vista

     Any information on what I might be doing wrong would be apprecidated.  

     Thanks!

  • 06-17-2008 8:27 AM In reply to

    Re: Content Management Section New Pages - display problem

    I have the same problem. It must be a forgotten bug in dashCommerce. I noticed thet the CSS for the content pages is using different classes that the product catalog and product pages which work fine. What's weird is that other than the calss names, the css looks the same at first glance.

    I'll have to scrutinize the page to see what's going on. It looks like a float issue...

    I find it a bit odd that this has not come up, anybody out there using the content pages?

     

     

  • 06-17-2008 8:39 AM In reply to

    Re: Content Management Section New Pages - display problem

    Ya know, I ran into something similar just the other day and I fixed it by setting the Template_TemplateRegion_Map to have the data that was originally in there (I had "fixed" something by changing it based on some community feedback). Now it seems as though the original setup is how it should have been done.

    So, how to fix it? In the basedata.sql script there is a section that does some inserts into the Template_TemplateRegion_Map - make sure your data is the same as what should be in there - basically the first few inserts then the commented out inserts were the original data.

    Please let me know how that shakes out for you and if it works out ok, I'll update the 3.0.1 Release package.

    --
    Support dashCommerce - Buy Our Stuff!!


    Find a bug? Create a Work Item for a fast response.. Want to help? Create a patch for us! Documentation? Help us write some!
    Filed under:
  • 06-17-2008 9:20 AM In reply to

    Re: Content Management Section New Pages - display problem

    Thnaks, that fixed it.

    Also i don't know if this is intended, but all three content kinds, (Left, Main, Right) display in the Main content area (global). One would think that the left content would go to the left of the page (under the Category menu). So the final page if one selects the 3 col template is : LeftContent - category menu then LeftContent - whatever region one puts here, then Main Content, and then rightContent...

    Is there a way to combine the 2 LeftContent areas into one so one does not endup with 4 columns?

    Thanks

     

     

  • 06-17-2008 10:03 AM In reply to

    Re: Content Management Section New Pages - display problem

    The default page has the content placeholder and the category menu,

    But I'm having a hard time finding the code that generates the page content. Looked in default.aspx and code behind and the master page. Can someone point me in the right direction?

     Thanks

     

  • 06-17-2008 10:06 AM In reply to

    Re: Content Management Section New Pages - display problem

    nevermind, found pagebuilder

  • 06-20-2008 7:43 AM In reply to

    Re: Content Management Section New Pages - display problem

    I put a new placeholder in the left column of default.aspx and then added an if in pagebuilder.cs to place the content into the left column.

    That works.

    Thanks

  • 08-11-2008 4:05 PM In reply to

    Re: Content Management Section New Pages - display problem

     Can you post that bit for me.  I am trying to do the same.  Thanks.

  • 08-13-2008 7:47 AM In reply to

    Re: Content Management Section New Pages - display problem

    (just some off-topic thought while readinf this post)

    I wonder why people shift to VISTA and leave windows XP.

  • 08-13-2008 8:27 AM In reply to

    Re: Content Management Section New Pages - display problem

    Ok,

    in pagebuilder.cs replaced line 137:

    ((PlaceHolder)this.Placeholders["contentPlaceHolder"]).Controls.Add(templateRegionControl);

    with:

    string templateRegionName;

    templateRegionName = templateRegion.Name.Replace(" ", string.Empty).ToString();

    if
    ( templateRegionName == "LeftContent")

    {

    // PUT LeftContent to Left Placeholder

    ((
    PlaceHolder)this.Placeholders["contentPlaceHolderLeft"]).Controls.Add(templateRegionControl);

    }

    else

    {

    ((
    PlaceHolder)this.Placeholders["contentPlaceHolder"]).Controls.Add(templateRegionControl);

    }

     

    In default.aspx replaced:

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div id="leftContent">

    <dashCommerce:CategoryNavigation ID="categoryNavigation" runat="server" />

    </div>

    <div id="mainContent">

    <asp:PlaceHolder ID="contentPlaceHolder" runat="server" />

    <asp:PlaceHolder ID="analyticsPlaceHolder" runat="server" />

    </div>

    </asp:Content>

    WITH:

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div id="leftContent">

    <dashCommerce:CategoryNavigation ID="categoryNavigation" runat="server" />

    <asp:PlaceHolder ID="contentPlaceHolderLeft" runat="server" />

    </div>

    <div id="mainContent">

    <asp:PlaceHolder ID="contentPlaceHolder" runat="server" />

    <asp:PlaceHolder ID="analyticsPlaceHolder" runat="server" />

    </div>

    </asp:Content>

     

  • 08-13-2008 11:46 AM In reply to

    Re: Content Management Section New Pages - display problem

    nabeel:

    (just some off-topic thought while readinf this post)

    I wonder why people shift to VISTA and leave windows XP.

     

     Ummm... have you bought a new computer in the last 2 years?  Granted, like all new Windows products, the first generation sucked- but you gotta move forward sometime.  And while we're here, why did people ever shift to XP after 98?  Why go to OS X when OS 9 was very robust?  Don't litter these forums with senseless questions... especially questions that have nothing to do with DashCommerce.  If you want to stay 2 years behind the curve, that's your own business.

  • 08-13-2008 11:49 AM In reply to

    Re: Content Management Section New Pages - display problem

    Thanks for the post, mfrimu.  Much appreciated. 

  • 08-24-2008 11:30 AM In reply to

    Re: Content Management Section New Pages - display problem

     I think the following post might help you: http://dashcommerce.org/forums/t/1360.aspx

    I was able to get the correct layouts by following the indicated forum post. All you need to do is make some stylsheet changes. Please do not make any database changes as that will not solve your problem.

    Also, you must have an understanding of possible layouts in dashCommerce, before you try to correct it. 

    MainLeft means there is a left column and a main column, so that main column is right most column in content area.

    MainRight means there is a right column and a main column, so that main column is left most column in content area.

    3 column means there is  left, main and right columns, so that main column is the center column in content area.

Page 1 of 1 (13 items)