Topic Closed
hoghoj1
187 Posts

Hi,

is it possible to create a main link somewhere into the main menu, it would trigger a "Listen" function on all pages that way?

The function being: <a id="speaklink" accesskey="k">Listen</a>

And if not possible, how can I put a simple button to be visible on all pages?

There's a script to the function in the Head section: <script src="https://insipio.com/readit3/www.hh-support.fo/js/readit3.min.js" type="text/javascript"></script>

hoghoj1

Edited: 3 years ago#11734

juergen
1.5K Posts
64.2K Downloads
16 Plugins

Create an Extra Content Area called e.g. 'Speaklink' containing your link code <a id="speaklink" accesskey="k">Listen</a>

Add to the menu: Create a new menu item and choose the 'Extra Content' tab in the dialog box -> [Copy] [New Page] [Available] [External Link] [Trash] [Extra Content]
Select your 'Speaklink' area from the list.

Add to the layout: Edit template.php and insert <?php gpOutput::Get('Extra', 'Speaklink'); ?> at an appropriate position in the code.

Add the script element: Edit template.php and insert
$page->head .= '<script src="https://insipio.com/readit3/www.hh-support.fo/js/readit3.min.js"></script>';
at the end of the <?php … ?> block at the top of template.php

Edited: 3 years ago#11735

hoghoj1
187 Posts

Thx J├╝rgen,

works perfectly, now it's up to ReadIT's programmer (who doesn't know Typesetter), to make s few adjustments to the program itself.

I can always rely on you :-D

hoghoj1

3 years ago#11736

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

Log In

  Register