By ultrajet on
Hi,
Just wondering, how do you add a new style in views?
I needed to add a custom table of one field with two columns views.
Hi,
Just wondering, how do you add a new style in views?
I needed to add a custom table of one field with two columns views.
Comments
I am not sure exactly what
I am not sure exactly what you are trying to do but you could look at the theming guide. It has a bit on theming Views pages.
http://drupal.org/node/352970
I'm talking about something
I'm talking about something like this:
By default Tables work like this:
Field1 | Field2
A | A
B | B
C | C
I needed to create a table that functions like this:
Field1 | (Field1) | Field2 | (Field2)
A | D | A | D
B | E | B | E
C | F | C | F
Which is two columns per field
But I will only need to use one field for the particular work I'm going to do.
But modifying the current views table like this won't be feasible, since I also need the original for other type of views
If you are not able to
If you are not able to override the setting (see below) on a display of the view as the same display is used elsewhere, then clone it and work on that.
I am not sure how familiar you are with Overriding parts of a display on a view. Just because you have a block that uses fields x, y, z it doesn't mean that another block or page which is part of the same view can't use fields v, w, x as long as you click on the Override button before changing the fields.
If you have a copy you can modify then you can have each of the fields appearing twice and that would solve your problem without a lot of hassle.
It's not actually a block,
It's not actually a block, it's a page that has a basic setting of style:table wherein I need the field1 to appear in two columns
The same thing applies
The same thing applies. As long as that display (page query) is not used elsewhere you can override the fields and modify them without interfering with any of the other displays (pages or blocks) that also use the same View as a base.
If the display is used in more places then make a duplicate (just copy the setting across to a new page) and then Override the fields on one and add the duplicates.
Thank you for your patience,
Thank you for your patience, I'm not sure if I get what you mean.
But I'm not going for duplicates, rather I need field1's item to continue on the second column.
What did you mean when you mentioned override? I kinda understand that it involves two page display in one views, but how do I connect it as a second column?
try views semantic view or
try views semantic view or views two column table maybe it will serve your needs.
--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com