Hi,
First of all: WOW, what a CMS and WOW, what an extremly supportive community. We’re using this cms for over a year now and haven’t had to post in the forums before!
But now, we’ve got a little problem (not really an EE one 😉). We’re using pages and have created a livesearch function (ajax) that searches through them. To get the results of the livesearch function actualy link to the right article, we’ll have to retrieve the pages’ urls’. Using a template, we can retrieve a list of all url’s by using this code:
<?
global $DB;
$query = $DB->query("SELECT site_pages FROM exp_sites WHERE site_id = '1'");
$pages = unserialize($query->row['site_pages']);
foreach($pages['uris'] as $entry_id => $value)
{
echo $entry_id.'
';
echo $value.'
';
}
?>But, since the livesearch has to be very fast, we’re using hand coded php to search trough the database (no ee-templates evolved). The question is: how can we bypass the ‘query’-function of the DB class and what does it do that makes the code not work when take it out?