rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: raybob on June 21, 2011, 04:00:48 AM

Title: diff tpl with {.set item.}
Post by: raybob on June 21, 2011, 04:00:48 AM
One essential function missing from {.set item.} is the ability to change the item's diff tpl in HFS.

This really would be extremely useful.

For example:  {.set item|folder|diff tpl=C:\template.tpl.}

Could you add this to this next build please?

Thanks,
Raybob
Title: Re: diff tpl with {.set item.}
Post by: rejetto on June 22, 2011, 09:21:00 AM
sorry, i forgot to document it.
just added to the to-do list.
in the while you can already use it, of course, but it's "diff template=" instead of "diff tpl="
Title: Re: diff tpl with {.set item.}
Post by: raybob on June 22, 2011, 02:50:47 PM
Oh nice!  Didn't know it was already in there.

Thanks!
Title: Re: diff tpl with {.set item.}
Post by: blaabjerg88 on July 09, 2011, 09:52:25 PM
kan you pleas show it in action... I have been looking for this BIG TIME.... but dont know how and where to implement it...

Thanks
Title: Re: diff tpl with {.set item.}
Post by: Mars on July 10, 2011, 07:34:02 PM
blaabjerg88

when you uses some macro to create a folder

only an example:

for virtual folder
{.add folder|virtual|/personal/my pictures.}
{.set item|/personal/my pictures|hide=0|comment=you should never see this!.}
{.set item|/personal/my pictures|diff tpl=C:\template.tpl.}

for real folder
{.add folder|real|/personal/my pictures.}
{.set item|/personal/my pictures|hide=0|comment=you should never see this!.}
{.copy|C:\template.tpl|/personal/my pictures/hfs.diff.tpl.}

see others possibilities in the wiki
http://www.rejetto.com/wiki/index.php?title=HFS:_scripting_commands