Hi all! As a noob to Xataface (although an experienced programmer), first can I apologise if this is a dumb question. Please be gentle with me
I've set up a database and let Xataface create the default forms etc, and I've done a bit of tailoring - all dead easy.
What I'm trying to do now is add an extra item to the View / Edit tabs in the Details view. What I've done is:
1. Added a new item in my site actions.ini file:
[sitebuild]
label = "Site Build"
url = "{$this->url('-action=sitebuild')}"
order = 20
category = record_tabs
template = LOPC_SiteBuild.html
2. Created the LOPC_SiteBuildhtml file in <site>/templates directory
{use_macro file="Dataface_Record_Template.html"}
{fill_slot name="record_content"}
<h1>LOPC Site Build</h1>
<p>Sorry - still under development - please try again later</p>
{/fill_slot}
{/use_macro}
When I went to a table's details page, sure enough the new tab was there after View / Edit, and when I click on it, I get the right html displayed.
But the 'sitedetails' tab doesn't get highlighted to show that's what is selected - when the mouse moves away the highlight goes off.
What do I need to do to fix this?
Thanks
Kevin