Skip to main content
Participating Frequently
January 25, 2008
Question

Can the file extension be removed when using the File Special Field?

  • January 25, 2008
  • 2 replies
  • 313 views
I placed a Special Field on the top of my topics that gives me the filename for that specific topic. I used the Insert > Field > Special Field > File and the File Name is inserted where I want it. The problem is that i don't want the file extension to show, just the name. I can't figure out how to do this...Any suggestions....anyone? Maybe a Script or an applet? Any input will be greatly appreciated...
    This topic has been closed for replies.

    2 replies

    RoboColum_n_
    Legend
    January 28, 2008
    It worked for me. Did you save the topic whilst inside the Truecode?
    RoboColum_n_
    Legend
    January 25, 2008
    One way around this may be to go into the Truecode, look for the variable and change the x-value=topicname.htm value to x-value=topicname. The save the truecode and voila!
    jimprAuthor
    Participating Frequently
    January 25, 2008
    Thank you for your response. I did try something similar to what you suggested but the problem is that whatever I modify it automatically puts it back like it was as soon as I try to save it. This is probably because I used the Insert Special Field commands from the Menu. It automatically places this on the code:

    <!--kadov_tag{{<variable name=file
    x-format=default
    x-value=017.htm>}}-->017.htm<!--kadov_tag{{</variable>}}-->

    Where 017.htm is the actual name of the file for the specific topic. This means that it's apparently doing this on the background somewhere I can't see and inserting the value on the code for the topic...

    I hope that made sense! Again, I thank you in advance for any suggestions...