Joomla.it Forum
Joomla! 1.0.x (versione con supporto terminato) => Le voci di Joomla.it (solo per versione Joomla 1.0.x) => : luminal 21 Oct 2006, 00:31:06
-
Sugli articoli multipagina, come posso fare per spostare l'indice articolo che altrimenti mi sovrasta delle parti?
es:
http://www.linuxmatica.it/index.php?option=com_content&task=view&id=13&Itemid=26&limit=1&limitstart=6
Grazie, Alberto.
-
Wow, che celerità! :o
In effetti non è tanto il testo che da problemi, quanto la tabella sottostante.
Mi dispiacerebbe parecchio dover mettere il fondo bianco poiché l'ho messo
grigio per specificare che si tratta di comandi da impartire.
Vabbé... se non ci sono altre soluzioni ci penserò su, intanto grazie lo stesso.
Alberto.
-
Hai ragione, scusa... sai.. l'orario ::)
Farò delle prove per vedere cosa viene fuori altrimenti mi è venuto in mente
che magari si può diminuire la larghezza delle quote manualmente agendo
direttamente sul file HTML generato, se non comporta troppe rotture vedrò il da farsi.
Grazie ancora.
-
ciao ho una soluzine al tuo problema.
dovresti cambiare alcune cose nei sorgenti di Joomla ( almeno così ho fatto io).. in questo modo però l'indice articolo verrà prim adel testo.
Ti spiego:
apri con un editor questo file:
mamboots/content/mospaging.php (fai un BackUp del file per precauzione).
vai alla riga 170 (O 168) e sostituisci questo codice:
In effetti non ho fatto altro che aggiungere un TAG DIV con uno stile associato.
$row->toc = '
<table cellpadding="0" cellspacing="0" class="contenttoc" align="right">
<tr>
<th>'
. _TOC_JUMPTO .
'</th>
</tr>
';
// TOC First Page link
$row->toc .= '
<tr>
<td>
<a href="'. $link .'" class="toclink">'
. $heading .
'</a>
</td>
</tr>
';
$i = 2;
$args2 = array();
foreach ( $matches as $bot ) {
$link = $nonseflink .'&limit=1&limitstart='. ($i-1);
$link = sefRelToAbs( $link );
if ( @$bot[2] ) {
parse_str( html_entity_decode( $bot[2] ), $args2 );
if ( @$args2['title'] ) {
$row->toc .= '
<tr>
<td>
<a href="'. $link .'" class="toclink">'
. stripslashes( $args2['title'] ) .
'</a>
</td>
</tr>
';
} else {
$row->toc .= '
<tr>
<td>
<a href="'. $link .'" class="toclink">'
. _PN_PAGE .' '. $i .
'</a>
</td>
</tr>
';
}
} else {
$row->toc .= '
<tr>
<td>
<a href="'. $link .'" class="toclink">'
. _PN_PAGE .' '. $i .
'</a>
</td>
</tr>
';
}
$i++;
}
$row->toc .= '</table>';
}
con il seguente codice
$row->toc = '<div class="contenttoc">
<table cellpadding="0" cellspacing="0" class="contenttoc" align="right">
<tr>
<th>'
. _TOC_JUMPTO .
'</th>
</tr>
';
// TOC First Page link
$row->toc .= '
<tr>
<td>
<a href="'. $link .'" class="toclink">'
. $heading .
'</a>
</td>
</tr>
';
$i = 2;
$args2 = array();
foreach ( $matches as $bot ) {
$link = $nonseflink .'&limit=1&limitstart='. ($i-1);
$link = sefRelToAbs( $link );
if ( @$bot[2] ) {
parse_str( html_entity_decode( $bot[2] ), $args2 );
if ( @$args2['title'] ) {
$row->toc .= '
<tr>
<td>
<a href="'. $link .'" class="toclink">'
. stripslashes( $args2['title'] ) .
'</a>
</td>
</tr>
';
} else {
$row->toc .= '
<tr>
<td>
<a href="'. $link .'" class="toclink">'
. _PN_PAGE .' '. $i .
'</a>
</td>
</tr>
';
}
} else {
$row->toc .= '
<tr>
<td>
<a href="'. $link .'" class="toclink">'
. _PN_PAGE .' '. $i .
'</a>
</td>
</tr>
';
}
$i++;
}
$row->toc .= '</table></DIV>';
}
Nel fogli di stile CSS aggiungi poi
div.contenttoc{
float:right;
width:100%;
}