Fruml CMS Community: Update 07-07-2010 - Fruml CMS Community

Jump to content

Page 1 of 1

Update 07-07-2010

#1 User is offline   Alex Icon

  • Author
  • Icon
  • Group: Administrators
  • Posts: 55
  • Joined: 17-January 10

Posted 07 July 2010 - 04:22 PM

Wow, it's already been a month since my last update!

But that doesn't mean nothing has happened in that month ;)

Text Transformer
The text transformer can transform the output of a Fruml tag. For example:
[page name="content" transform="truncate(120, '...')" transform="htmlentities"]

This will truncate the content of the page to 120 characters (and possibly append an ellipsis), and after that htmlentities will be applied. Text transformations can be applied to any textual output.

The image transformer should now be called with modify="modification" instead of transform.


User Blocking
Users who attempt to log in too often (but fail) can be automatically blocked for a certain timeout (e.g. 10 minutes or something) or they can be permanently blocked (i.e. until an admin unblocks them). This is configurable, and is disabled by default.


Improved Data Stores
Data Stores are little thingies that can be used to store stuff in the database without having to create a new table to do so (it's a very simple implementation of a key-value store).

<?php

$store = DataStore::factory('fruml_download_counter', 'The number of times Fruml has been downloaded.');
$store['count'] += 1;

?>

This example simply increments a counter when someone downloads Fruml (from my test site ;)). The data in the store is automatically saved when the request is finished (although you can turn this off and then call $store->save() manually).

CodeMirror
I implemented CodeMirror for highlighting components, template and static assets. Looks nice ;) Of course, this can be turned off if it's not to your liking.

Plus I fixed/ updated a lot of other stuff which isn't that interesting to note here.
That's it for now, don't forget to read the beta test topic!
0

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users