Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_official / html / modules / template / pnblocks [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 05 Aug 2002 21:59:15 | postnuke_official/html/modules/template/pnblocks | first.php,1.7,1.8 | Mike |
| "fix" for BL - why no templating possible here ? | |||
Update of /home/cvsroot/postnuke_official/html/modules/template/pnblocks
In directory ns7.hostnuke.net:/tmp/cvs-serv5012
Modified Files:
first.php
Log Message:
"fix" for BL - why no templating possible here ?
Index: first.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/template/pnblocks/first.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** first.php 2 Jul 2002 16:20:08 -0000 1.7
--- first.php 5 Aug 2002 21:59:13 -0000 1.8
***************
*** 78,91 ****
$pntable =pnDBGetTables();
$templatetable = $pntable['template'];
- $templatecolumn = &$pntable['template_column'];
// Query
! $sql = "SELECT $templatecolumn[tid],
! $templatecolumn[name]
FROM $templatetable
! ORDER by $templatecolumn[name]";
$result = $dbconn->SelectLimit($sql, $vars['numitems']);
if ($dbconn->ErrorNo() != 0) {
return;
}
--- 78,91 ----
$pntable =pnDBGetTables();
$templatetable = $pntable['template'];
// Query
! $sql = "SELECT pn_tid,
! pn_name
FROM $templatetable
! ORDER by pn_name";
$result = $dbconn->SelectLimit($sql, $vars['numitems']);
if ($dbconn->ErrorNo() != 0) {
+ error_log('hello world' . $dbconn->ErrorMsg());
return;
}
***************
*** 111,115 ****
$output->URL(pnModURL('template',
'user',
! 'viewdetail',
array('tid' => $tid)),
$name);
--- 111,115 ----
$output->URL(pnModURL('template',
'user',
! 'display',
array('tid' => $tid)),
$name);
***************
*** 121,127 ****
}
// Populate block info and pass to theme
$blockinfo['content'] = $output->GetOutput();
! return themesideblock($blockinfo);
}
--- 121,132 ----
}
+
+ // TODO: shouldn't this stuff be BL-able too ??
+ // Besides the fact that title & content are placed according to some
+ // master block template, why can't we create content via BL ?
+
// Populate block info and pass to theme
$blockinfo['content'] = $output->GetOutput();
! return $blockinfo;
}
View Statistics - Next Notice - Previous Notice
| Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |