Picture of Paul Steven
Linking within pages and from one page to another (Adapt Builder)
by Paul Steven - Friday, 11 December 2015, 3:04 PM
 

The course I am attempting to create in the authoring tool requires a sub-menu. So essentially I need to create a sub-menu within a page.

So if this page has 4 articles, I would like to set up 4 buttons at the top of the page, each of which links to a particular article.

Is there a way to link an image (button) to a particular article/block/component?

Another requirement of my course requires linking from one page to another page in a similar manner from an image or text link.

So if anyone has any knowledge on how to do any of this it would be much appreciated.

Paul

 

 

 

 

Picture of Matt Leathes
Re: Linking within pages and from one page to another (Adapt Builder)
by Matt Leathes - Friday, 11 December 2015, 4:03 PM
 

Hi Paul

You can link to any content object, article, block or component within an Adapt (v2) course by its id.

For example, this link should take you straight to the media component in the Adapt demo.

Picture of Paul Steven
Re: Linking within pages and from one page to another (Adapt Builder)
by Paul Steven - Monday, 14 December 2015, 10:15 AM
 

Thanks Matt

I actually realised using sections enabled me to add sub-menus to nested content in my course.

However I would still be interested to know if it is possible to make an image a button to hyperlink to another content object? There doesn't appear to be a way to add a link to an image.

Picture of Matt Leathes
Re: Linking within pages and from one page to another (Adapt Builder)
by Matt Leathes - Monday, 14 December 2015, 10:56 AM
 

I don't think any of the core components have the option to turn images into hyperlinks but you could use the text component and include a hyperlinked image in the body via HTML

Picture of Paul Steven
Re: Linking within pages and from one page to another (Adapt Builder)
by Paul Steven - Monday, 14 December 2015, 2:03 PM
 

Thanks Matt.

Do you mean click on the Source link for the Body element of the Text Component and add something like:

<a href='#'><img src='en/assets/c5613d530484603a01785c4a4c73af99c136e048.jpg' /></a>

When I try to do something like this (ignoring the fact I am not sure of the relative paths to the assets), when I return to the component to edit it again, the source code I wrote has disappeared.

Picture of Matt Leathes
Re: Linking within pages and from one page to another (Adapt Builder)
by Matt Leathes - Tuesday, 15 December 2015, 10:26 AM
 

Well, you'd need something more than just # in the href attribute but basically, yes.

This would be more like what you need:

<a href='#/id/c-40'><img src='en/assets/c5613d530484603a01785c4a4c73af99c136e048.jpg' /></a>

Although the ids generated by the build tool will not be as human-readable as 'c-40'.

I'm afraid I don't use the build tool myself (I work directly with the framework) so I'm not really the person to advise how you might find out the id of what you want to link to - or why your source code edits are disappearing...