I’ve been wondering if there is a way to directly link to a PDF file in the resources using a hyperlink. Our client doesn’t want the normal action button way of doing it, so we’re having to use hyperlinks. At the moment, my hyperlink is just #resources to take the user to the resource page. We’ve added instruction text to the link itself, but it could still be very easy for the user to not understand which resource they should be looking at. It would be ideal if there was any further code to add to #resources that would take the user to the first file or the second file etc.
have you tried the “Links”-component?
Add a link item in the links component, and and switch the “internal link?” setting to on. You’ll be able to select something you’ve set up in your Evolve course. You can also set up specific resource items!
I managed to get this to work using hyperlinks that refer to documents within the course. I changed the hyperlink to “./courses/assets/en/[id]/file.pdf” and it seemed to work well
Maybe I wasn’t clear enough before, but you can set up the links component in a way that it opens a very specific resource item (like a PDF). So there is no need to change the hyperlink on your own.
You can also style the links component in different ways - it can look like an action button or like a normal hyperlink.
But as long as it works both options are viable
Oh yes I know haha. I’ve used the link component many times. The issue was our client wanted to have the text hyperlinked to the file rather than using links or buttons, hence my rather roundabout way of doing things
Talking about Resource items topic, could you please show me how can I add some resources to the course (for eg. I have a docx/ pdf file that I want to add a link to it using the Link component, I managed to upload it as general asset outside of the course but I don’t know how to make it recognized as internal resource of that specific course)
- Switch to your specific course
- Switch over the the course extension (top left corner)
- scroll down to the ‘resources’ extension and activate it
- click ‘edit’ on the ‘resources’ extension
- switch to ‘resource items’ on the left side
- add a new resouce item
- you’ll be promted to provide information regarding the resource like title and description. You’ll find the option to pick a specific asset (like your uploaded docx) under the description box.
Once you’ve set up the resource item you’ll be able to use the link component.