removed shortcuts from antville. support of shortcut is now optional via zip module

This commit is contained in:
Tobi Schäfer 2003-02-11 16:54:07 +00:00
parent 1028d1e78d
commit b458c2cab1
6 changed files with 1 additions and 91 deletions

View file

@ -314,22 +314,6 @@ function input_macro(param) {
}
/**
* function renders a shortcut
*/
function shortcut_macro(param) {
// disable caching of any contentPart containing this macro
req.data.cachePart = false;
if (param && param.name) {
var sc = res.handlers.site.shortcuts.get(param.name);
if (sc)
sc.renderContent(param.text);
else
return(param.name);
}
}
/**
* function renders a list of stories either contained
* in a topic or from the story collection.

View file

@ -68,7 +68,6 @@ skins = mountpoint (skinmgr)
files = mountpoint (filemgr)
stories = mountpoint (storymgr)
polls = mountpoint (pollmgr)
shortcuts = mountpoint (shortcutmgr)
# collections
allstories = collection (story)

View file

@ -179,7 +179,7 @@ function getRenderedContentPart (name) {
var partLastRendered = this.cache["lastRendered_"+name];
if (partLastRendered <= this.modifytime ||
partLastRendered <= this.cache.modifytime) {
// enable caching; some macros (eg. poll, shortcut, storylist)
// enable caching; some macros (eg. poll, storylist)
// will set this to false to prevent caching of a contentpart
// containing them [rg]
req.data.cachePart = true;