Tags:
create new tag
view all tags

Question

I would like to take the name of a topic and remove the last 5 characters from it and then use the text as part of a title in my topic.

Is this possible using any of the existing variables in twiki?

Thanks

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Missing functionality

-- GregGardinier - 01 Sep 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Hmm I had done something by accident that I noticed. I had changed the name of the folder of the web to deleteme while I had edited a copy of it. I thought that it wouldn't show up on the webleftbar if I changed the name. I went to the wiki and notice that there was a new web added called delete me. You can try just editing the name in twiki/data and see what happens. Let me know if that did it.

-- StephenGarriques - 02 Sep 2007

I don't see how this is at all related to the issue. I want to dynamically take text and modify just the last 5 characters of a string. Regardless of its length. This would require using a some kind of variable.....

-- GregGardinier - 02 Sep 2007

oh sorry I mis-read your question

-- StephenGarriques - 02 Sep 2007

Yes, use a SpreadSheetPlugin formula. Cutting off last 5 chars of this topic: ModifyTextSt (look at raw text to see how this works.)

We use this in the Plugins web to point from the FooBarPluginDev topic back to the FooBarPlugin topic.

-- PeterThoeny - 03 Sep 2007

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-09-03 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.