"Advanced" Relationship settings

A place for users and developers of the Xataface to discuss and receive support.

Postby kokoro » Sat Mar 21, 2009 11:17 pm

Just figured out that all I need to do is add

section:visible = 0

to the relationship.ini file in order to get in to disappear from the left section of the record. The search box, RSS link etc. are a part of the Xataface core I think so removing them probably isn't so easy...but not really necessary for me.

Now I just need to figure out how to remove the block on the leftmost side of the screen that says "this record" and contains an expandable menu to the related record. I'm going to use the tab in the record view and thus don't need/want the expandable tree menu on the left.

Jason

P.S. Since I haven't yet been able to make the relationship tree menu disappear I thought I'd try and change the name displayed using

function getTitle(&$record){
return $record->val('Total');
}

as explained at

http://xataface.com/forum/viewtopic.php?t=3900#19545

but it doesn't change the name under the + ?? Maybe I inserted the code in the wrong place...? This is what my delegate class file looks like (the one in the same directory as the relationship file):

Code: Select all
class tables_dataface_nuelpstudents {

function getTitle(&$record){
   return $record->val('Total');
}

function section__slep(&$record){
    $content =  '<table>';
      foreach ( $record->getRelatedRecordObjects('SLEP Scores') as $rrec){
         $content .= 'Raw Score '.$rrec->val('rawtotal').'<BR>'.'<BR>'.'SLEP Score '.$rrec->val('Total');
        }
    return array(
      'content' => $content ,
        'class' => 'main',
        'label' => 'SLEP Score',
        'order' => 10
    );

} }
kokoro
 
Posts: 39
Joined: Fri Feb 06, 2009 6:17 am

Previous

Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved