Picture of Ahmed Hammadi
Adding course title on all pages
by Ahmed Hammadi - Wednesday, 12 July 2017, 2:22 PM
 

I am the Authoring Tool and the adapt-theme-community from taylortom which includes a logo on the top left corner of every page.

 

I am looking for a way to show the course title on every page at the same place as the logo.

 

Is it possible to replace the logo element with a text element that retrieve the course name from the course configuration?

Thanks

Picture of Matt Leathes
Re: Adding course title on all pages
by Matt Leathes - Thursday, 13 July 2017, 8:00 PM
 

This is a little bit tricky to do as I don't think the course title is made available to the various handlebars files used in the theme. So you'll have to customise it somehow to get it to work.

The _globals object (see course.json) IS made available so you could add a bit of code into the theme.js to copy it into that object, then you'd be able to use it in navigation.hbs?

Sorry it's not an easy one I'm afraid.