Customizing the page (HTML)
Moderators: Developer, Contributor
Customizing the page (HTML)
I have installed Mantis 1.0.0a1 and it works great. Now I want to add our Logo and maybe some other customized views for te page. I found and changed $g_window_title and $g_page_title which worked fine. When I tried to add $g_top_include_page = $g_absolute_path.'images/logo.gif'; it just filled the page with "GIF" followed by a lot of characters. Am I doing this wrong? How can I add a logo?
$g_top_include_page is looking for HTML information. It sohould probably be pointing to a page containing:
Code: Select all
<img src="images/logo.gif" />
There is a file called config_defaults_inc.php that you override with config_inc.php and add the following code (This is the way I did this):
I then created my logo and put that into the images folder and created a logo.php file containing the follwing code:
I then created a folder called custom and put the logo.php file into that folder.
This is probably an overkill to do it this way, but at the time it seemed to be the only way to do it.
-Hinke
Code: Select all
$g_window_title = 'Window title goes here';
$g_page_title="";
$g_top_include_page = $g_absolute_path.'custom' . DIRECTORY_SEPARATOR . 'logo.php';
Code: Select all
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<body>
<img src='images\logo.JPG' />
</body>
</html>This is probably an overkill to do it this way, but at the time it seemed to be the only way to do it.
-Hinke
hinke, the advantage of having a top include page is that you can have something that is more complicated that just placing an image. This can be achieved by pointing to an html or a php file. Common usages that I have seen so far include:
- On the login page display a centered logo.
- On the other pages display the logo on the left.
- Display some ads on the top right on pages other than the login page.
- Integration into content management systems or changing Mantis to be part of a larger website.
Also note that the top include file should not include tags that mark the start or the end of the html document. They should only include the image or the stuff that you need to add. Hence remove <html>, <meta> and <body>.
Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect
- On the login page display a centered logo.
- On the other pages display the logo on the left.
- Display some ads on the top right on pages other than the login page.
- Integration into content management systems or changing Mantis to be part of a larger website.
Also note that the top include file should not include tags that mark the start or the end of the html document. They should only include the image or the stuff that you need to add. Hence remove <html>, <meta> and <body>.
Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect