#10746 closed defect (fixed)
Different class for backlinks
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
Priority: | normal | Component: | BackLinksMacro |
Severity: | normal | Keywords: | print, class |
Cc: | Trac Release: | 1.0 |
Description
I like to have something that separates this from ordinary wiki-toc either a subclass or so that one can send class as an optional parameter.
That way I could make a hover-style to show the links only when user wants to see them. And hide totally from print. Normal wiki-toc I like to print.
Attachments (0)
Change History (6)
comment:1 Changed 12 years ago by
Component: | BackLinksMenuMacro → BackLinksMacro |
---|
comment:2 Changed 12 years ago by
Owner: | changed from Trap to Ryan J Ollos |
---|
And, I'd welcome a patch, or just piece of CSS inserted into the ticket, to suggest which change should be made.
comment:3 Changed 12 years ago by
I can switch to BackLinks if needed :-)
could it be so that
[[BackLinks]]
outputs like now:
<div class="wiki-toc">Pages linking to k2013/demot:<br />
and
[[BackLinks wiki-toc-noprint]]
outputs like now:
<div class="wiki-toc-noprint">Pages linking to k2013/demot:<br />
and in css one could write:
@media print { .wiki-toc-noprint { display none; } }
Or any other idea to do same thing is also welcome.
comment:4 Changed 12 years ago by
In previous example i needed to leave : after display-word, because otherwise it told me that it is spam...
comment:6 Changed 9 years ago by
After [15135] you can add the following custom CSS:
@media print { .backlinks-menu { display none; } }
We could add a "noprint" argument, but I'd want to better understand the use-case before adding extra functionality.
Did you see the deprecation notice on the main page, BackLinksMenuMacro? I can't remember if I finished work on the BackLinksMacro, but the intent was to offer similar functionality. Would you be willing to give it a try? I'll try to find some time today to do testing as well.