From the Lab: Abbreviations and Lexicon

This month at Lab Hours, we had several participants seeking the same thing -- How to provide site visitors pop-up definitions for acronyms and abbreviations. Oh, and could we please do this in a way that does not require extra data-entry from our content editors? A seemingly tall order turns out to have a rather straight-forward recipe combining a Drupal module, taxonomy and some obscure HTML tags no one seemed to know existed.
Obscure HTML elements revealed
Our first revelation occurred while unadvisedly trying to solve the display issue first. Looking for popup options, the Beauty Tips module seemed up to the task of providing an elegant solution. However, while casually Googling the term "acronym" -- the reason for the popups -- we uncovered two HTML elements we were not yet familiar with -- acronym and abbr (for abbreviation).
These elements seem to do it all -- mark the tagged acronym or abbreviation (dotted underline) and provide the description in a popup tooltip. Just what we were looking to do (albeit with some caveats for different browsers and HTML 5). Not only that, but using them adds semantic value to our content and increases accessibility.
This was all well and good, but only satisfied our display requirements. We were not looking forward to the prospect of editing all of our existing content to add HTML tags to acronyms and abbreviations. We were also concerned that it would be too clunky to expect occasional content providers to tag them properly when adding new content -- despite there being TinyMCE WYSIWYG toolbar buttons for each element. Enter the Lexicon module.
Finding the right module for the job
Lexicon, as its project page explains "generates one or more Lexicon pages based on terms in taxonomies and optionally marks and links them in the content." Lexicon definition pages will certainly be useful, but it's the that last feature that really caught our attention. To get it all to work, you create a vocabulary of terms with definitions -- which can include acronyms and abbreviations with their fully spelled-out descriptions. Once you've configured Lexicon's settings, your terms will be marked where they appear in content. Bringing us full circle, one of the marking options is to wrap appearing terms in the abbr HTML tag (acronym as well but this element has been deprecated in HTML5). The result is an on-hover triggered definition popup with an optional link to a lexicon page listing terms and definitions. Just what we were seeking to do and more.
Taking it further
This recipe is still a work-in-progress. At future sessions, I expect we'll be exploring multiple vocabularies, lexicon page management as well as cross-browser and custom styling issues. The bottom line is we "discovered" a solution to a situation faced by several organizations which ended up suggesting a valuable new feature for several more. We look forward to seeing where they take the concept next.
It's the heart of everything we do: a clear process to plan, organize, and measure your goals.




Comments
glossary
drupal has used those tags for many years. have a look at http://drupal.org/project/glossary. needs some updating for d7.
Thanks, Moshe! When I wrote
Thanks, Moshe! When I wrote that no one seemed to know about the tags, I meant in our local group not Drupal or the community at large. We belatedly discovered them by Googling and quickly found that Glossary and its fork, Lexicon, have been using them. Checking into what Glossary needs for updating is now on my list.
discovery
In spite of some positive aspects such as the use of suplementos importados and oxyelite pro preço
I hope
HTML abbr tag is a good element to use for seo as well, it is sad to see that HTML5 to remove it from the list of tags.But surely we can use them as a combination of html and html5, I hope so.
My services: máy khắc laser, Máy cắt laser là gì, Khắc dấu hoàn công, Dịch vụ thiết kế website
http://lipo6ultra.net
Checking into what Glossary needs for updating is now on my list. lipo 6 ultra
Free Samples Online By Mail
Good sharing. And today i would like to share one place to buy bags. where offer 65% discount off, 2011 new style, fast shipping and good service. Free Samples Online By Mail
I am really impressed
I am really aroused by this wonderful stuff. I always prefer to read the quality content and this thing I found in you post. Thanks for sharing
Obat Kuat || Obat diabetes
The bottom line is we
The bottom line is we "discovered" a solution to a situation faced by several organizations which ended up suggesting a valuable new feature for several more. We look forward to seeing where they take the concept next. bronx physical therapist
Add new comment | Advantage Labs, Inc.
Very good site you have here but I was curious if you knew of any user discussion forums that cover the
same topics talked about here? I'd really like to be a part of online community where I can get comments from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Thank you!
Visit my webpage ... financial information
Really Helped
This information really helped me understand Things beyond my expertise. websites like
obat kuat alami this expanding knowledge everyone and I hope something like this will continue to grow.
Vita a large soybean oil
Hello! I just wish to give an enormous thumbs up for the nice info you've got right here on this post. I will probably be coming back to your weblog for more soon. Vita a large soybean oil
Lovely aroma terapy natural essentual
I just wrote an long comment but after I clicked submit my comment didn't show up. Lovely aroma terapy natural essentual
Great meet up you guys had. I
Great meet up you guys had. I think you guys are working awesome on availability of clean HTML5 to end users. I appreciate your help. cuba tours
I think AdvantageLabs are
I think AdvantageLabs are doing a great job in maintaining their website, and also by helping people with their HTML5 problems. No one else do this service but you are doing it for free. Kudos. Laser Therapy Toronto
All the people in
All the people in AdvantageLabs creative team must be appreciated for their wonderful support to people in regards of HTML5. This service is absolutely unique in this sense. mortgage officer jobs
You have written a great post
You have written a great post for all the HTML5 enthusiasts. I would like to thank you because you have solved a huge problem of mine that was related to HTML5. hajdu bojler szerviz
The Beauty Tips module is
The Beauty Tips module is great addition to Advantage Labs. I think it is by far one of the most interesting and most knowledgeable project started by Advantage Labs. I would want to get involved in this project too. mortgage lender california
Looks like you guys work and
Looks like you guys work and chill at the same time. The working environment in the picture looks really friendly and it seems like you are more like enjoying than working. I absolutely love such working environment. Spaanse vakantiewoningen
- Что все? (c) xoxonexoxo.ru
- Что все?
(c) xoxonexoxo.ru
perform
For less experienced users, the obstacles are many, so many users will ROUPAS PARA REVENDER
labs
The third and final Facebook test looks at activities in daily use, such as ganhar dinheiro na internet
about world news
Considerably, this post is really the sweetest on this notable topic. I harmonise with your conclusions and will thirstily look forward to your incoming updates. Saying thanks will not just be sufficient, for the phenomenal clarity in your writing. I will directly grab your rss feed to stay informed of any updates. Admirable work and much success in your business dealings! Please excuse my poor English as it is not my first tongue.
about world news
Cara Membesarkan Payudara
Blogger Template
Blogger Widget
I would mention that most of
I would mention that most of us visitors are really endowed to exist here while reading such a leading topic. Many individuals will feel very much openly the kind of article and information
Euro Study Consultants
Add new comment