-
Adding some text when no block/slot exists
posted by noreply@blogger.com (Fong Chun Chan) on Nov 12, 2008
Sometimes you need to add some text to a certain template, but Xataface doesn't have the specific block or slot to use. For example, say you wanted to include some text underneath the password field in the login page for Xataface. You can't do this with
More ...
-
Testing Xataface on IE6 when you have Vista
posted by noreply@blogger.com (Fong Chun Chan) on Nov 16, 2008
So I ran into a pretty annoying problem the other day. I had to test a Xataface application on IE6 with Vista as my OS. Which basically meant I had IE7 preinstalled, and I couldn't install IE6. Ughh...annoying. I don't understand why people still use
More ...
-
Internet Media Manager
posted by shannah on Aug 1, 2008
I was tired of having to resize my images before uploading them to the web. I also wanted to be able to host more video on my website in a simple way. So I created an application to manage and serve all of my videos and images - Internet Media Manager.
More ...
-
SVN committing
posted by noreply@blogger.com (Fong Chun Chan) on Nov 22, 2008
This isn't exactly a Xataface related issue, but I found myself continually forgetting about this that I thought it would be good to blog about this so I can remember. When I have ssh'ed onto the server and I need to do a svn commit, I get an error messa
More ...
-
Displaying Xataface record values
posted by noreply@blogger.com (Fong Chun Chan) on Aug 2, 2008
Taking a look at the Xataface Record API presents you with several techniques to display the values of the record. At the lowest level, there is a function called val and can be called like this (assuming $rec is a Xataface record)
More ...
-
Xataface: Setting a logo for a xataface record
posted by noreply@blogger.com (Fong Chun Chan) on Jul 31, 2008
When you go into the details view of a record, in addition to the all the different values in the database about the record, you can also specify a logo for that record and this logo will appear in the top left corner of the record.You should
More ...
-
Using smarty tags in a template
posted by noreply@blogger.com (Fong Chun Chan) on Jul 8, 2008
This is a tutorial to show how to specify some variables in a php class and then use them in the smarty template. Here is the situation: There is a below_header.html file needs to have a drop down menu which lists a bunch of offering_types as a classifi
More ...
-
Displaying actions in a html select object
posted by noreply@blogger.com (Fong Chun Chan) on Jun 26, 2008
Here is an interesting example of how to use actions in an html select from object.In our actions.ini file (delegate or conf.ini) we have a set of actions each with the category attribute set to bd_company_filters. Like this:
More ...
-
Using the df_display() function
posted by noreply@blogger.com (Fong Chun Chan) on Jun 7, 2008
You can use the function df_display() to actually include html files (or I think any other file) in your templates folder that can then be displayed in your delegate class functions. For example,function block__before_header
More ...
-
Smarty Tags
posted by noreply@blogger.com (Fong Chun Chan) on Jun 5, 2008
So Xataface employs smarty templates throughout its application to apply its styles and stuff. I am not 100% sure how it works, but there are list of ENV variables which are available to be used throughout any template file in xataface. These ENV varia
More ...
-
Changing preferences in the conf.ini file
posted by noreply@blogger.com (Fong Chun Chan) on Jun 3, 2008
The conf.ini file there is a section called [_pref] which you can use set different preferences through the application. For example, show_search = 0 will turn off search. How this works is that the various template files the application uses has specia
More ...
-
Changing the default template for list view
posted by noreply@blogger.com (Fong Chun Chan) on Jun 3, 2008
You can actually change the default template list view (or maybe any other template) by doing something really simply. For example, we can use the Dataface_List_View_summary.html file (it's in the Dataface/templates folder) to replace our normal view of
More ...
-
The debug option
posted by noreply@blogger.com (Fong Chun Chan) on Jun 3, 2008
You have the option of turning on debug = 1 in the conf.ini file in the application folder of a Xataface application. What this will do is basically display all the possible blocks you can insert code/templates into. Slots will not be display
More ...
-
Dataface record checkPermission() function
posted by noreply@blogger.com (Fong Chun Chan) on Jun 3, 2008
The dataface record class has a function called the checkPermission($permission) where the parameter is a name of a permission specified in the permissions.ini file.Different users will have different permissions and so if the user who is curr
More ...
-
How to add custom stylesheets and javascript
posted by noreply@blogger.com (Fong Chun Chan) on May 30, 2008
Here was the tutorial on how to do it:http://framework.weblite.ca/documentation/how-to/custom_javascriptsBasically you just add the code at the delegate class, or application class:function block__cust
More ...
-
Using the table relationship permissions function
posted by noreply@blogger.com (Fong Chun Chan) on May 9, 2008
Inside of each delegate class, we can use the function rel_nameOfRelationship__permissions(&$record) to specify the permissions on that relationship. The reason this works is because when we click on a tab to go to the relationship we are still in the or
More ...
-
Setting up Drupal Editing in Eclipse
posted by noreply@blogger.com (Fong Chun Chan) on May 6, 2008
Found a cool article that teaches us how to setup Drupal editing inside of Eclipse. Pretty cool actually.The idea of adding like extra content types for a language can probably be extended for future
More ...
-
Xataface - How to unset tabs in the table view
posted by noreply@blogger.com (Fong Chun Chan) on Apr 23, 2008
Inside of a delegate class' fields.ini file, you can specify the notion of "tabs" and actually put separate fields into their tabs. Sometimes you don't want a tab to appear in the view of a record. You can set the permissions of this like th
More ...
-
Application Versioning & Synchronization with Xataface
posted by shannah on Nov 26, 2008
One of the more annoying challenges involved with managing production web applications is keeping the development and production versions in sync. Verson control systems such as Subversion and CVS make this task trivial for source code and file system c
More ...
-
Replacing Scriptaculous/Prototype with jQuery
posted by shannah on Nov 25, 2008
I have used Scriptaculous in the past to sprinkle little bits of UI magic into Xataface. Specifically, I have used it to add collapsible sections, sortable sections (via drag-and-drop), and sortable tables (also via drag and drop). These worked great!
More ...
-
Operation Aborted in IE:
posted by shannah on Nov 6, 2008
Found this great IE blog article explaining the cryptic “Operation Aborted Error” in IE.
Click Here.
Another reminder of why I don’t use IE, but also why the fact that many people do use it makes my life as a developer miserable.
More ...
-
Getting related records
posted by noreply@blogger.com (Fong Chun Chan) on Dec 16, 2008
One thing you'll want to do is to grab related records in Xataface. Say for example, you have an abstract record that belongs to a conference. In the relationships.ini file of your abstract table, you would include something like this:br /br /blockquote
More ...
-
Xataface svn repository
posted by noreply@blogger.com (Fong Chun Chan) on Nov 28, 2008
One good thing you should do if you are planning to develop an application with Xataface is to actually checkout the svn repository of Xataface. The most recent code for Xataface which includes bug fixes and features will be added to this repository. I
More ...
-
Keeping your database up to date throughout development
posted by noreply@blogger.com (Fong Chun Chan) on Nov 22, 2008
A major development issue in any computer project that requires a database is keeping your database structure keep to date with the different versions of the code. Keep database up to date is always a difficult because you cannot simply put it under vers
More ...
-
Setting a MD5 hash on a password field
posted by noreply@blogger.com (Fong Chun Chan) on Sep 3, 2008
In your users table, you might want to store the user's password as a MD5 hash. When xataface is authenticating users, you make to tell them to encrypt the password they enter so that it can be properly compared to the value in the database. To do this,
More ...
-
Returning back to an old page
posted by noreply@blogger.com (Fong Chun Chan) on Aug 14, 2008
When you have a custom action, you need to be able to return back to the page you were on before your custom action. The best way to do this is to take the query that was sent to your action:$query =& $app->getQuery();
More ...
-
functions.inc.php
posted by noreply@blogger.com (Fong Chun Chan) on Apr 9, 2008
If you create this file in a folder called include, this file will be included in every page and the functions will be available. I've included like an example of this file with some functions that serve as an example of what it can be used for:
More ...
-
Actions: Adding new actions at specific locations
posted by noreply@blogger.com (Fong Chun Chan) on Apr 9, 2008
One thing that seemed to escape me for the longest time was the fact that when I included an actions.ini, or like a permissions.ini file in my website's directory. I was actually overriding the actions and permissons.ini files in the main dataface direct
More ...
-
Permissions
posted by noreply@blogger.com (Fong Chun Chan) on Apr 3, 2008
So I've been doing a lot of research into the permission in dataface and I think I have a pretty good understanding. There is a global permission setting you can set for all tables in the conf/ApplicationDelegate.php class. So you can grant
More ...
-
Installation
posted by noreply@blogger.com (Fong Chun Chan) on Apr 3, 2008
I've decided to update this post (done on Nov 29th) to add all the problems I've had with the installation of dataface and following that "Getting Started" tutorial. So below is a list of them:Nothing shows up
More ...