PDA

Zobacz pełną wersję : niepotrzebny tekst



art3q
24-12-2006, 23:27
chciałbym usunąć z artykułu (com_content) linki prowadzące do innych artykułów z danej kategorii (wstecz, dalej) wiem gdzie tego szukać ale nie mogę dobrze tego wywalić

fragment kodu:


<?php
}
}
}

/**
* 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
}
}

/**
* Writes the edit form for new and existing content item
*
* A new record is defined when <var>$row</var> is passed with the <var>id</var>
* property set to 0.
* @param mosContent The category object
* @param string The html for the groups select list
*/
function editContent( &$row, $section, &$lists, &$images, &$access, $myid, $sectionid, $task, $Itemid ) {
global $mosConfig_live_site, $mainframe;

co muszę usunąć, żeby było ok?

Jac
25-12-2006, 03:29
Hmm, a nie możesz wyłączyć tego w panelu administracyjnym?

Viking
27-12-2006, 19:17
...możesz!