Skip to content

Commit

Permalink
Item798: initial commit
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/FoswikiApplicationsContrib@2039 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Jan 19, 2009
0 parents commit 57f0a5f
Show file tree
Hide file tree
Showing 18 changed files with 238 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/FoswikiApplicationData/WebAtom.txt
@@ -0,0 +1,6 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
<title>%WIKITOOLNAME%'s <nop>%WEB% web</title>
<subtitle>%MAKETEXT{"The [_1] web of Foswiki, the Free and Open Source Wiki." args="<nop>%WEB%"}%</subtitle>
%INCLUDE{"%SYSTEMWEB%.WebAtomBase"}% <!--
* Set SKIN = rssatom
-->
2 changes: 2 additions & 0 deletions data/FoswikiApplicationData/WebChanges.txt
@@ -0,0 +1,2 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}%
4 changes: 4 additions & 0 deletions data/FoswikiApplicationData/WebCreateNewTopic.txt
@@ -0,0 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.1" version="$Rev: 1838 $"}%
<!--
* Set VIEW_TEMPLATE = WebCreateNewTopic
-->
19 changes: 19 additions & 0 deletions data/FoswikiApplicationData/WebHome.txt
@@ -0,0 +1,19 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
---+!! %MAKETEXT{"Welcome to the [_1] web" args="<nop>%WEB%"}%

---++ %MAKETEXT{"Available Information"}%
* ...
* ...
* ...

---++ <nop>%WEB% Web Utilities
<form action='%SCRIPTURLPATH{"search"}%/%WEB%/'>
* <input type="text" name="search" size="22" />&nbsp;<input type="submit" class="foswikiSubmit" value="%MAKETEXT{"Search"}%" /> - [[WebSearchAdvanced][%MAKETEXT{"advanced search"}%]]
* WebTopicList - all topics in alphabetical order
* WebChanges - recent topic changes in this web
* WebNotify - subscribe to an e-mail alert sent when topics change
* WebRss, WebAtom - RSS and ATOM news feeds of topic changes
* WebStatistics - listing popular topics and top contributors
* WebPreferences - preferences of this web
</form>

2 changes: 2 additions & 0 deletions data/FoswikiApplicationData/WebIndex.txt
@@ -0,0 +1,2 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}%
14 changes: 14 additions & 0 deletions data/FoswikiApplicationData/WebLeftBar.txt
@@ -0,0 +1,14 @@
%META:TOPICINFO{author="ProjectContributor" date="1178746198" format="1.1" version="$Rev: 1340 $"}%
%INCLUDE{"%IF{"context can_login" then="%SYSTEMWEB%.WebLeftBarLogin" else="<nop>"}%" warn="off"}%
* *%MAKETEXT{"Toolbox"}%*
* [[%SCRIPTURLPATH{"view"}%/%BASEWEB%/WebCreateNewTopic?topicparent=%BASETOPIC%][ %ICON{"newtopic"}% %MAKETEXT{"Create New Topic"}%]]
* [[WebTopicList][ %ICON{"index"}% %MAKETEXT{"Index"}%]]
* [[%INCLUDINGWEB%.WebSearch][ %ICON{"searchtopic"}% %MAKETEXT{"Search"}%]]
* [[WebChanges][ %ICON{"changes"}% %MAKETEXT{"Changes"}%]]
* [[WebNotify][ %ICON{"notify"}% %MAKETEXT{"Notifications"}%]]
* [[WebRss][ %ICON{"feed"}% %MAKETEXT{"RSS Feed"}%]]
* [[WebStatistics][ %ICON{"statistics"}% %MAKETEXT{"Statistics"}%]]
* [[WebPreferences][ %ICON{"wrench"}% %MAKETEXT{"Preferences"}%]]

---
%INCLUDE{ "%SYSTEMWEB%.WebLeftBarWebsList" }%
8 changes: 8 additions & 0 deletions data/FoswikiApplicationData/WebNotify.txt
@@ -0,0 +1,8 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
%MAKETEXT{"This is a subscription service to be automatically notified by e-mail when topics change in this [_1] web. This is a convenient service, so you do not have to come back and check all the time if something has changed. To subscribe, please add a bullet with your [_2] in alphabetical order to this list:" args="*<nop>%WEB%*,[[%SYSTEMWEB%.WikiName][WikiName]]"}%

* %USERSWEB%.WikiGuest
* %USERSWEB%.WikiGuest - example@your.company


%INCLUDE{"%SYSTEMWEB%.WebChangesAlert"}%
67 changes: 67 additions & 0 deletions data/FoswikiApplicationData/WebPreferences.txt
@@ -0,0 +1,67 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
%META:TOPICPARENT{name="WebHome"}%
---+!! <nop>%WEB% Web Preferences

The following settings are *web preferences* of the [[%WEB%.%HOMETOPIC%][%WEB%]] web. These preferences overwrite the *site-level preferences* in [[%SYSTEMWEB%.%WIKIPREFSTOPIC%]] and [[%LOCALSITEPREFS%]], and can be overwritten by *user preferences* (your personal topic, eg: [[%USERSWEB%.%WIKINAME%][%WIKINAME%]] in the [[%USERSWEB%.%HOMETOPIC%][%USERSWEB%]] web).

%TOC%

---++ Web Preferences Settings

These settings override the defaults for this web only. See [[%SYSTEMWEB%.DefaultPreferences#DefaultWebPreferences][full list of defaults with explanation]]. Many of the settings below are commented out. Remove the # sign to enable a local customisation.

* List of topics of the <nop>%WEB% web:
* #Set WEBTOPICLIST = %WEBTOPICLIST%

<div style='background-color: %WEBBGCOLOR%;float: right'>
&nbsp;%WEBBGCOLOR%&nbsp;
</div>
* Web-specific background color: (Pick a lighter one of the [[%SYSTEMWEB%.StandardColors][StandardColors]]).
* Set WEBBGCOLOR = #DDDDDD
* *Note:* This setting is automatically configured when you create a web

* Image, URL and alternate tooltip text of web's logo.%BR%
*Note:* Don't add your own local logos to the [[%SYSTEMWEB%.ProjectLogos][ProjectLogos]] topic; create your own logos topic instead.
* #Set WEBLOGOIMG = %WEBLOGOIMG%
* #Set WEBLOGOURL = %WEBLOGOURL%
* #Set WEBLOGOALT = %WEBLOGOALT%

* List this web in the [[%SYSTEMWEB%.SiteMap][SiteMap]]. If you want the web listed, then set SITEMAPLIST to =on=, do not set NOSEARCHALL, and add the "what" and "use to..." description for the site map. Use links that include the name of the web, i.e. <nop>%WEB%.Topic links.%BR%
*Note:* Unlike other settings, SITEMAPLIST is *not* inherited from parent webs. It has to be set in *every* web that is to be listed in the [[%SYSTEMWEB%.SiteMap][SiteMap]] %BR%
* Set SITEMAPLIST = on
* Set SITEMAPWHAT =
* Set SITEMAPUSETO =
* *Note:* Above settings are automatically configured when you create a web

* Exclude web from a =web="all"= search: (Set to =on= for hidden webs).
* Set NOSEARCHALL =
* *Note:* This setting is automatically configured when you create a web

* Prevent automatic linking of [[%SYSTEMWEB%.WikiWords][WikiWords]] and acronyms (if set to =on=); link <nop>WikiWords (if empty); can be overwritten by web preferences:
* #Set NOAUTOLINK = %NOAUTOLINK%
* *Note:* You can still use the =[<nop>[...][...]]= syntax to link topics if you disabled <nop>WikiWord linking. The =&lt;noautolink&gt; ... &lt;/noautolink&gt;= syntax can be used to prevents links within a block of text.

* Default template for *new topics* for this web:
* WebTopicEditTemplate: Default template for new topics in this web. (Site-level is used if topic does not exist)
* [[%SYSTEMWEB%.WebTopicEditTemplate]]: Site-level default topic template

* Comma separated list of *forms* that can be attached to topics in this web. See [[%SYSTEMWEB%.DataForms][DataForms]] for more information.
* Set WEBFORMS =

* Users or groups who *are not* / *are* allowed to *view* / *change* / *rename* topics in the <nop>%WEB% web: (See [[%SYSTEMWEB%.AccessControl][AccessControl]]).
* Set DENYWEBVIEW =
* Set ALLOWWEBVIEW =
* Set DENYWEBCHANGE =
* Set ALLOWWEBCHANGE =
* Set DENYWEBRENAME =
* Set ALLOWWEBRENAME =

* Users or groups allowed to change or rename this <nop>%TOPIC% topic: (e.g., [[%USERSWEB%.AdminGroup][AdminGroup]])
* Set ALLOWTOPICCHANGE =
* Set ALLOWTOPICRENAME =

* Web preferences that are *not* allowed to be overridden by sub-web, user or topic preferences:
* Set FINALPREFERENCES = NOSEARCHALL, ATTACHFILESIZELIMIT, WIKIWEBMASTER, WEBCOPYRIGHT, WEBTOPICLIST, DENYWEBVIEW, ALLOWWEBVIEW, DENYWEBCHANGE, ALLOWWEBCHANGE, DENYWEBRENAME, ALLOWWEBRENAME

%INCLUDE{%SYSTEMWEB%.WebPreferencesHelp}%

8 changes: 8 additions & 0 deletions data/FoswikiApplicationData/WebRss.txt
@@ -0,0 +1,8 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
<channel rdf:about="%SCRIPTURL{"view"}%/%WEB%">
%IF{ "$'URLPARAM{search}'!=''" then="<title><nop>%WIKITOOLNAME% search results for <nop>%URLPARAM{search}%</title>" else="<title><nop>%WIKITOOLNAME%'s <nop>%WEB% web</title>"}%
<link>%SCRIPTURL{"view"}%/%WEB%</link>
<description>%MAKETEXT{"The [_1] web of Foswiki, the Free and Open Source Wiki." args="<nop>%WEB%"}%</description>
%INCLUDE{"%SYSTEMWEB%.WebRssBase"}%<!--
* Set SKIN = rss
-->
2 changes: 2 additions & 0 deletions data/FoswikiApplicationData/WebSearch.txt
@@ -0,0 +1,2 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}%
3 changes: 3 additions & 0 deletions data/FoswikiApplicationData/WebSearchAdvanced.txt
@@ -0,0 +1,3 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
%META:TOPICPARENT{name="WebSearch"}%
%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}%
12 changes: 12 additions & 0 deletions data/FoswikiApplicationData/WebStatistics.txt
@@ -0,0 +1,12 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
%META:TOPICPARENT{name="WebHome"}%
---++ Statistics for <nop>%WEB% Web

| *Month:* | *Topic <br /> views:* | *Topic <br /> saves:* | *File <br /> uploads:* | *Most popular <br /> topic views:* | *Top contributors for <br /> topic save and uploads:* |
| <!--statDate--> | <!--statViews--> | <!--statSaves--> | <!--statUploads--> | <!--statTopViews--> | <!--statTopContributors--> |

*Notes:*
* Do not edit this topic, it is updated automatically. (You can also [[%SCRIPTURL{"statistics"}%/%WEB%][force]] an update)
* [[%SYSTEMWEB%.SiteTools#WebStatistics_site_statistics][Site tools]] tells you how to enable the automatic updates of the statistics.
* Suggestion: You could archive this topic once a year and delete the previous year's statistics from the table.

2 changes: 2 additions & 0 deletions data/FoswikiApplicationData/WebTopicList.txt
@@ -0,0 +1,2 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}%
33 changes: 33 additions & 0 deletions data/System/FoswikiApplicationsContrib.txt
@@ -0,0 +1,33 @@
---+!! !FoswikiApplicationsContrib
<!--
One line description, required for extensions repository catalog.
* Set SHORTDESCRIPTION = Dataform driven applications and framework
-->
%SHORTDESCRIPTION%

%TOC%

---++ Usage

---++ Examples
---+++ NewsApplication

---++ Implementation details
All applications use %SYSTEMWEB%.FormsPlugin, and store their data in a hidden FoswikiApplicationData web.

---++ Installation Instructions

%$INSTALL_INSTRUCTIONS%

---++ Info


| Author(s): | Foswiki:Main.SvenDowideit a [[http://wikiring.com][WikiRing]] founding partner |
| Copyright: | &copy; SvenDowideit@fosiki.com |
| License: | [[http://www.gnu.org/licenses/gpl.html][GPL (Gnu General Public License v3)]] |
| Version: | %$VERSION% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| Dependencies: | %$DEPENDENCIES% |
| Home page: | http://foswiki.org/bin/view/Extensions/FoswikiApplicationsContrib |

<!-- Do _not_ attempt to edit this topic; it is auto-generated. -->
23 changes: 23 additions & 0 deletions lib/Foswiki/Contrib/FoswikiApplicationsContrib.pm
@@ -0,0 +1,23 @@
# Contrib for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details, published at
# http://www.gnu.org/copyleft/gpl.html

package Foswiki::Contrib::FoswikiApplicationsContrib;

use strict;

use vars qw( $VERSION $RELEASE $SHORTDESCRIPTION );

$VERSION = '$Rev$';
$RELEASE = '';
$SHORTDESCRIPTION = 'easy to use Dataform driven applications and framework';

5 changes: 5 additions & 0 deletions lib/Foswiki/Contrib/FoswikiApplicationsContrib/DEPENDENCIES
@@ -0,0 +1,5 @@
# Dependencies for FoswikiApplicationsContrib
# Example:
# Time::ParseDate,>=2003.0211,cpan,Required.
# Foswiki::Plugins,>=1.2,perl,Requires version 1.2 of handler API.
Foswiki::Plugins::FormPlugin,>=1.3,perl,required to make the forms work
4 changes: 4 additions & 0 deletions lib/Foswiki/Contrib/FoswikiApplicationsContrib/MANIFEST
@@ -0,0 +1,4 @@
# Release manifest for FoswikiApplicationsContrib
data/System/FoswikiApplicationsContrib.txt 0644 Documentation
lib/Foswiki/Contrib/FoswikiApplicationsContrib.pm 0644 Perl module

24 changes: 24 additions & 0 deletions lib/Foswiki/Contrib/FoswikiApplicationsContrib/build.pl
@@ -0,0 +1,24 @@
#!/usr/bin/perl -w
BEGIN { unshift @INC, split( /:/, $ENV{FOSWIKI_LIBS} ); }
use Foswiki::Contrib::Build;

# Create the build object
$build = new Foswiki::Contrib::Build('FoswikiApplicationsContrib');

# (Optional) Set the details of the repository for uploads.
# This can be any web on any accessible Foswiki installation.
# These defaults will be used when expanding tokens in .txt
# files, but be warned, they can be overridden at upload time!

# name of web to upload to
$build->{UPLOADTARGETWEB} = 'Extensions';
# Full URL of pub directory
$build->{UPLOADTARGETPUB} = 'http://foswiki.org/pub';
# Full URL of bin directory
$build->{UPLOADTARGETSCRIPT} = 'http://foswiki.org/bin';
# Script extension
$build->{UPLOADTARGETSUFFIX} = '';

# Build the target on the command line, or the default target
$build->build($build->{target});

0 comments on commit 57f0a5f

Please sign in to comment.