Prototype StoryMgr
ACTIONS | FUNCTIONS | MACROS | SKINS | TEMPLATES | TYPE.PROPERTIES

Actions
create_action
action for creating a new Story
main_action
main action
mystories_action
list all stories of a user inside the site the membership belongs to
offline_action
 
Functions
checkAccess(action, usr, level)
permission check (called by hopobject.onRequest())
checkAdd(usr, level)
function checks if user is allowed to access the storymanager of this site
deleteAll()
function loops over all stories and removes them (including their comments!)
deleteStory(storyObj)
delete a story including all the comments
evalNewStory(param, creator)
function checks if story fits to the minimal needs (must have at least a text ;-)
 
Skins
main.skin
response.pagenavigation, response.storylist
 


type.properties
##
## collections
##
_children            = collection(Story)
_children.local      = SITE_ID
_children.foreign    = TEXT_F_SITE
_children.filter     = TEXT_PROTOTYPE = 'Story'
_children.order      = TEXT_CREATETIME desc
_children.cachemode  = aggressive

offline              = collection(Story)
offline.local        = SITE_ID
offline.foreign      = TEXT_F_SITE
offline.filter       = TEXT_PROTOTYPE = 'Story' AND TEXT_ISONLINE = 0
offline.order        = TEXT_CREATETIME desc