[support] theme pager wrong url
Davide Michel 'ZioBudda' Morelli
michel at ziobudda.net
Sat Feb 16 22:07:10 UTC 2008
Hi all, I have created this small page:
<?
include_once '/opt/www/newzb/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$view = views_get_view('feeds_clone');
$datiView = views_build_view('queries', $view);
$res = pager_query($datiView['query'],20);
$output = '';
while ($data = db_fetch_object($res)) {
$node = node_load($data->nid);
//print_r($node);
$output .= '
<div class="feedEsterniLista">
<h1><a href="'.url("node/".$node->nid).'">'.$node->title.'</a></h1>
<div class="linksottoLista">
(Inserito il '.date("d/m/Y", $node->created).' alle
'.date("H:i", $node->created).' via '.$node->chi.')
</div>
<div class="hrLista"><hr /></div>
</div>
';
}
$output .= theme('pager', NULL, 20, 0);
echo theme("page", $output);
?>
My problem is that "theme('pager')" write the wrong url: file's url is
"www.mydomain.net/file.php" so I expect that theme("page") create link's
url like "file.php?page=2" (etc etc), but the function create link like
"node?page=2" where /node/ is my "default page", Where is my error ? I
use Drupal 5.6.
M.
--
Michel 'ZioBudda' Morelli michel at ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764
http://www.ziobuddalabs.it Skype: zio_budda
http://www.ajaxblog.it MSN: michel at ziobuddalabs.it
JABBER: michel at gmail.com
More information about the support
mailing list