Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 7 of 7

Thread: Category Description Placement

  1. #1
    donttryathome is offline Senior Member
    Join Date
    Apr 2009
    Posts
    171

    Default Category Description Placement

    I've got two categories that both have a category description. Both categories are using entity.gridwithprices.xml.config with identical entity settings and nearly identical descriptions. In category 1 the description is displayed above the paging control. In category 2 the description is displayed below the paging control. I can't find anything in the XML package that would cause this and I'm at a loss trying to figure out what is causing the descriptions to appear in different areas of the page.

    Anyone seen this or have any clues on what might be causing this?
    Running: AspDotNetStorefront ML 8.0.1.2/8.0.1.2

  2. #2
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    For a certainty it is something in the XML package. I would try a tool called WinMerge to compare the two files. That might help you find the subtle difference. Otherwise, without some code, providing specific help here will be just about impossible.
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  3. #3
    donttryathome is offline Senior Member
    Join Date
    Apr 2009
    Posts
    171

    Default

    Both categories are using the same XML package. I just went back and tested both categories with a totally unmodified entity.grid.xml.config and it's still placing them in different areas, so I'm thinking it has to be something else that's causing it. I see nothing in either XML package that would cause it to place the elements differently. Is there anything else I can check (short of checking source code, I don't have access)? This makes no sense.
    Running: AspDotNetStorefront ML 8.0.1.2/8.0.1.2

  4. #4
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    Since they are using the same XML package, I'm a little more confused. Tell me, if you try to create two new categories can you duplicate this issue?
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  5. #5
    donttryathome is offline Senior Member
    Join Date
    Apr 2009
    Posts
    171

    Default

    I'm pretty confused myself. I seem to have "fixed" it but it still makes little sense.

    I created two new categories then pasted the description HTML from the original category1 into description for test1. Pasted the description HTML from original category2 into description for test2. Same result. Category2 is placed differently.

    So just to see what would happen I pasted the description from category1 into category2 and, viola, everything is now fine. Here's what doesn't make sense:

    HTML for category1:
    Code:
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
    	<tr>
    		<td align="center" valign="top">
    			<img src="/skins/skin_1/images/DoM_banner.jpg" alt="Deals of the Month" height="86" width="664" border="0">
    		</td>
    	</tr>
    </table
    HTML for category2:
    Code:
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
    	<tr>
    		<td align="center" valign="top">
    			<img src="/skins/skin_1/images/doubledis_banner.jpg" alt="Double Discount Super Sale" height="86" width="664" border="0">
    		</td>
    	</tr>
    </table>
    Pasting the HTML from category1 into category2 and changing the image filename back to that of category2 fixed it. I have no idea what's going on, but at least it seems to be working now. Although I'd still like to know what's happening so I can try to avoid this in the future.
    Running: AspDotNetStorefront ML 8.0.1.2/8.0.1.2

  6. #6
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    It doesn't make any sense to me from looking at that code either. I'm glad you have it fixed. May I ask why you are using a table to center things though?
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  7. #7
    donttryathome is offline Senior Member
    Join Date
    Apr 2009
    Posts
    171

    Default

    A bad habit I can't seem to shake. I'll switch them over to divs as I probably should have done initially.
    Running: AspDotNetStorefront ML 8.0.1.2/8.0.1.2