InMotion Hosting Support Center
This is archived and no longer maintained. Any information contained in this article may be out of date.

Joomla 2.5 has reached its end of life as for 12/31/2014. Please be advised this may be a security risk to your website. You can view more information about the end of life here.


In our last article, we showed you how to use spacers in a Joomla 2.5 plugin's XML file. Using spacer fields, you can add HTML to your plugin's settings page.

How to use Spacers to add HTML

The key to using HTML within a plugin is to change:

  • > to >
  • < to <

If we wanted to insert the following link into a plugin's settings page:

InMotion Hosting provides the <a href='http://www.inmotionhosting.com/joomla-hosting/best-joomla-hosting.html'>best joomla hosting</a>

... We would need to change the code to:

InMotion Hosting provides the &lt;a href='http://www.inmotionhosting.com/joomla-hosting/best-joomla-hosting.html'&gt;best joomla hosting&lt;/a&gt;

Example Spacer code that prints HTML

The following is the code we added to our plugin's XML file and the results:

<field name="great-joomla-hosting" type="spacer" description="InMotion Hosting provides joomla hosting" label="InMotion Hosting provides the &lt;a href='http://www.inmotionhosting.com/joomla-hosting/best-joomla-hosting.html'&gt;best joomla hosting&lt;/a&gt;" />

using-html-in-a-plugin-xml-file

Joomla Community Google+ Hangout #3

June 3rd, 2014

Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!

Click here to watch!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

n/a Points
2016-04-22 12:49 am

hi ,

how to add  id to this link

i need to link user using user id  how to add id to this link

this below link not working

index.php?option=com_truematrimony&amp;view=newregistereduser&amp;id=[ITEM:ID]

 

 

 

Staff
10,077 Points
2016-04-22 2:23 am
Hello Mathesh,

Are you trying to link them to a users profile in this component? Can you provide the full url you are trying to redirect them to?

Best Regards,
TJ Edens

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

2 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!