REPOST: Does anyone have a solution to this issue? =]
Posted by illusionest on 6 Jul 2012 at 05:59 UTC
Hello fellow Drupal-ers!
I've been playing around with the Views module (which is great), on Drupal 6. I want to create a 3 column (1 row) table. Within each column i want to display some nodes. Each column will call up a different content type of nodes, almost like a newspaper, 3 columns. Its actually quite simple but Im not extremely familiar with views.
Basically, I want:
column 1 column 2 column 3
node title | node title | node title |
node info | node info | node info |
node title | node title | node title |
node info | node info | node info |
node title | node title | node title |
node info | node info | node info |
Ive searched around and im not sure what the best solution is. I tried making 3 display blocks, set them to "grid" with "1 column", then using floats, but that turned out into a disaster, i'll have to clear it somehow after the 3 blocks (unless if i make an empty block just for clearing, that's kinda weird no?).
Im not sure if this can be done with just views alone, or if another module is needed... or if i need to pull up the template.php. But, Im trying to avoid php coding or any hardcode overriding, trying to get away with a CSS solution if possible. Maybe its even possible with just one block... ?
Thank you in advance!
Comments
Your approach is correct.
Your approach is correct. Create 3 display blocks in same view with FORMAT: Table settings. Fetch data from 3 different content types (title and the other fields which you required. Create 3 regions in theme.info.yml file and display them on page twig template in 3 separate div tags having bootstrap class col-sm-4. This will display 3 columns on your page. Then assign those 3 blocks to 3 different regions. If you want to show these 3 blocks only on particular page(s) then limit them to display on selected pages/paths only from block settings.
You need to apply some CSS to align these blocks on the page.
Hope this helps you.
That did it!
Thank you so much sir.