create new tag
, view all tags

MrdIdPluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on MrdIdPlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on MrdIdPlugin

-- BrianSpinar - 03 Feb 2005

Thanks Brian for sharing this Plugin with the TWiki community!

Small suggestion: For portability I recommend to store the Plugin internal data in the twiki/pub/TWiki06x00/MrdIdPlugin directory. See TWikiPlugins#Recommended_Storage_of_Plugin_Da

-- PeterThoeny - 03 Feb 2005

Brian, I am trying to use your plugin inside of an Edit Table as a label data type, but have not been having any luck. I am guessing this is the wrong plugin to do what I am trying to do, but I figured it was worth asking. What I want is a unique wiki link created for each new row in the Edit Table. Here is what I tought would work:

%EDITTABLE{ header="|*Task*|*Link*|" format="| text, 20 | label, 0, %MRDID{ id="Task" }% | " changerows="on" }%
|*Task*|*Date / Time*|*Link*|

...and I was expecting each row would give me whatever I enter in the task column and Taskx (where x is the auto-incremented number) for the link column. Instead, I am getting this:

%EDITTABLE{ header="|*Task*|*Link*|" format="| text, 20 | label, 0, %MRDID{ id="Task1" }% | " changerows="on" }%
|*Task*|*Date / Time*|*Link*|
| Test Task | 08 Mar 2005 10:33 | %MRDID{ id= |

I understand why it is doing what it is doing, but I was wondering if you had any suggestions how I can make it work how I want. Thanks!

-- AdamEllis - 08 Mar 2005

Adam, you can get what you want, but you'll need to change the formatting of the MRDID tag inside the EDITTABLE. You'll need to escape the percents and quotes to get it to work. Try this (I think you forgot the date column field in your example, so I added it to mine):

%EDITTABLE{ header="|*Task*|*Link*|" format="| text, 20 | date | label, 0, $percntMRDID{ id=$quotTask$quot }$percnt | " changerows="on" }%
|*Task*|*Date / Time*|*Link*|

When you add a row to the table, the tag will appear without a number (e.g. Task). When you save the table, the number should appear (e.g. Task1). I tried a quick experiment in our sandbox, and it seemed to work for me. Let me know if it doesn't.

-- BrianSpinar - 08 Mar 2005

That fixed it! Thanks Brian! For anybody else who is trying this out, take note that the number increments will not show up until you save the Edit Table.

-- AdamEllis - 08 Mar 2005

.zip checked into CVS

-- WillNorris - 27 Jun 2005

Is this plugin TWiki 4.0 compatable?

-- EricHanson - 28 Jun 2006

How can I use this plugin to generate short unique topic names? Would it be possible to attach an example on how to use this plugin either to the installation package or to this topic?

-- ClausLanghans - 14 Jul 2006

I am not familiar with this Plugin. FYI, you can also create unique topic names with the TWiki internal command. See ChangeRequest (serialized example) and random test topic on Sandbox web home.

-- PeterThoeny - 15 Jul 2006

Thanks, that was exactly what I was looking for. I guess i need to finish my Excel2Topic converter now.

-- ClausLanghans - 19 Jul 2006

I just discovered that the method described in ChangeRequest does not guarantee unique ids, as there is a race condition. Two users may start creating a new topic at roughly the same time. If the second one comes in before the first one saved the page they will end up with the same unique id.

-- ClausLanghans - 20 Jul 2006

Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2006-07-20 - ClausLanghans
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.