antville/code/Stories/Stories.properties
Tobi Schäfer df9017ab77 * Fixed reference to parent site in Archive
* Fixed _children.filter in Archive
 * Added missing permission checks
 * Modified global defineConstants() method to return the getter function instead of automatically defining it with given argument
 * Added HopObject.macro_macro() method to display userland macro code
 * Removed colorpicker (will be replaced by third-party library)
 * Removed obsolete global constants and functions
 * Overhauled and tested global userland macros like story_macro(), image_macro() etc.
 * Implemented global list_macro() to replace any special listFoobar_macro() methods
 * Moved global autoLogin() method into User prototype
 * Overhauled global randomize_macro()
 * Renamed global evalURL() method to validateUrl() as well as evalEmail() to validateEmail()
 * Re-added accidentally removed subskins to Members.skin
 * Fixed some skin names which were changed recently
 * Remove delete_action() from Membership
 * Fixed foreign key of images collection in Membership
 * Removed global username_macro() and replaced it with appropriate membership macros
 * Moved contents of systemscripts.skin into javascript.skin in Root prototype
 * Removed main_css_action(), main_js_action() and sitecounter_macro() methods from Root
 * Added accessname to sites collection in Root
 * Upgraded jQuery to version 1.2.1
 * Replaced call for global history_macro() with corresponding list_macro() call
 * Renamed "public" collection of Stories prototype to "featured"
 * Moved a lot of styles from Root's style.skin to the one in Site
 * Added comments collection to Site
 * Moved embed.skin as subskin #embed into Site.skin
 * Fixed some minor issues in Story.js (removed check for creator before setting the story's mode)
 * Defined cookie names as constants of User which can be overriden via app.properties userCookie and hashCookie
 * Moved a lot of code into compatibility module
2007-10-11 23:03:17 +00:00

90 lines
2.6 KiB
Properties

##
## The Antville Project
## http://code.google.com/p/antville
##
## Copyright 2001-2007 by The Antville People
##
## Licensed under the Apache License, Version 2.0 (the ``License'');
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an ``AS IS'' BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
## $Revision:3355 $
## $LastChangedBy:piefke3000 $
## $LastChangedDate:2007-10-11 15:38:29 +0200 (Thu, 11 Oct 2007) $
## $URL$
##
_children = collection(Story)
_children.local = id
_children.foreign = site_id
_children.filter = prototype = 'Story'
_children.order = created desc
_children.cachemode = aggressive
top = collection(Story)
top.local = id
top.foreign = site_id
top.filter = prototype = 'Story' and status <> "closed" and requests > 0
top.order = requests desc
top.maxSize = 25
featured = collection(Story)
featured.local = id
featured.foreign = site_id
featured.filter = prototype = 'Story' and status <> "closed" and mode <> "hidden"
featured.order = modified desc
closed = collection(Story)
closed.local = id
closed.foreign site_id
closed.filter = prototype = 'Story' and status = 'closed'
closed.order = created desc
recent = collection(Story)
recent.local = id
recent.foreign = site_id
recent.filter = status <> "closed"
recent.order = modified desc
recent.maxSize = 100
comments = collection(Comment)
comments.local = id
comments.foreign = site_id
comments.filter = prototype = 'Comment' and status <> 'closed' and status <> 'pending'
comments.order = modified desc
comments.maxSize = 100
tags = collection(Tag)
tags.accessname = name
tags.local = id
tags.foreign = site_id
tags.order = name asc
tags.filter = tag.type = 'Story'
alphabeticalTags = collection(Tag)
alphabeticalTags.accessname = name
alphabeticalTags.local = id
alphabeticalTags.foreign = site_id
alphabeticalTags.filter = tag.type = 'Story' and \
substr(tag.name, 1, 1) >= "A" and \
substr(tag.name, 1, 1) <= "Z"
alphabeticalTags.group = upper(substr(tag.name, 1, 1))
alphabeticalTags.group.order = name asc
otherTags = collection(Tag)
otherTags.accessname = name
otherTags.local = id
otherTags.foreign = site_id
otherTags.filter = tag.type = 'Story' and \
substr(tag.name, 1, 1) < "A" or \
substr(tag.name, 1, 1) > "Z"
otherTags.group = name
otherTags.group.order = name asc