EllisLab text mark
Advanced Search
     
How can I create expandable Blocks of Text?
Posted: 20 June 2011 06:15 PM   [ Ignore ]
Joined: 2011-06-16
34 posts

I know I can do this using javascript or php, but I’m getting used to how expressionengine codes it code is a little confusing.

I have a very long list of items that I want to collapse by default and only let users see the content if they click expand.

Example
List of Items:
[-Manual 1
-Manual 2
...
]

Can this be done using expression engine? I wanted to put the code in a weblog entry.

 
Posted: 20 June 2011 07:48 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-06-24
2369 posts

That’s definately a Javascript job, eg http://docs.jquery.com/UI/Accordion or http://docs.jquery.com/Tutorials:Basic_Show_and_Hide. Make a custom entry field for the list contents, add the relevent code into your template and apply the JS show/hide function to it.

 Signature 

Rob - http://www.blue-dreamer.co.uk/ - because I like blue!
EE Pro Network member