Chaim
Chaim

Reputation: 2141

Joomla: Get base url inside article

I would like to get the base url of my website from inside my article. Is there any way to do this either using built-in Joomla functionality or with a plugin?

Upvotes: 1

Views: 8584

Answers (2)

Pramod Kumar Sharma
Pramod Kumar Sharma

Reputation: 8012

If you want to use base url for linking purpose then you can use index.php in place of base url.It will work fine.Because base url is also point the index.php of the website.

Upvotes: 1

Brent Friar
Brent Friar

Reputation: 10609

You can use the JURI method to get the base URL, but you will need to add an extension that allows you to use PHP code in an article.

JURI::root()

This will return the root URL based on where Joomla is installed.

Upvotes: 9

Related Questions