Left justifty Summary on categorygridpage

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
Jaz
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Nov 05, 2008 4:04 am
Location: Torrance, CA
Contact:

Left justifty Summary on categorygridpage

Post by Jaz » Fri Nov 05, 2010 1:01 am

I want to left justify the summary text for each item in the catregory grid page, but left the rest of the content (thumbnail, reviews, price) centered. How would I did this?

Also, I would like to add some spacing between the summary and the price.

Thanks,
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Left justifty Summary on categorygridpage

Post by mazhar » Fri Nov 05, 2010 5:57 am

I think you will be required to some CSS styles. For example you can setting text-alig:left on following style

Code: Select all

.catalog .tableNode div span { text-align:left;}

User avatar
Jaz
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Nov 05, 2008 4:04 am
Location: Torrance, CA
Contact:

Re: Left justifty Summary on categorygridpage

Post by Jaz » Fri Nov 05, 2010 1:15 pm

Thanks. However I am having trouble figuring out where the summary is called out. Where in the code would I put the div tag?

Code: Select all

 <div class="catalogWrapper">
                <asp:DataList ID="CatalogNodeList" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" Width="100%" 
                    OnItemDataBound="CatalogNodeList_ItemDataBound" DataKeyField="CatalogNodeId" CssClass="catalog" EnableViewState="false" HorizontalAlign="Left">
                    <ItemStyle HorizontalAlign="center" VerticalAlign="bottom" Width="33%" CssClass="tableNode" />
                    <ItemTemplate>
                        <asp:PlaceHolder ID="phItemTemplate1" runat="server"></asp:PlaceHolder>
                        <uc:ProductPrice ID="Price" runat="server" Product='<%#Container.DataItem%>' />
                        <asp:PlaceHolder ID="phItemTemplate2" runat="server"></asp:PlaceHolder>
                        <div style="margin-top:10px;margin-bottom:20px" id="Add2CartLinkDiv" runat="server" visible="false" /></div>
                    </ItemTemplate>
                    <SeparatorTemplate>&nbsp;</SeparatorTemplate>
                    <SeparatorStyle CssClass="separator" Width="1" />
                </asp:DataList>
                <br /><br /><br />
                 <div style="margin-top:30px;margin-bottom:20px" >
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Left justifty Summary on categorygridpage

Post by jmestep » Fri Nov 05, 2010 4:23 pm

That would depend on what placeholder you are adding your summary to from the code behind and you can format it there. If it isn't there, then you could add a new label or placeholder formatted the way you want.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
Jaz
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Nov 05, 2008 4:04 am
Location: Torrance, CA
Contact:

Re: Left justifty Summary on categorygridpage

Post by Jaz » Fri Nov 05, 2010 6:17 pm

I'll admit that I am not too good with the acsx.cs files. Here is what I am trying:

Code: Select all

 //OUTPUT SUMMARYcellField .Attributes.Add("style", "TEXT-ALIGN: left");

					itemTemplate1.Controls.Add(new style ("TEXT-ALIGN: left"));

						
                        itemTemplate1.Controls.Add(new LiteralControl(catalogNode.Summary));
                    }

                    itemTemplate1.Controls.Add(new LiteralControl("<br />"));
Definately not working.
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --

Post Reply