Hi Walter, thanks for that.
I think I’m getting somewhere. I’m not using a rich text edtor in WebYep, just using the commands for the typestyles from Freeway, so the first heading on the page looks like this:
<h3.INTRO18> Investment & Wealth Management</h3.INTRO18>
<p.SMALLBODY12 Portfolio Design & Implementation
The INTRO18 part seems to be working locally with MAMP, I hover over the text and the cursor turns into a link. The second line is hidden (on the finished site this will be a full paragraph). I’ve tried all variations of the
tag and none want to accordion down. I’m sure I must be missing something here, so any more pointers - pretty please?
thanks
Trev
On 24 Feb 2014, at 14:49, Walter Lee Davis email@hidden wrote:
As long as your client honors the choice of tags (and the RTE allows you to enter them) then yes, this should be completely easy. The key is to structure your content the way that the Accordion effect expects it. Note that there are limitations to the formatting allowed that may make this difficult for certain types of content. But for a simple FAQ format, you could do something like this:
What is the question?
This is the answer, it goes on for a while here.
What is the question?
This is the answer, it goes on for a while here.
What is the question?
This is the answer, it goes on for a while here.
What is the question?
This is the answer, it goes on for a while here.
When you apply ScriptyAccordion to the parent box containing this HTML structure, you configure it to treat the H3 tag as the header, and the P tag as the disclosure element. As long as you or your client ONLY ever insert one H3 followed by one P with the answer for each question, then you can edit the entire text block as a single thing in the RTE. (Of course, this presupposes that the RTE in WY can create an H3 tag as part of its normal editing.)
There is nothing hard-and-fast about the preceding construction per se. The only important rule in SA is that the header and the disclosed element must be two different content types. As long as WY’s RTE can create two different textual HTML tags, you should be all set.
Finally, you can create a set of CSS styles for this element that override the native browser display of Hn tags (say if you didn’t want the font to be bold, or a different size, or if you wanted the colors or cursor behavior to be different). It’s important that you train your editors to ignore how the layout looks while you are editing, and switch over to the published view to see how it really works. If you add styling through Freeway’s Inspector or through the RTE’s WYSIWYG editor, you may break the effect entirely.
Walter
On Feb 24, 2014, at 8:54 AM, Trevreav wrote:
Hi all, does anyone know if there’s any way of getting a Scripty Accordion type effect in a WebYep long text box?
In the example the client would like each purple header to expand down to show a bit of explanatory text.
Thanks in advance.
Trev
http://www.shorestone.co.uk/ourservices.php
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options