You are here: Foswiki>Tasks Web>Item10490 (05 Jul 2015, GeorgeClark)Edit Attach

Item10490: Document how to use Foswiki::Func::saveTopic to create a new topic.

Priority: Enhancement
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: FoswikiFunc, Documentation
Reported By: SvenDowideit
Waiting For:
Last Change By: GeorgeClark
both createWeb and saveAttachment have docco about creating a new 'item', but when you look at saveTopic, its about modifying an existing topic - no suggestion to new Foswiki::Meta(), or how is should be dealt with.

(this might just become simpler to do with Meta2?

once we've forced the plugin dev to read Foswiki::Meta, there doesn't seem much reason for them to use Foswiki::Func::saveTopic - they may as well new Meta->save() ?

and then, once they're read all that, they realize that Foswiki::Func::saveTopic actually will allow them to call it without a $meta to make a new topic...

-- SvenDowideit - 15 Mar 2011

ItemTemplate edit

Summary Document how to use Foswiki::Func::saveTopic to create a new topic.
ReportedBy SvenDowideit
Codebase trunk
SVN Range
AppliesTo Engine
Component FoswikiFunc, Documentation
Priority Enhancement
CurrentState Closed
Checkins distro:e6fb0d31673b distro:89ebef37dc3f
TargetRelease major
ReleasedIn 2.0.0
Topic revision: r6 - 05 Jul 2015, GeorgeClark
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