Trying to implement dataface for our website registration system. I am trying to create an interface that is more friendly than phpMyAdmin for my coworkers to access our online registration system. I am an amature PHP coder and hoping DF will make things a little easier for us.
My current dilemna is how to limit which fields get displayed. Currently we have a couple tables with 16 fields. I would like to limit the list view to only 8 of those fields. Different contexts will require different fields being displayed so I don't want to use the hide function in tables:table_name/fields.ini which I understand will hide the field throughout all of DF's pages. I suspect I have to hard code a variation of the Main Template. My search started with Dataface_List_View.html, which pointed me to the Main Template but I can't figure out where in there to alter things accordingly. I imagine it's here (line 223 of Main_Template) somehow but this code is a bit over my head:
{define_slot name="main_section"}
{if $history and !$ENV.APPLICATION.hide_history}
{block name="before_recently_viewed"}
Recent Records:
{section loop=$history name=i}
{$history[i].recordTitle}
{/section}
{block name="after_recently_viewed"}
{/if}
{block name="before_record_content"}
{define_slot name="record_content"}
{$body}
{/define_slot}
{block name="after_record_content"}
{/define_slot}
Thanks for your help.
Dan