Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Uniform listing display?

Uniform listing display?

Locked

Views: 1,306

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
8 Dec 2008, 6:12 AM
#1
stride_r avatar

stride_r

Zen Follower

Join Date:
Aug 2008
Posts:
115
Plugin Contributions:
0

Uniform listing display?

I'd like to make the category product displays the same as that used for "all Products", "new products", & "featured products". Currently they are very different layouts. Is this possible?

8 Dec 2008, 7:06 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Uniform listing display?

Search the forum for yellow1912's "Using one single listing template" thread.

8 Dec 2008, 1:12 PM
#3
stride_r avatar

stride_r

Zen Follower

Join Date:
Aug 2008
Posts:
115
Plugin Contributions:
0

Re: Uniform listing display?

Thanks for the lead .. and yellow1912's "Using one single listing template" post is a terrific one.

...but my issue is pretty much the opposite - the template format i do **NOT **want to adopt site- side is the one accessed at "Admin->configuration->Product Listing".

My preference is just the opposite - to apply any one of the templates used for "new products" or "special Products", etc.

The reason is that i find the template that yellow1912 adopts site-wide to also be the least flexible as its more rigidly table-based. Better to use one that's not table based so that we can have greater control through css.

Someone in that post also mentioned that version 1.4 is likely to adopt a site-wide unifom template - which would be terrific ....but lets all pray that a rigidly table based template is NOT the one the choose to apply.

8 Dec 2008, 3:05 PM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Uniform listing display?

I've seen hints that v1.4 will do away with tables for page layout. But whether it does away with tables for laying out product listings, I don't know.

If you think about it, tables make sense for listing products, since any list of items is, in fact, a list of tabular data.

But tables do present problems, at times, in some browsers, with the proper cascade of styles. So it wouldn't hurt to keep their use to a minimum.

Rob

8 Dec 2008, 3:16 PM
#5
stride_r avatar

stride_r

Zen Follower

Join Date:
Aug 2008
Posts:
115
Plugin Contributions:
0

Re: Uniform listing display?

tables make sense for listing products, since any list of items is, in fact, a list of tabular data.

Hi Rob,

You're right ...but the problem i have with using tables for this purpose is that, when you try to customize the layout of Product listing, via admin, all it does is add or remove columns from the table. (ex: add or remove the Manufacturer field from the product listing and see what i mean) There's very little one can do to fine tune a layout when each of the data fields is locked up in its own table cell.
If one must stick with a table layout ...then i hope they at least include in Admin a means to specify the order of the fields in the table ....or better yet - give us a set of swappable base templates , each with a different initial layout, just for that purpose?!
Hey, a guy can dream can't he?!? :P

8 Dec 2008, 3:40 PM
#6
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Uniform listing display?

I dream too. :yes: With mixed results. :lamo:

But in this case, you can use CSS to control the appearance of the various chunks of table -- though you may need to edit code to add class identifiers so you can do that. And you can, of course, edit the proper php file to change the order to your preferred set up.

But yes, an admin-based layout tool would be great. I think it may be along in version 1.6 or so.

Rob

8 Dec 2008, 4:26 PM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,646
Plugin Contributions:
0

Re: Uniform listing display?

But yes, an admin-based layout tool would be great. I think it may be along in version 1.6 or so.

Gee, aren't you going to be happy when our next big release comes out. :D

8 Dec 2008, 5:09 PM
#8
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: Uniform listing display?

I disagree with the statement about tables restricting flexibility that CSS offers.
Simply find the table and add an ID to it and CSS flexibility comes flooding back.
Use the automatically built table to build the structure and CSS to add styles.

I always do this and have no problems.

(but yes, the less tables there are the better!)

8 Dec 2008, 5:12 PM
#9
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Uniform listing display?

You can have any style of layout you ever want with css based template.
But that doesn't mean you cant tweak the default category listing template to use table based. It's all up to you.

8 Dec 2008, 7:48 PM
#10
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Uniform listing display?

Kim:

Gee, aren't you going to be happy when our next big release comes out. :D

Yay! I expect to be happy anyway, but I just got happier. :bigups:

Rob

9 Dec 2008, 12:28 AM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Uniform listing display?

Stride-r -

If you change the template used for product listing to a layout that you like, you can then apply the "single listing template" thread to that. Yellow1912 has posted about this recently.

And the product listing in general is one that is relatively simple to customize (the Column Grid mod only needs two modified files), so going between a table and a pure CSS layout is not a big deal. Now what will be nice is when there is universal browser support for CSS tables, so we can get the solidity of table layout whenever we want without hurting accessibility (that means when people no longer use IE below v8 - other major browsers are already good).