hfs2 icon indicating copy to clipboard operation
hfs2 copied to clipboard

2.3m can't list folder on web if using the template of 2.4RC7.

Open NewUserHa opened this issue 2 years ago • 3 comments

want to try save vfs with 2.3m, because https://github.com/rejetto/hfs2/issues/20.

I found this line from 2.4RC7(which has newer theme) can't work with 2.3m. but the two versions just use the same symbols only, and the macros don't affect any <a> tag of this section. https://github.com/rejetto/hfs2/blob/29f6bac31c94651b18474cec9e489ce376abbb34/default.tpl#L422

checked documents, but found nothing about [+folder] section means.

is there any quickfix for this issue? Thanks

NewUserHa avatar Aug 08 '21 02:08 NewUserHa

[+section] means append content below to this section.

I've found that, hfs 2.3 and 2.4 use different section format on this.

These works equally in two versions, both serves content 1 2 in browser at address /~1 and /~2:

# HFS 2.3:
[1=2]
1
[+1=+2]
2

# HFS 2.4
[1=2|public]
1
[+1=2]
2

So, in 2.3 you need to change all [+file=folder] to [+file=+folder]. link to +link respectively.

NaitLee avatar Sep 01 '21 09:09 NaitLee

can a template like that work for both 2.3 and 2.4?

NewUserHa avatar Sep 03 '21 12:09 NewUserHa

The newest Takeback template works for both 2.3 and 2.4, and have a skin which can be installed to make it like 2.4 default template. All of needed are in a release zip.

If there's any incompatibilities, simply report in its issue :)

NaitLee avatar Sep 03 '21 13:09 NaitLee