Making a web page the home page
Posted: Wed Aug 06, 2008 7:42 am
I have set up a simple web page to act as a Home page for a project. This displays fine if I enter the URL. I would like to have a menu tab for the Home page, so I thought that I could add a function to ApplicationDelegate.php to replace the tables menu head block in Dataface_Nav_Menu.html.
I have tried to add a "Home" tab to the beginning of the code, but am getting an error when I try to access the project:
Parse error: syntax error, unexpected '<' in /home/archomai/public_html/alcreg/conf/ApplicationDelegate.php on line 25
Apologies for my lack of php, but can anyone see what I've got wrong?
Many thanks
Neil
I have tried to add a "Home" tab to the beginning of the code, but am getting an error when I try to access the project:
Parse error: syntax error, unexpected '<' in /home/archomai/public_html/alcreg/conf/ApplicationDelegate.php on line 25
Apologies for my lack of php, but can anyone see what I've got wrong?
- Code: Select all
function block__tables_menu_head(){
<li><a href="qwerty.co.uk/asdfg/HomePage"
accesskey="accesskeys-navigation"
class="table-selection-tab"
title="Home"
id="TableLink_Home">
Home
</a></li>
{foreach from=$ENV.APPLICATION._tables item=label key=table}
<li {if $ENV.table==$table}class="selected"{/if}><a href="{$ENV.DATAFACE_SITE_HREF}?-table={$table}"
accesskey="accesskeys-navigation"
class="table-selection-tab {if $ENV.table==$table}selected{/if}"
title="{$label}"
id="TableLink_{$table}">
{$label}
</a></li>
{/foreach}
}
Many thanks
Neil