Author Topic: diff tpl with {.set item.}  (Read 1102 times)

0 Members and 1 Guest are viewing this topic.

Offline raybob

  • Tireless poster
  • ****
  • Posts: 453
    • View Profile
    • FileSplat.com
diff tpl with {.set item.}
« 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

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 13014
    • View Profile
Re: diff tpl with {.set item.}
« Reply #1 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="

Offline raybob

  • Tireless poster
  • ****
  • Posts: 453
    • View Profile
    • FileSplat.com
Re: diff tpl with {.set item.}
« Reply #2 on: June 22, 2011, 02:50:47 PM »
Oh nice!  Didn't know it was already in there.

Thanks!

Offline blaabjerg88

  • Occasional poster
  • *
  • Posts: 1
    • View Profile
Re: diff tpl with {.set item.}
« Reply #3 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

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1912
    • View Profile
Re: diff tpl with {.set item.}
« Reply #4 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
« Last Edit: July 10, 2011, 07:37:46 PM by Mars »