Page 1 of 1

HTML template - file size

Posted: Thu Dec 14, 2006 7:25 pm
by dcakovan
Is it possible to add #FILESIZE# in KB for html templates... or is there one already?
Thanks.

Re: HTML template - file size

Posted: Thu Dec 14, 2006 8:30 pm
by xnview
dcakovan wrote:Is it possible to add #FILESIZE# in KB for html templates... or is there one already?
Thanks.
Is added in 1.90 beta as #<FileSize>#

Posted: Fri Dec 15, 2006 4:17 pm
by dcakovan
That did not seam to work.

I edited one of the templates (thumb.html) and had something like
<a><img>#<Filename># #<FileSize>#</a>

Only the file name would show up.
Am I doing something wrong here?

Posted: Sat Dec 16, 2006 11:57 am
by xnview
dcakovan wrote:That did not seam to work.

I edited one of the templates (thumb.html) and had something like
<a><img>#<Filename># #<FileSize>#</a>

Only the file name would show up.
Am I doing something wrong here?
You have tested with 1.90??

Posted: Sun Dec 17, 2006 3:24 am
by dcakovan
Yes. With the latest beta 5 as well.

Posted: Mon Dec 18, 2006 10:08 am
by xnview
dcakovan wrote:Yes. With the latest beta 5 as well.
For me, it works.
For example, i've change in thumb.html

Code: Select all

<div>#THUMB_TEXT#</div>
into

Code: Select all

<div>#THUMB_TEXT#</div>
<div>#<Filename>#</div>

Posted: Mon Dec 18, 2006 9:25 pm
by dcakovan
Not sure if there was confusion but I was asking about file size. That does not appear.

Image

THUMB_TEXT and Filename seams to be the same. but that is not an issue.

Image

Posted: Mon Dec 18, 2006 9:41 pm
by helmut
xnview wrote:Is added in 1.90 beta as #<FileSize>#
Does not work for me.

From what I can see the place holder for file size is #<Size># and #<Size KB># (lower/uppercase doesn't matter).

I was about placing a question why there are placeholders with and without < >. But then the answer came to my mind: We have the original placeholders with #name#. In addition to those placeholders all placeholders which can be used for batch renaming (Tools > Batch rename) are available, but for those you have to use the less than and greater than characters <>, e.g. #<size>#.

It's very good that all those placeholders (original ones and the ones used in batch renaming) can be used, but the mixture of placeholders with '#' and with '#<' is not so good. Perhaps in addition to the # notation there could be the #< notation for all original placeholders.

Posted: Tue Dec 19, 2006 8:02 am
by xnview
dcakovan wrote:Not sure if there was confusion but I was asking about file size. That does not appear.
Sorry it's #<Size>#

Posted: Tue Dec 19, 2006 5:48 pm
by dcakovan
xnview wrote: Sorry it's #<Size>#
Thanks a lot. This works but it shows in bytes. Is there another command for kilobytes?

Posted: Tue Dec 19, 2006 6:13 pm
by helmut
dcakovan wrote:Is there another command for kilobytes?
#<Size KB># (see above)

Posted: Tue Dec 19, 2006 11:43 pm
by dcakovan
I am really sorry, I missed.
Thank you very much.