Members: 16,996
Threads: 38,868
Posts: 159,480
Online: 58

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 25.01.2008, 22:39   #1 (permalink)
Baby Mamber
 
Join Date: Jan 2008
Posts: 1
eyalkattan is on a distinguished road
Default Modify Next> and <Previus

Hello,

I would like to edit the Nex> and < Prev links at the bottom of the main content area so they call a javascript and pass the url rather than call the url itself in a pop-up.

I assume that mosMainBody() actually loads content.html.php. If this is correct then I found the following code which I believe loads the links into Next and Prev:

/**
* Writes Next & Prev navigation button
*/
function Navigation( &$row, &$params ) {
global $task;
$link_part = 'index.php?option=com_content&amp;task=view&amp;id =';
// determines links to next and prev content items within category
if ( $params->get( 'item_navigation' ) ) {
if ( $row->prev ) {
$row->prev = sefRelToAbs( $link_part . $row->prev . $row->Itemid_link );
} else {
$row->prev = 0;
}
if ( $row->next ) {
$row->next = sefRelToAbs( $link_part . $row->next . $row->Itemid_link );
} else {
$row->next = 0;
}
}

if ( $params->get( 'item_navigation' ) && ( $task == 'view' ) && !$params->get( 'popup' ) && ( $row->prev || $row->next ) ) {
?>
<table align="center" style="margin-top: 25px;">
<tr>
<?php
if ( $row->prev ) {
?>
<th class="pagenav_prev">
<a href="<?php echo $row->prev; ?>">
<?php echo _ITEM_PREVIOUS; ?></a>
</th>
<?php
}

if ( $row->prev && $row->next ) {
?>
<td width="50">&nbsp;
</td>
<?php
}

if ( $row->next ) {
?>
<th class="pagenav_next">
<a href="<?php echo $row->next; ?>">
<?php echo _ITEM_NEXT; ?></a>
</th>
<?php
}
?>
</tr>
</table>
<?php
}
}


If this is correct then I assume this is where I need to implement the change. Can anyone give me an example what the code would look like if my javaScript function name is loadPage() for example?

Thanks in advance
eyalkattan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +2. The time now is 19:47.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.