Create a custom block and insert the following code:
Add this Page to your Favorites</a>
Make Xoops Your Homepage
The above code will add the current page as a favorite. You can of course delete the second part if you dont want a 'make this your home page' option.
The code I mentioned above works on any page and requires very little customization. The code will automatically determine the title of your page and the correct URL with no input required from you using the following parameters.
This parameter gets the full URL of the current page.
This parameter takes note of the current page's title that will be used as your Favorites title.
There are, however, times when you do not want to have the current page's title and location added to your favorites. You may want to specify a specific page title and URL instead, such as your home page.
For such situations, use the following code instead:
The above code is very similar to the code posted earlier. The only difference is that the location.href and document.title parameters have been replaced with actual values that are independent of the page you are currently in.