0

Im looking to create some pages that contain blocks of content based on a separate taxonomy term for each block.

Right now i created a separate block view for each taxonomy term, and added each view into its own block on the block administration page. (http://cs.scottrlarson.com/services) It works, but I want to have more control over the container of the set of blocks as a whole so I can style the blocks in a flexbox. I wondered if there was a way to create a view that had different blocks filtered by taxonomy terms for each block that way I could set a style name for the container of the blocks allowing me to use flexbox styles.

If anyone has a better way to do this please let me know. Thanks.

0

You could make a parent block view that has all of the subsequent views as attachment display type. Or add the other views in the footer of your first view...

| improve this answer | |
  • This worked, but Im having a problem getting the flexbox to wrap the items. Right now it shows the flex items in a vertical column instead of displaying the flex item divs in a horizontal row. I searched high and low for the css in the developer tool thats breaking the flex behavior and I cannot find the css that is causing the problem. Im using bootstrap as my main with a sub-theme attached. any help would be appreciated. Here is the new test view I am working with : cs.scottrlarson.com/services-view – trinsic Dec 9 '16 at 23:48
  • apply flexbox to the .attachment element not .view – Darvanen Dec 10 '16 at 4:11
  • OK thanks, that is working.. any idea why the divs are not equal heights? – trinsic Dec 12 '16 at 22:59
  • Never mind I think i figured it out. some how divs are being stacked at the bottom that are not apart of the view, I have to find out why those are being displayed. – trinsic Dec 12 '16 at 23:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.