Closed (fixed)
Project:
G2 Glossary
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
1 Apr 2007 at 10:01 UTC
Updated:
4 Feb 2010 at 10:20 UTC
As far as I can tell, using the markup, G2 does not assign a CSS class to links to glossary entries. This makes it impossible to define styles for these links.
Defining a different style for glossary links (e.g. dashed underline and "help" cursor) can be useful because it lets users know where they are going.
Comments
Comment #1
pathscollide commentedSorry, the dfn tag in my previous post got filtered out. I meant to say "the dfn markup."
Comment #2
pathscollide commentedThis is how I modified g2.module.
Comment #3
fgmThere's something interesting in your suggestion. However:
$definition_attributes['title']should be set to somethingcontextually useful, not to something generic like . Possible
examples include: the number of definitions matching the DFN and their respective contexts,
or the beginning of the definition if only one definition matches the DFN
g2-dfn-link, instead ofglossary-def-link, to avoid namespace collision with what glossary.module can use, and to mention this is dfn-related, not def-relatedCould you prepare a patch addressing these points ? If successful, this could be a worthwile
addition to the module.
Comment #4
pathscollide commentedHi fgm,
Thanks for the tips. I will make the necessary changes in my code. However, sadly the patch and features you suggest are *way* beyond my abilities.
By the way, what do you mean by "the number of definitions matching the DFN"?
Comment #5
fgmA DFN can link to several definitions, because of homonyms. For instance, CSS can mean both "Content Scrambling System" or "Cascading Style Sheets", so the title of the A element generated from the DFN could mention the fact that there are 2 definitions for this initialism. Conversely, when only one definition exists, G2 could directly give the "expansion/definition" in the title of the A element.
Generating patches is not difficult: if you're on windows, use Tortoise CVS, just right click on the file you created and select Generate patch.
Comment #6
fgmToday's version (1.15.2.13) now includes the class g2-dfn-link on "a" links generated from
dfnelements by G2.The part about links formatting, being theme-specific, has been ignored.
Comment #7
(not verified) commentedComment #8
fgmAdded to today's D5 version: bumping issue version.
Comment #9
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #10
pathscollide commentedHi there,
I'm finally getting around to upgrading and it looks like this didn't make it into the Drupal 6 version of the module. Would it be possible to add it?
Thanks so much!
Comment #11
fgmConfirmed on 6.x. I'll add it.
Comment #12
fgmFixed in today's HEAD, thanks.
Comment #13
pathscollide commentedThank you for the quick work on this!