After days of searching im this far;
i made in mysite/code the 2 pages Contact.php and ContactAdmin.php as described above. I works.
Then i made an page ContactPage.php with the following code
<?php
class ContactPage extends Page {
static $db = array(
);
static $has_one = array(
);
}
class ContactPage_Controller extends Page_Controller {
}
?>
In the cms i can select a pagetype ContactPage
Then i made in themes/blackcandy/templates/Layout my ContactPage.ss with the following code
<div class="typography">
<% if Menu(2) %>
<% include SideBar %>
<div id="Content">
<% end_if %>
<% if Level(2) %>
<% include BreadCrumbs %>
<% end_if %>
<h2>$Title</h2>
$Content
$Name , $Address
$Form
$PageComments
<% if Menu(2) %>
</div>
<% end_if %><div id="Sidebar"><br /><br />$Sidebar</div>
</div>
In my template i just see the comma between $Name , $Address and no data is given in the page.
What am i doing wrong???
Actually i just want an searchbar in this page users can search for city and postal and then when they hit search the data shows... so just like the admin section but of course without editing functions.
How can i do this?
Thanks for response