How to add a button linking to another page within my Moodle?

How to add a button linking to another page within my Moodle?

by v k -
Number of replies: 1

Hello,

I've a localhost installation of Moodle 2.9.7 for testing purposes. I placed an html-page in my Moodle's root, so it is accessible by typing localhost/presentation/presentation.html in an address bar.

How then am I to act to create a button by clicking on which a user's browser will open, say, a new tab addressing this link? 

I understand this is dumb question, but what is correct solution:

  1. This button can be added with default Moodle's administration tools?
  2. I need to install some plugin?
  3. I need to manually edit code in Moodle's files to add a button there (but is this possible? considering that all data stored in DB)

As you see, I am new to Moodle so please don't beat me.


Have a good day!

Average of ratings: -
In reply to v k

Re: How to add a button linking to another page within my Moodle?

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

If you want the link to appear on every page, consider adding it to the menu (Site admin > Appearance > Theme > Theme Settings)

If you just want it to appear on a single page, add the link to a content area (If you are familiar with html and your theme is a bootstrap one, you can use the html part of whichever editor to add the relevant bootstrap btn classes to style it)

If you want it on every page, but styled as a button, then you could either add it to your theme, or add it to an html block which can be added to every page.

Lots of ways - depends exactly what you want it to look like smile