in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Single Column Layout?

Last post 10-15-2008 1:10 PM by cdils. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-20-2008 2:47 PM

    Single Column Layout?

    Currently, there are 2-column and 3-column layouts ( example: MainLeft is 2 column layout).

    How would I include a 1-column layout, so there would be only one column spanning the full width of content area?

    I would like this '1-Column' layout to appear in the dropddown for content type when defining a region.

  • 08-24-2008 10:23 AM In reply to

    Re: Single Column Layout?

    Answer

     I was able to create a '1 Column Template' whose content will span the entire width of content area. I think this is good because it now allows the user to create content based on 3 column or 2 column or 1 column layouts.

    The following steps need to be done to implement this:

    1. Create a stylesheet file by the name of '1colMain.css' under the folder '~/controls/ content/styles' with the following style inside it:
      #MainContent{
        margin:0px;
        float: left;
        padding-top: 10px;
        width: 770px;
      }
    2. Run the following script in SQL Server Management Studio for the dashCommerce database:

    Insert into dashCommerce_Content_Template
    ( Name, Description, StyleSheet,
    CreatedBy, CreatedOn, ModifiedBy, ModifiedOn)
    Values
    ('1 Column Template (Main)', '1 Column Template',
    '~/controls/content/styles/1colmain.css','Sunil', getdate(),
    'Sunil', getdate())

    declare @newTemplateId int
    set @newTemplateId = SCOPE_IDENTITY()

    Insert into dashCommerce_Content_Template_TemplateRegion_Map
    (TemplateId, TemplateRegionId)
     values (@newTemplateId, 3)

  • 10-15-2008 1:10 PM In reply to

    • cdils
    • Top 200 Contributor
    • Joined on 08-19-2008
    • Posts 5

    Re: Single Column Layout?

     Thank you so much for the info! Worked perfectly.

Page 1 of 1 (3 items)