HTML template - file size

Bugs and Suggestions in XnView Classic which have been resolved

Moderators: XnTriq, xnview

User avatar
dcakovan
Posts: 52
Joined: Tue Sep 05, 2006 1:19 am

HTML template - file size

Post by dcakovan »

Is it possible to add #FILESIZE# in KB for html templates... or is there one already?
Thanks.
User avatar
xnview
Author of XnView
Posts: 37535
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: HTML template - file size

Post 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>#
Pierre.
User avatar
dcakovan
Posts: 52
Joined: Tue Sep 05, 2006 1:19 am

Post 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?
User avatar
xnview
Author of XnView
Posts: 37535
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post 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??
Pierre.
User avatar
dcakovan
Posts: 52
Joined: Tue Sep 05, 2006 1:19 am

Post by dcakovan »

Yes. With the latest beta 5 as well.
User avatar
xnview
Author of XnView
Posts: 37535
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post 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>
Pierre.
User avatar
dcakovan
Posts: 52
Joined: Tue Sep 05, 2006 1:19 am

Post 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
User avatar
helmut
Posts: 8433
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post 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.
Last edited by helmut on Wed Dec 20, 2006 10:32 am, edited 1 time in total.
User avatar
xnview
Author of XnView
Posts: 37535
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post 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>#
Pierre.
User avatar
dcakovan
Posts: 52
Joined: Tue Sep 05, 2006 1:19 am

Post by dcakovan »

xnview wrote: Sorry it's #<Size>#
Thanks a lot. This works but it shows in bytes. Is there another command for kilobytes?
User avatar
helmut
Posts: 8433
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

dcakovan wrote:Is there another command for kilobytes?
#<Size KB># (see above)
User avatar
dcakovan
Posts: 52
Joined: Tue Sep 05, 2006 1:19 am

Post by dcakovan »

I am really sorry, I missed.
Thank you very much.