Hi Martimiz, i dont get it, dont be surprised. The Galerie Page is acting differently, i agree, but the other pages are acting as different, mean THEY DONT SHOW results OR dont use PAGE_RESULTS.SS template, neither GalleryPage.ss or Page.ss
So i guees its not relevant to look at those pages as different entites. But i may be wrong.
Let me recap, point by point :
-> Page.ss uses Page.php
-> GaleriePage.ss uses GalleryPage.php
/******** GALLERYPAGE.PHP *********/
<?php
/**
* Defines the HomePage page type
*/
class GalleryPage extends Page {
static $db = array(
);
static $has_one = array(
);
}
class GalleryPage_Controller extends Page_Controller {
}
function results($data, $form){
$data = array(
'Results' => $form->getResults(),
'Query' => $form->getSearchQuery(),
'Title' => 'Search Results'
);
$this->Query = $form->getSearchQuery();
return $this->customise($data)->renderWith(array('Page_results', 'Page'));
}
/******* END OF GALLERYPAGE.PHP ************/
-> Both those pages should use Page_results.ss template as - - return $this - - should do.
But its not!
I left that comment <!-- THIS IS PAGES RESULTS --> into Page_results.ss template, and i DONT see that comment when i look at the source code of the HTML page produced when i click on the serch button.
This is the problem.
Thanks for your help!