Picture of John Niezen
navigation bar help
by John Niezen - Tuesday, 29 June 2021, 1:44 PM
 

Hi, We installed the Google translate extension (https://github.com/taylortom/adapt-googleTranslate) and now want to add PrintPage (https://github.com/KingsOnline/adapt-printPage). However it is not visible.

Somehow it is placed as last part of the navigation area, but it moves out.

If I move the button for icon-printer before the google div, I get it in my navigation again.

But how can I force the AT to do that? (we are using FW4.5.0 with AAT0.10.4)

Thanks for any ideas, John

Picture of Simon Date
Re: navigation bar help
by Simon Date - Wednesday, 30 June 2021, 1:21 PM
 

Hi John,

If you're comfortable with Javascript, you might be able to change the code that appends the template on both extensions to be consistent. Both lines are found here:

  • https://github.com/KingsOnline/adapt-printPage/blob/master/js/adapt-printPage.js#L50
  • https://github.com/taylortom/adapt-googleTranslate/blob/master/js/adapt-googleTranslate.js#L13

Once you've updated them you can upgrade the version to re-upload it to your authoring tool.

You might also have to apply some CSS to make it work as you desire.

Simon

Picture of John Niezen
Re: navigation bar help
by John Niezen - Wednesday, 30 June 2021, 2:17 PM
 

Thx Simon,

Will give it a try, and if it works ok, will post that result back here for others to benefit.

John