We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Fluid Field Group

How Do I?

np wardour's avatar
np wardour
3 posts
4 years ago
np wardour's avatar np wardour

I have been starting to favour native fluid fields over eebloqs. Mainly because you can use grid as a fluid field.

However eebloqs pips fluid fields because you can create groups fields which are your “bloq”.

Why would I want this?

I want to be able to wrap a set of fields inside of a parent element

<div class="page-wrapper">
  
  <!-- Additional Fluid fields -->
  
  <!-- Wrapper component -->
 <div class="component-wrapper">
    
    <!-- Text fluid field -->
  <h2>Optional Heading</h2>
  
    <!-- grid fluid field -->
    <div class="grouped-elements">
  
   <div class="element">
    <h3>Heading</h3>
    element-image.jpg
   </div>

      <div class="element">
    <h3>Heading</h3>
    element-image.jpg
   </div>

   <div class="element">
    <h3>Heading</h3>
    element-image.jpg
   </div>

  </div>

  </div>
  
    <!-- Additional Fluid fields -->

</div>

The only solution I have come up with is to create fluid fields that I call:

  • wrapper open tag
  • wrapper close tag

And in the mark up they represent <div> and </div>. Ideally fluid fields could be nested.

Has anyone else found a clean easy solution? Thanks in advance.

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
4 years ago
Robin Sowell's avatar Robin Sowell

Hrm, I don’t have a brilliant idea. You do have a lot of variables that let you tell if it’s a particular field, but unless you wanted to wrap starting at a particular field/field type and end at a particular one every time, that wouldn’t work.

I think for this one, the best option is really an additional feature.

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
4 years ago
Brian Litzinger's avatar Brian Litzinger

The Simple Grids & Tables field type inside of Bloqs doesn’t do what you need it to do?

       
np wardour's avatar
np wardour
3 posts
4 years ago
np wardour's avatar np wardour

I had not known that was a thing. For as long as I have used Bloqs I had accepted that this was not a feature.

But thanks for pointing this out 😊

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
4 years ago
Brian Litzinger's avatar Brian Litzinger

Yeah it’s not a full featured Grid field, hence the name Simple Grid, but it supports a few different field types and uses most of the underlying EE Grid libraries, so it’s about as native as you can get. It may not work for every use case, but it seems to fill the gaps for most users.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.