Modify

Opened 11 years ago

Closed 8 years ago

Last modified 7 years ago

#10746 closed defect (fixed)

Different class for backlinks

Reported by: vesal@… 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 11 years ago by Ryan J Ollos

Component: BackLinksMenuMacroBackLinksMacro

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.

comment:2 Changed 11 years ago by Ryan J Ollos

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 11 years ago by anonymous

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 11 years ago by anonymous

In previous example i needed to leave : after display-word, because otherwise it told me that it is spam...

comment:5 Changed 8 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 15135:

7.0dev: Add backlinks-menu class

This allows the custom styling to be applied to the menu.

Fixes #10746.

comment:6 Changed 8 years ago by Ryan J Ollos

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.