|
Mambo
|
Changes:
If you edit the file below, you will get the navigation options at the top. This is not a standard option.
on site->Global Configuration->content is an extra option added.
| Content Item Top Navigation: |
|
|
with this option you can hide/show the item navigation at the top of the page
Add will add the <prev and next> at the top of content pages.
/configuration.php
below line: $mosConfig_item_navigation = '1'; (line 54)
added : $mosConfig_item_top_navigation = '1';
/administrator/components/com_config/admin.config.php
below: line 129/130
/** @var int */
var $config_item_navigation=0;
added lines:
/** @var int */
var $config_item_top_navigation=0;
below: line 208 (after insert lines above)
'config_item_navigation'
=>'mosConfig_item_navigation',
added line:
'config_item_top_navigation' =>'mosConfig_item_top_navigation',
below line 417/418
$lists['item_navigation']
= mosHTML::RadioList( $show_hide_r,
'config_item_navigation', 'class="inputbox"',
$row->config_item_navigation, 'value', 'text' );
added lines
$lists['item_top_navigation']
= mosHTML::RadioList( $show_hide_r,
'config_item_top_navigation', 'class="inputbox"',
$row->config_item_top_navigation, 'value', 'text' );
/administrator/components/com_config/admin.html.config.php
below: line 340/344
<tr>
<td>Content Item Navigation:</td>
<td><?php echo $lists['item_navigation']; ?></td>
<td> </td>
</tr>
added lines:
<tr>
<td>Content Item Top Navigation:</td>
<td><?php echo $lists['item_top_navigation']; ?></td>
<td> </td>
</tr>
/includes/mambo.php
below line(485)
$this->_config->back_button
=
$mosConfig_back_button;
added line:
$this->_config->item_navigation
= $mosConfig_item_navigation;
/components/com_content/content.php
replace lines below (992)
if ( $row->sectionid == 0) {
$params->set( 'item_navigation', 0 );
} else {
$params->set( 'item_navigation', $mainframe->getCfg(
'item_navigation' ) );
}
with the following lines
if ( $row->sectionid == 0) {
$params->set( 'item_navigation', 0 );
$params->set( 'item_top_navigation', 0 );
} else {
$params->set( 'item_navigation', $mainframe->getCfg(
'item_navigation' ) );
$params->set( 'item_top_navigation', $mainframe->getCfg(
'item_top_navigation' ) );
}
replace line (1000)
if ( $params->get( 'item_navigation' ) ) {
with line
if ( $params->get( 'item_navigation' ) || $params->get( 'item_top_navigation' ) ) {
/components/com_content/content.html.php
replace line 437
if ( $params->get( 'item_navigation' ) ) {
with line
if ( $params->get( 'item_navigation' ) || $params->get('item_top_navigation') ) {
add below
$print_link =
$mosConfig_live_site.
'/index2.php?option=com_content&task=view&id='.
$row->id .'&Itemid='. $Itemid
.'&pop=1&page='. @$page;
the following lines:
// displays the next & previous buttons at the top
HTML_content::Navigation ( $row, $params, 'item_top_navigation');
replace line (543)
HTML_content::Navigation ( $row, $params );
with line
HTML_content::Navigation ( $row, $params, 'item_navigation' );
replace lines 822
function Navigation( $row, $params ) {
$task = mosGetParam( $_REQUEST, 'task', '' );
if ( $params->get(
'item_navigation') && ( $task == "view" ) &&
!$params->get( 'popup' ) ) {
with lines:
function Navigation( $row, $params, $what ) {
$task = mosGetParam( $_REQUEST, 'task', '' );
if ( $params->get( $what )
&& ( $task == "view" ) && !$params->get( 'popup' ) )
{
|