xataface isn't loading my stylesheet

87 views
Skip to first unread message

Jeff Gordon

unread,
May 7, 2017, 11:00:05 AM5/7/17
to Xataface
I've just started using xataface and I must say I REALLY LOVE it so far ... kudos to Steve Hannah.

I'm not having any luck getting a custom style sheet to load (using xataface G2). I've followed the instructions here: http://xataface-tips.blogspot.ca/2013/05/how-to-use-chrome-and-css-to-customize.html

I've not sure what I'm doing wrong or if this is even the best way so any ideas are welcome ...

Thanks ... Jeff

<b>My environment:</b>
I downloaded the latest version of xataface from Github (https://github.com/shannah/xataface/) on about 4/30.
Windows 10 running XAMPP. 
My application is in L:\xampp\htdocs\candler\
Xataface in is in L:\xampp\htdocs\xataface

I can't seem to get my CSS style sheet to get recognized. The 2 things that the CSS should do are (1) change the logo and (2) remove the search bar which is just a convenient 2nd way to see if the style sheet is being picked up.

ApplicationDelegateClass.php within the candler/conf directory

<?php
class conf_ApplicationDelegate {

    function beforeHandleRequest(){
        Dataface_Application::getInstance()
            ->addHeadContent('<link rel="stylesheet" type="text/css" href="style.css"/>');
    }

}

The style.css within the candler main directory

 #xf-logo {
  background-image: url(images/candlerconnection.png);
  background-repeat: no-repeat;
    width: 152px;
    height: 39px;
    padding: 0;
    margin: 0;
 }
 
 div#top-search-form {display:none;}

Steve Hannah

unread,
May 8, 2017, 10:23:35 AM5/8/17
to xata...@googlegroups.com
The application delegate class should be

conf/ApplicationDelegate.php

not conf/ApplicationDelegateClass.php

Steve

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at https://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/38c9b1b8-019e-45e3-8757-1fbfa18b227c%40googlegroups.com.



--
Steve Hannah
Web Lite Solutions Corp.

Jeff Gordon

unread,
May 8, 2017, 11:44:36 AM5/8/17
to xata...@googlegroups.com
PERFECT!!! Thanks Steve!

You received this message because you are subscribed to a topic in the Google Groups "Xataface" group.
Reply all
Reply to author
Forward
0 new messages