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

Multiple Content Slide Down Containers

How Do I?

treetop55's avatar
treetop55
2 posts
8 years ago
treetop55's avatar treetop55

I’ll preface this post with not knowing much about EE or EE development other than reading the manual and working with several other CMS systems.

Requirements: Ability to have multiple containers on a page representing RTE content for each unique container, secondarily possibly a header field and unique .class assignment field for each container. Functionality would simply be a slideup/slidedown on click event for the container headers, could be based on unique .class assignment and used as (this). Must be available to the CP and be able to add N number of containers to the page via the CP.

What do I need? A module, plugin, or custom field types. Is there a module/plugin available for purchase from the community that will meet the requirements above. I’ve been doing the reading but still not 100% sure how to best approach this functionality. Ideally there is a community plugin/module that will meet the requirements as budgets are small on this project.

Thanks in advance for any responses.

       
Rob Allen's avatar
Rob Allen
2,950 posts
8 years ago
Rob Allen's avatar Rob Allen

That sounds like javascript accordion functionality to me for appearance?

To get the content set up one way would be to use a Grid field to allow any number of rows of data:

  1. Set up your grid field in the custom field group you want to publish to, we’ll call it {my_grid}
  2. Add two columns to the grid field, one for Heading (Text input) and one for content (RTE input)
  3. Publish an entry with some data

In your template output the content with normal grid syntax:

That will output all the data fro the grid field, so all you need to do is add the javascript for the accordion effect.

       

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.