Using Subversion and Xaraya
Now that I decided to use Subversion, I've set it up for my Xaraya projects too.
xamp | xaraya
Now that I decided to use Subversion, I've set it up for my Xaraya projects too.
With just a couple clicks you can enable anonymous comments on your articles. But it says "Posted by: Anonymous". What if you want people to add their name? [Updated with more thoughts about psyching out spambots]
Here's a little function I wrote to do it.
I had a need for a form and function solution, and pageforms provided a quick and easy way
Use the Xaraya xar:template tag to help modularize your templates and avoid redundancy.
setting up scheduler with crontab
You can simplify things for your users if you allow them to register and log in with their email address rather than username.
Have you noticed in forms that tabbing lands on the next label then you have to tab again to go to the input field?
And I just added dropdownitems for making a dropdown list from any items.
This obscure error might mean creating hooked dynamicdata has failed
Xaraya's Dynamic Uploads Property is very flexible allowing multiple methods of attaching files. But in most cases, I just want a file input field (text box plus browse button), and don't want to require users to make the extra click to reveal the uploads box. And then it gets a bit tricky when you allow users to hit the back button, and re-submit with or without specifying a new file name.
Here's a useful snippet for reformatting date and time strings when you only have a pre-formatted string and don't have the Unix timestamp.
Pageform is a tiny framework for building, validating, and processing forms in Xaraya. Pageform is built on top of the Xarpages and Dynamicdata modules. (Note: updated for PF v0.2 1/30/07) (Note: updated with xml import of pagetypes 4/3/07)
Notes on installing and using the source code repository for Xaraya.
A step by step how I added Google Sitemaps to this site.
How to create and use dd objects natively. (Article under construction). This is Xar 1.x only.
How I configure my sites with separate Admin, Editors, and Webmasters menus. These can be selectively shown using privileges.
We all know that a CMS can select content and build pages based on certain conditions. But what about text entered by users via forms and wysiwyg editors?
On a site, I wanted users to register and then continue a little workflow through several extra screens (sort of a registration wizard). But the registration process doesnt provide a return_url at the end. Here's a workaround, which is generalized for any functions that don't already support return_url's
What the heck is the point of a registration confirm page if when you hit back and then resubmit you get a Forbidden Operation authid error???
Here's a function to sort an array of items, where each item is a key indexed array, like that returned by the articles "getall" user api function.
Not just for ordinary select options lists, it's a handy property for linking items by the item id. Also a note about Country Dropdown property.
Articles has some built in data fields. And can be extended with Dynamic Data. Most of this is really great and convenient. But some functions are not available on the DD data.
Although you can hook Dynamic Data to many modules, the way of access this data varies if the module has native support for this data.
An on-going random list of tips, tricks, and gotcha in Xaraya's block layout (BL) templating system.
I really wish we could include blocklayout (BL) code in textarea fields. But we can't (now anyway). So, here's a few techniques for dynamically extending your templates, one of which involves making your own property type.
There's several different ways to upload files to your website in Xaraya. I'll try to document current "best practices" separated from legacy methods.
I decided to finally add user ratiings to articles on the news-oriented IWA site (http://www.windaction.org). Here's the steps (and some missteps) I went through.
Authorisation ID is used inside xaraya as a security measure to make sure bots are not submitting input that only humans should be. But sometimes it gets in the way or gets confused. Especially when current module space template calls a form in another module.
A simple change to get tabbed menus in xarpages.