NetTalk Central

Author Topic: Display field using file tag?  (Read 2772 times)

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Display field using file tag?
« on: October 11, 2022, 05:14:46 PM »
Question (12.46)

NetWebForm template.
Creating a Display field.
On the Display tab, there's a droplist at the top cunningly called Display.
One of the options in the list is "File Tag <!--Net:f"

If I choose that and put into the Text field:
'<!-- Net:f:/staticText/textNewAudit1.htm -->'

it goes through NetWebServerWorkerBase.LoadTagFile and looks for a file with that name.  And none of my files are named Net:f:whatever.

If instead I enter:
'/staticText/textNewAudit1.htm'
it works fine.

As does:
'staticText\textNewAudit1.htm'

Is this the expected behavior?  I just found the "File Tag <!--Net:f" placeholder confusing.

Cheers,

Jane

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Display field using file tag?
« Reply #1 on: October 12, 2022, 12:48:57 AM »
yeah, it's working as designed. The Net:f is done for you.

Cheers
Bruce

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Display field using file tag?
« Reply #2 on: October 12, 2022, 03:18:43 PM »
Thanks, Bruce.  Good to know.  I looked through the docs here and didn't find anything.

Cheers,

Jane