Add external link to breadcrumb

This forum is for discussions on the Help & Manual Premium Pack and the Premium Pack Toolbox configuration utility introduced with Premium Pack 3

Moderators: Alexander Halser, Tim Green

Post Reply
markusflow
Posts: 50
Joined: Tue Apr 30, 2019 4:29 pm

Add external link to breadcrumb

Unread post by markusflow »

Hi all,

I have the following help structure:

- Static HTML root page with links to multiple Web helps
– Web help a
– Web help b
– Web help c

What I want to achieve is a breadcrumb with a leading "external" link to the static HTML root page followed by a link to the start page of the last current web help and then followed by the default breadcrumb.
breadcrump.png
Read framed strings are added manually. Added in HTML template and in hm_webhelp.js.

The link to the startpage of the current web help works as expected. I added a class topicnavlink to the "Web help a" link.
The link to the root HTML page is always tried to be opened as topic.
It is generally a link like: <a href="./../../de/index.php"><img src="./images/home.png"></a>

I added a class "weblink" or a target parameter without success.

I always get the message "FEHLER. Kapitel nicht gefunden. index.php" as the web help tries to load the json topic file.

Is there a way to mark this link as "external" to not trigger the dynamic "load topic" functionality?

I am using Premium Pack 4.3.

Thanks,

Markus
You do not have the required permissions to view the files attached to this post.
User avatar
Tim Green
Site Admin
Posts: 23154
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Add external link to breadcrumb

Unread post by Tim Green »

Hi Markus,

Instead of using a relative path, enter an absolute path starting with http:// or https://, along with the weblink class. Then it should be identified as an external link and should work. If you continue to have problems with this, contact me directly at support AT ec-software.com (replace the AT with @) and we'll work something out. 8)
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.
User avatar
Tim Green
Site Admin
Posts: 23154
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Add external link to breadcrumb

Unread post by Tim Green »

PS: Don't forget to include target="_blank" in your <a> link as well as class="weblink". :)
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.
markusflow
Posts: 50
Joined: Tue Apr 30, 2019 4:29 pm

Re: Add external link to breadcrumb

Unread post by markusflow »

Thanks for your reply, Tim. The help still tried to open it as topic.

I solved it now in this way: a leave the p#topic_breadcrumbs as is, just took the <%BREAD_LABEL%> out of this paragraph.
I added a new paragraph before p#topic_breadcrumbs that contains <%BREAD_LABEL%> and my link and set both paragraphs to display: inline-block; so they are shown on the same line.
User avatar
Tim Green
Site Admin
Posts: 23154
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Add external link to breadcrumb

Unread post by Tim Green »

markusflow wrote: Wed Sep 08, 2021 9:59 am Thanks for your reply, Tim. The help still tried to open it as topic.

I wasn't sure where exactly you were putting your link, but I was afraid of that. The problem is that the p#topic_breadcrumbs paragraph is the identifier, and all links inside that are assumed to be topic links, because the breadcrumbs always are.
I solved it now in this way: a leave the p#topic_breadcrumbs as is, just took the <%BREAD_LABEL%> out of this paragraph.
I added a new paragraph before p#topic_breadcrumbs that contains <%BREAD_LABEL%> and my link and set both paragraphs to display: inline-block; so they are shown on the same line.
Excellent. 8)
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.
Post Reply