Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

RSTickets!Pro - Knowledgebase template overwrite

Knowledgebase template overwrite

The standard output from any Joomla! Module or Component can be overridden by adding code to the html directory of your template. Using template overwrites is recommended because the changes you have made to the layout will not be affected by component updates. In this example we will edit the output of the Knowledgebase layout.

  • the first thing you need to do is go to templates/your_template_name/html and created a new folder named com_rsticketspro;
  • inside this folder you will need to create a second folder named knowledgebase;
  • you will then need to go to components/com_rsticketspro/views/knowledgebase/tmpl and copy the default.php file in your newly created knowledgebase folder.

You can now change the appearance of this view by editing the code of the default.php file from templates/your_template_name/html/com_rsticketspro/knowledgebase. For example:

<style type="text/css">
#kb
{
	padding: 2px 2px 2px 2px;
}
#kb ul li
{
	list-style-type:none;
	float:left;
	background-color: #444444;
	padding-right: 10px;
}
#kb ul a
{
	color: #FFFFFF;
	text-decoration: none;
}
#kb h2
{
	color: red;
}
</style>
<div id="kb">
<h2>This is the knowledgebase view with Template Overwrite</h2>

before


<?php if ($this->params->get('show_page_title', 1)) { ?>

...and closing the div tag after:


				<?php echo $category->description; ?>
				<?php } ?>
			</li>
		<?php } ?>
		</ul>
		</td>
	</tr>
</table>

This will add a new red header and change the appearance of the category list as shown in the following images.



Feedback