xaraya postings

How to do Anonymous Comments

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]


xaraya

Handling Plain Upload Fields in a Pageform

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.


xaraya

Reformatting Date and Time

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.


xaraya

Pageform - a meta-module for xaraya forms

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)


xaraya

Conditional user content via css

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?


xaraya

A general return redirect mechanism

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


xaraya

Sorting items on a field

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.


xaraya

Dropdown list property

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.


xaraya

Articles data and getall function

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.


xaraya

Block Layout Anomolies

An on-going random list of tips, tricks, and gotcha in Xaraya's block layout (BL) templating system.


xaraya

Dynamic Extendable Templates in Xarpages

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.


xaraya

Uploading files in xaraya

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.


xaraya

Adding ratings to articles

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.


xaraya

Messing with authid

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.


xaraya