Return-Path: X-Original-To: apmail-incubator-jspwiki-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-jspwiki-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5AB4FD713 for ; Mon, 17 Sep 2012 06:06:23 +0000 (UTC) Received: (qmail 79507 invoked by uid 500); 17 Sep 2012 06:06:22 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 79202 invoked by uid 500); 17 Sep 2012 06:06:17 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 79167 invoked by uid 99); 17 Sep 2012 06:06:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2012 06:06:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.214.175] (HELO mail-ob0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2012 06:06:11 +0000 Received: by obblz20 with SMTP id lz20so8761375obb.6 for ; Sun, 16 Sep 2012 23:05:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=jXO6zXNkUBJ66RI+OHaQD5up0tWq3s8jjRnNU5009FY=; b=ipAJX17yEHs+MkpoXgIdXx/AIyyVUNK8WGYogWsYGTfFJwMOcyO2M3dF9yTZ2RwYPy ZPLd0NCZz2iR73W7L0Aknm3aWNFCEbY7yIkFsIBzzfuq+LWIV8sYEnk5DThNtyBeZ4ks 5/opNj+Jd4kz6bU7IRUwU4G3YkXj7+hwsmhe1X/DKbvTcCx2Q4VE5z5qXAndgFFVLaaW StKsfalGwaksInRTJW7SdGF8i2xxlTjOPp3XqYMfj9mQG1t4TNXfC6szeA5cXJC8hbkM O7N0sthKWkrisfe6SSOXxD40kyhDbGEDft3ZTFFwKUtr1hJ5LNgx0ZVnI6/6qC5j46pp 9yrQ== MIME-Version: 1.0 Received: by 10.60.172.236 with SMTP id bf12mr10509658oec.23.1347861949523; Sun, 16 Sep 2012 23:05:49 -0700 (PDT) Received: by 10.76.141.134 with HTTP; Sun, 16 Sep 2012 23:05:49 -0700 (PDT) In-Reply-To: References: <50557C7F.7010907@davekoelmeyer.co.nz> Date: Mon, 17 Sep 2012 18:05:49 +1200 Message-ID: Subject: Re: Default content in new wiki pages From: Dave Koelmeyer To: jspwiki-user@incubator.apache.org Content-Type: multipart/alternative; boundary=bcaec54d4768b526a804c9df9091 X-Gm-Message-State: ALoCoQkht8m62D3+QjAhDRAYNMMFacR+qobrlKZfikFkI8YEvYh11+uKu3rjrJRKD1ofI9ywUs9y X-Virus-Checked: Checked by ClamAV on apache.org --bcaec54d4768b526a804c9df9091 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Juan Pablo, Thanks for that information - very helpful :) Cheers, Dave On Mon, Sep 17, 2012 at 10:26 AM, Juan Pablo Santos Rodr=EDguez < juanpablo.santos@gmail.com> wrote: > Hi Dave, > > there isn't a switch to insert custom content, so you'd have to modify > JSPWiki source. You can play with usertext variable at > $SVN_TRUNK/src/webdocs/templates/default/editors/plain.jsp (definition at > line 27), adding something like: > > > usertext =3D "DEFAULT_INIT_CONTENT" > > near line 60 or just reuse the block in lines 30 - 51, for example. > > If you want to enforce the initial content no matter what is inserted, th= en > the way to go could be a custom PageFilter. Take a look at the > $SVN_TRUNK/org/apache/wiki/filters/ProfanityFilter for an example. > > > HTH, > juan pablo > > > On Sun, Sep 16, 2012 at 9:15 AM, Dave Koelmeyer < > dave.koelmeyer@davekoelmeyer.co.nz> wrote: > > > Hi All, > > > > In what file do I define default content for new wiki pages? > > > > For example, if I want to insert a table of contents in every new page = by > > including "[{TableOfContents numbered=3D'yes'}]" etc. where would this = be > set? > > > > Thanks for any pointers :) > > > --bcaec54d4768b526a804c9df9091--