2003-08-02 12:19:11 +00:00
|
|
|
##
|
2007-06-30 19:25:35 +00:00
|
|
|
## The Antville Project
|
|
|
|
## http://code.google.com/p/antville
|
2003-08-02 12:19:11 +00:00
|
|
|
##
|
2007-06-30 19:25:35 +00:00
|
|
|
## 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.
|
|
|
|
##
|
2007-10-11 23:03:17 +00:00
|
|
|
## $Revision:3355 $
|
|
|
|
## $LastChangedBy:piefke3000 $
|
|
|
|
## $LastChangedDate:2007-10-11 15:38:29 +0200 (Thu, 11 Oct 2007) $
|
2007-06-30 19:25:35 +00:00
|
|
|
## $URL$
|
|
|
|
##
|
|
|
|
|
2007-07-29 10:16:10 +00:00
|
|
|
_children = collection(Story)
|
2007-08-26 22:03:24 +00:00
|
|
|
_children.local = id
|
2007-09-26 22:22:37 +00:00
|
|
|
_children.foreign = site_id
|
|
|
|
_children.filter = prototype = 'Story'
|
|
|
|
_children.order = created desc
|
2007-07-29 10:16:10 +00:00
|
|
|
_children.cachemode = aggressive
|
2003-10-15 19:56:17 +00:00
|
|
|
|
2007-10-06 10:26:30 +00:00
|
|
|
top = collection(Story)
|
|
|
|
top.local = id
|
|
|
|
top.foreign = site_id
|
2007-10-09 15:09:06 +00:00
|
|
|
top.filter = prototype = 'Story' and status <> "closed" and requests > 0
|
2007-10-06 10:26:30 +00:00
|
|
|
top.order = requests desc
|
|
|
|
top.maxSize = 25
|
|
|
|
|
2007-10-11 23:03:17 +00:00
|
|
|
featured = collection(Story)
|
|
|
|
featured.local = id
|
|
|
|
featured.foreign = site_id
|
|
|
|
featured.filter = prototype = 'Story' and status <> "closed" and mode <> "hidden"
|
|
|
|
featured.order = modified desc
|
2007-10-06 10:26:30 +00:00
|
|
|
|
2007-10-08 23:55:29 +00:00
|
|
|
closed = collection(Story)
|
|
|
|
closed.local = id
|
|
|
|
closed.foreign site_id
|
|
|
|
closed.filter = prototype = 'Story' and status = 'closed'
|
|
|
|
closed.order = created desc
|
2007-09-26 22:22:37 +00:00
|
|
|
|
2007-10-06 10:26:30 +00:00
|
|
|
recent = collection(Story)
|
|
|
|
recent.local = id
|
|
|
|
recent.foreign = site_id
|
2007-10-08 23:55:29 +00:00
|
|
|
recent.filter = status <> "closed"
|
2007-10-06 10:26:30 +00:00
|
|
|
recent.order = modified desc
|
2007-10-11 23:03:17 +00:00
|
|
|
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
|
2007-07-29 10:16:10 +00:00
|
|
|
|
2007-08-04 15:52:44 +00:00
|
|
|
tags = collection(Tag)
|
|
|
|
tags.accessname = name
|
2007-08-26 22:03:24 +00:00
|
|
|
tags.local = id
|
2007-08-04 15:52:44 +00:00
|
|
|
tags.foreign = site_id
|
|
|
|
tags.order = name asc
|
|
|
|
tags.filter = tag.type = 'Story'
|
2007-08-03 19:41:51 +00:00
|
|
|
|
2007-07-29 10:16:10 +00:00
|
|
|
alphabeticalTags = collection(Tag)
|
|
|
|
alphabeticalTags.accessname = name
|
2007-08-26 22:03:24 +00:00
|
|
|
alphabeticalTags.local = id
|
2007-07-29 10:16:10 +00:00
|
|
|
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))
|
2007-08-04 15:52:44 +00:00
|
|
|
alphabeticalTags.group.order = name asc
|
2007-07-29 10:16:10 +00:00
|
|
|
|
|
|
|
otherTags = collection(Tag)
|
2007-08-04 15:52:44 +00:00
|
|
|
otherTags.accessname = name
|
2007-08-26 22:03:24 +00:00
|
|
|
otherTags.local = id
|
2007-07-29 10:16:10 +00:00
|
|
|
otherTags.foreign = site_id
|
|
|
|
otherTags.filter = tag.type = 'Story' and \
|
|
|
|
substr(tag.name, 1, 1) < "A" or \
|
|
|
|
substr(tag.name, 1, 1) > "Z"
|
2007-08-04 15:52:44 +00:00
|
|
|
otherTags.group = name
|
|
|
|
otherTags.group.order = name asc
|