This question about Topic Markup Language and applications: More info required

Can you change a topic's authorship?

I'm going to move content from another wiki engine to a new Foswiki-based site. I want to preserve the original pages' authorship so that the original author gets credit. Of course, since I'm creating most of the new topics, my name will be there instead. Can I somehow change the authorship info after creating the topic so it appears that someone else created the topic?

-- AaronHall - 22 Dec 2015

How are you importing your data?
  • If it's just cut/paste into the web, I'm not aware of any easy way to spoof authorship or change it after the fact. It's embedded both into the topic meta, and into the revision history.
  • If you are importing data using a custom Perl tool, then the API's can specify the user to use when saving a topic.
  • The CLI scripts could also be used to save topic text. From the CLI, you can specify the user from the command line.
    cd /path/to/foswiki/bin
    ./save -topic Sandbox.CliSave -user JoeUser  -text "The Topic Text"

-- GeorgeClark - 22 Dec 2015

Oh... but be cautious running cli scripts. you must run them as the user that owns the foswiki data and logfiles, eg. apache, www-data, ... depending upon your particular Apache configuration. If the ownership of the logfiles change, it can disable web access.

-- GeorgeClark - 22 Dec 2015

I'm copy/pasting, which preserves the formatting and means I don't have to manually translate the Markdown to TML. Spoofing authorship pretty much is what I want to do. I suppose I could dig into the command-line tools or the code to see if there's a dirty underhanded way to do it through the API or by hacking the data files. I didn't want to do that, though.

-- AaronHall - 22 Dec 2015

 

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version Foswiki 2.0.3
Status More info required
Related Topics
Topic revision: r3 - 22 Dec 2015, AaronHall
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy