list_item() {
local meta file link name
- eval "$LOCAL_META"
if [ "${META_NAME%/}" != "${META_NAME}" ]; then
printf '[a .list .dir href="%s?%s" . %s]' \
)"
list_fullname(){
- local short="$(UNSTRING "${1%${CR}}")" file
+ local short="$1" file
file="$(printf %s\\n "$_DATA/$ITEM/$short".*)"
file="${file%%${BR}*}"
[ -e "$file" ] && printf %s\\n "${file#${_DATA}/${ITEM}/}"
local page i c n end qry
page="$(GET p |grep -axE '[0-9]+' || printf 1)"; c=1
end=$((page + LISTSIZE))
+ eval "$LOCAL_META" # localize vars from db_meta
printf '[div .itemlist '
while :; do