Hi,
I'm new to Xataface, but have got a basic XF site up and running and am now trying to make some cosmetic changes to positioning of layout elements. Specifically, I want to reduce the rather large (5cm on my screen) left-hand 'margin' space between the left edge of the browser window and the XF record 'frame' (below the 'table tabs' bar). I wonder how do I do this?
I have tried adding a custom stylesheet (called 'styles.css' and based on some elements contained in the 'plone.css' file in the XF directory) to the top level of my application directory. The stylesheet contains the following items (I've reduced the max-width attribute to 35mm down from 175mm):
....
#main_table {
clear: both;
}
#main_table #left_column {
max-width: 35px;
padding: 1em;
}
#main_table #main_column {
}
....
I also added some code to myApplicationDelegate.php file below the code I already had there (to login users). The code I added was suggested by Steve (Hannah) in an earlier post:
....
function block__custom_stylesheets(){
$styles_path = DATAFACE_SITE_URL;
if ( $styles_path{strlen($styles_path)-1} != '/' ) $styles_path .= '/';
// If there was no trailing slash to the styles path, we add one.
$styles_path .= 'styles.css';
echo <<
END;
return true;
}
...
But this leads to an error when I try to login to my site:
'Parse error: syntax error, unexpected T_SL in .... ApplicationDelegate.php on line 30' (the line with 'echo' I think).
I am stuck now and would really appreciate some help.
Thanks...
Fred
PS: I also want to reduce the span of the sidebar area, which I guess might involve a similar method to the above, but I'm not sure about this either.