membuat custom halaman eror 404 Joomla 2.5
Click Save & Close.if (($this->error->getCode()) == '404') {
header('Location: index.php?option=com_content&view=article&id=121');
exit;
}
So, your error.php file should look like this.
ALTERNATIVE WAY
<head>
....
<title><?php echo $this->error->getCode(); ?> - <?php echo $this->title; ?></title>
....
</head>
<body>
<?php jimport( 'joomla.application.module.helper' ); ?>
...
...
</body>
<div style="width:100%;">
<h2>Oops...</h2>
<p>Sorry, we could not find the page you were looking for...</p>
<p> </p>
<p><a href="http://www.itropics.net">Go back to home page</a></p>
</div>
Change:<jdoc:include type="modules" name="menu" />
<?php $module = JModuleHelper::getModule( 'menu' , 'Main Menu' );
$attribs['style'] = 'xhtml';
echo JModuleHelper::renderModule( $module, $attribs); ?>
If you want to display a Custom HTML module, $name is custom and $title is your title, so mine would be Footer - Column 1, like:<?php
$module = JModuleHelper::getModule( 'custom' , 'Footer - Column 1' );
echo JModuleHelper::renderModule( $module);
?>
If you want to display the DisplayNews module, $name is dn.
If you want to display the Search module, $name is search.
membuat custom halaman eror 404 Joomla 2.5
membuat custom halaman eror 404 Joomla 2.5
By ndesain.web.id JOBS-JATENG Updated at: Senin, 13 Agustus 2012 | 02.17
advertisment
Let say, I want to show the menu module.
To:
getModule syntax is getModule( $name, $title ). More info about getModule can be found onhttp://docs.joomla.org/JModuleHelper/getModule.
thanks to : http://www.itropics.net/
advertisment
Jika Sudah Membaca di KLIK yaa :
Anda sedang membaca Artikel tentang membuat custom halaman eror 404 Joomla 2.5, dan anda bisa menemukan artikel membuat custom halaman eror 404 Joomla 2.5 ini dengan url https://anbu-files.blogspot.com/2012/08/membuat-custom-halaman-eror-404-joomla.html. jika Anda menyukai Artikel di blog ini, silahkan masukkan email Anda dibawah ini untuk berlangganan gratis via email, dengan begitu Anda akan mendapat kiriman artikel baru.
Hi there to all, it's actually a nice for me
BalasHapusto go to see this web site, it includes important Information.