Link list format

Please post all questions on Help+Manual 8 here

Moderators: Alexander Halser, Tim Green

Post Reply
Ga Bowen
Posts: 324
Joined: Mon Jun 27, 2016 5:05 pm

Link list format

Unread post by Ga Bowen »

I currently use the excellent link list on our intranet.

To differentiate between internal and external files I use the format, as follows:

Internal link
External link

Can I change the link list format to the 'Internal link' style?
User avatar
Tim Green
Site Admin
Posts: 23157
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Link list format

Unread post by Tim Green »

Hi Gareth,

You can't change the format directly because the the links in a link list are regular topic links, using the topiclink class, just like all other topic links -- i.e. "internal" links. At least in HTML, if you don't try to format all your links locally (which you may be doing for your other links, from your description), you can globally format all your links with CSS in the HTML page template, as long as you add your own style references after all others. The easiest way to do this is to insert your own style block directly before the closing </head> tag.

This list shows all the link types you can format with examples

Code: Select all

<style type="text/css">
a.topiclink { color: blue; text-decoration: none; }
a.topiclink:visited {color: blue; }
a.topiclink:hover {text-decoration: underline; }
a.weblink {color: blue; text-decoration: underline; }
a.weblink:visited {color: blue; }
a.weblink:hover {color: white; background-color: blue;}
a.popuplink {color: red; text-decoration: none; border-bottom: 1px dashed;}
a.popuplink:visited {color: red;}
a.popuplink:hover {text-decoration: none; background-color: #ffff99;}
a.filelink {color: green;  text-decoration: none; border-bottom: 1px dashed;}
a.filelink:visited {color: green;}
a.filelink:hover {text-decoration: none; background-color: #ffff99;}
a.scriptlink {color: purple; text-decoration: none; border-bottom: 1px dashed; }
a.scriptlink:visited {color: purple;}
a.scriptlink:hover {text-decoration: none; background-color: #ffff99;}
</style>
Note, however, that the Premium Pack skins already contain this block of code in their main CSS files, so you can edit it there to style your links globally.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Ga Bowen
Posts: 324
Joined: Mon Jun 27, 2016 5:05 pm

Re: Link list format

Unread post by Ga Bowen »

It does! I have edited it in the CSS file.

I've not got a programming background at all but H+M has really got me into hmtl/css/js. Makes you realise the possibilities are endless. I feel like I'm in The Matrix at times; it's just numbers on the screen but all I see are topics and snippets...

Cheers, Tim.
Ga Bowen
Posts: 324
Joined: Mon Jun 27, 2016 5:05 pm

Re: Link list format

Unread post by Ga Bowen »

I'm pretty sure I know the answer to this, but can I set the same set of formatting rules to a pdf?
User avatar
Tim Green
Site Admin
Posts: 23157
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Link list format

Unread post by Tim Green »

Hi Gareth,
Ga Bowen wrote: Wed Oct 20, 2021 9:59 am I'm pretty sure I know the answer to this, but can I set the same set of formatting rules to a pdf?
Unfortunately no, because there's nothing like CSS or any other formatting rules in PDF. A PDF document is really just printer data stored in a file and displayed on the screen with a printer driver that "prints" to the screen instead of to a physical printer. Any formatting has to happen before the text is exported to the PDF.

However, there are settings in Configuration > Publishing Options > PDF > PDF Layout that allow you to configure the appearance of links in the PDF, and also whether they are to be active or not.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Ga Bowen
Posts: 324
Joined: Mon Jun 27, 2016 5:05 pm

Re: Link list format

Unread post by Ga Bowen »

That's useful to know, thanks.
Post Reply