diff --git a/data/Applications/BlogApp/AliasPluginCategory.txt b/data/Applications/BlogApp/AliasPluginCategory.txt new file mode 100644 index 0000000..bd9d6bf --- /dev/null +++ b/data/Applications/BlogApp/AliasPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345296" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="AliasPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/ApplicationTopic.txt b/data/Applications/BlogApp/ApplicationTopic.txt new file mode 100644 index 0000000..933c5e0 --- /dev/null +++ b/data/Applications/BlogApp/ApplicationTopic.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484864" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="Applications.TopicStub"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="A topic that is part of an application"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.ApplicationTopic"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/AutoTemplatePluginCategory.txt b/data/Applications/BlogApp/AutoTemplatePluginCategory.txt new file mode 100644 index 0000000..bf72daf --- /dev/null +++ b/data/Applications/BlogApp/AutoTemplatePluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345296" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="AutoTemplatePlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/BlogApp.txt b/data/Applications/BlogApp/BlogApp.txt new file mode 100644 index 0000000..23b3298 --- /dev/null +++ b/data/Applications/BlogApp/BlogApp.txt @@ -0,0 +1,28 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1294073222" format="1.1" reprev="1" version="2"}% +%META:TOPICPARENT{name="WikiApplication"}% +%TOC{depth="4"}% +---++ Description +... + +---++ Documentation +%DBCALL{"Applications.RenderApplicationDocumentation" TYPE="TopicType" THEWEB="%WEB%"}% +%DBCALL{"Applications.RenderApplicationDocumentation" TYPE="DataForm" NOTTYPE="TopicType" THEWEB="%WEB%"}% +%DBCALL{"Applications.RenderApplicationDocumentation" TYPE="TopicTemplate" THEWEB="%WEB%"}% +%DBCALL{"Applications.RenderApplicationDocumentation" TYPE="TopicView" THEWEB="%WEB%"}% +%DBCALL{"Applications.RenderApplicationDocumentation" TYPE="TopicFunction" THEWEB="%WEB%"}% + +---++ Installation +... + +---++ Manifest +%DBCALL{"Applications.RenderApplicationManifest" THEWEB="%WEB%"}% + +%META:FORM{name="Applications.WikiApplication"}% +%META:FIELD{name="TopicType" title="TopicType" value="WikiApplication"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="Complete documentation for the BlogApp"}% +%META:FIELD{name="Version" attributes="" title="Version" value="2.0"}% +%META:FIELD{name="Author" attributes="" title="Author" value="Michael Daum"}% +%META:FIELD{name="Copyright" attributes="" title="Copyright" value="© 2005-2011 http://michaeldaumconsulting.com"}% +%META:FIELD{name="License" attributes="" title="License" value="Applications.GnuGeneralPublicLicense"}% +%META:FIELD{name="Dependencies" attributes="" title="Dependencies" value="Applications.ClassificationApp.ClassificationApp"}% diff --git a/data/Applications/BlogApp/BlogEntry.txt b/data/Applications/BlogApp/BlogEntry.txt new file mode 100644 index 0000000..73f0307 --- /dev/null +++ b/data/Applications/BlogApp/BlogEntry.txt @@ -0,0 +1,45 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1322565484" format="1.1" reprev="15" version="17"}% +%META:TOPICPARENT{name="TopicType"}% +%DBCALL{"Applications.RenderTopicInstaller" TEXT="Install '%TOPIC%' TopicType" TYPE="TopicType"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +This is the central TopicType to store blog entries. +%ENDSECTION{name="documentation" type="section"}% + +---++ Topics of type '%TOPIC%' +%STARTINCLUDE% +%DBCALL{"Applications.RenderSimpleTopicCreator" + VALUE="" + FORM="%WEB%.%TOPIC%" + EDITOR="Applications.BlogApp.BlogEntryEdit" + EXTRA="" + PARENT="none" +}% + +%DBCALL{"Applications.RenderTopicsOfType" + FIELDS="TopicTitle, Author, State, Tag, Category, Changed" + ROWS="20" + FILTER="topic!='WebTopicEditTemplate'" +}% +%STOPINCLUDE% + +---++ %TOPIC% form +| *Name:*| *Type:* | *Size:* | *Values:* | *Description:* | *Attributes:* | +| TopicType | label | 1 | BlogEntry, ClassifiedTopic, CategorizedTopic, TaggedTopic | Document type | | +| TopicTitle | text | 75 | | title of this blog entry | | +| Summary | text | 75 | | enter a punch line | | +| Tag | tag | 30 | | keywords | | +| Category | cat | 1 | | categories this blog entry is field to | | +| State | radio | 2 | published, unpublished | only blog entries in state published are readable by other users; unpublished blog entries are only visible for the authors of this blog entry | | +| Sticky | checkbox+values | 4 | on frontpage=frontpage, on category=category | a sticky blog entries is rendered at the top of the frontpage or category independent of the normal timeline | +| MetaTitle | text | 75 | | SEO page title. Use a maximum of 60 chars for the title. %MAKETEXT{"Get from topic title."}% | | +| MetaDescription | textarea | 80x2 | | SEO description. Use a maximum of 160 chars for the description. %MAKETEXT{"Get description from content."}% | | +| MetaKeywords | text | 75 | | SEO keywords. Specify a comma separate list of keywords. %MAKETEXT{"Get from classification."}% | | + +%META:FORM{name="Applications.TopicType"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicType, DataForm, DocuTopic, ApplicationTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Inheritance" attributes="" title="Inheritance" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value=""}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% diff --git a/data/Applications/BlogApp/BlogEntry0.txt b/data/Applications/BlogApp/BlogEntry0.txt new file mode 100644 index 0000000..37dd524 --- /dev/null +++ b/data/Applications/BlogApp/BlogEntry0.txt @@ -0,0 +1,25 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1307455987" format="1.1" reprev="27" version="28"}% +%META:TOPICPARENT{name="NewsCategory"}% +Pellentesque fringilla scelerisque blandit! Vivamus quis rhoncus turpis. Nunc vestibulum purus at ipsum aliquam porta. Nullam lobortis, lacus sed porttitor viverra, nulla tellus iaculis ligula, eu vestibulum nunc lacus ac magna. Nulla feugiat cursus mattis. Mauris aliquam diam at sem mattis iaculis. Praesent ultricies, ipsum quis adipiscing fermentum, dui leo congue orci, a viverra nisi sem lobortis orci? Praesent ultrices magna ac ante auctor sit amet lobortis enim vehicula. Morbi tincidunt accumsan augue nec convallis! Sed blandit orci quis orci iaculis suscipit! Nam vulputate adipiscing sollicitudin. Morbi erat lectus, fermentum sit amet tristique in, euismod eu libero. Donec placerat ornare auctor. Donec non nisl ac ante adipiscing bibendum. Donec quam lectus, porta eu porta et, eleifend porta dui? + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vulputate malesuada eros, sed ullamcorper odio ullamcorper at. Mauris tincidunt luctus nibh in blandit. Vestibulum nec vulputate mauris. Vestibulum cursus ligula a lacus molestie nec posuere mauris interdum. Nullam ut sollicitudin justo. Morbi egestas consequat quam, a molestie diam pharetra a. Vestibulum congue neque ut metus sollicitudin vitae pharetra ante tempus. Sed egestas accumsan felis vel feugiat. Duis non mi sed metus imperdiet luctus. Praesent vel ipsum id tellus sollicitudin volutpat sit amet interdum turpis. Maecenas a bibendum sem. + +%META:FORM{name="Applications/BlogApp.BlogEntry"}% +%META:FIELD{name="TopicType" title="TopicType" value="BlogEntry, ClassifiedTopic, CategorizedTopic, TaggedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="Welcome to BlogPlugin 2.0"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="test summary"}% +%META:FIELD{name="Tag" attributes="" title="Tag" value="bar, foo, release, tag, test, welcome"}% +%META:FIELD{name="Category" attributes="" title="Category" value="NewsCategory"}% +%META:FIELD{name="State" attributes="" title="State" value="published"}% +%META:FIELD{name="Sticky" attributes="" title="Sticky" value="1"}% +%META:FIELD{name="MetaTitle" attributes="" title="MetaTitle" value="Welcome to BlogPlugin 2.0"}% +%META:FIELD{name="MetaDescription" attributes="" title="MetaDescription" value="test summary"}% +%META:FIELD{name="MetaKeywords" attributes="" title="MetaKeywords" value="bar, foo, release, tag, test, welcome"}% +%META:FILEATTACHMENT{name="951752_96845424.jpg" attachment="951752_96845424.jpg" attr="" comment="" date="1291916898" size="4749625" user="ProjectContributor" version="1"}% +%META:COMMENT{name="1.1291723771" author="MichaelDaum" date="1291723771" modified="1292022093" ref="" state="approved" text="Phasellus volutpat faucibus libero, et lobortis tellus egestas nec. Sed ac risus lacus, non fringilla velit. Donec sodales tortor quis dui pretium at pretium nunc tempor. Ut faucibus ultricies nulla, a fringilla elit tristique auctor. Phasellus eu elit id sem euismod feugiat? Fusce venenatis scelerisque neque non pretium. Aenean pulvinar ligula ac mi porta ac sodales dui rhoncus. Aliquam erat volutpat. Nunc a ante eu eros mattis mattis. Pellentesque sed dolor diam, ac scelerisque justo.%0a%0aUt pharetra libero non arcu rutrum fermentum venenatis enim ornare. Morbi eget mi sed mi suscipit imperdiet. Donec non metus a lectus consectetur suscipit? Praesent a malesuada nibh. Ut sit amet ligula purus. Nam risus massa, rutrum a rhoncus eu, condimentum nec lacus. Sed tristique lectus ac est sagittis quis viverra urna blandit. Nulla quis tempor ligula. Donec sed velit ante. Phasellus interdum nunc eget ipsum fringilla volutpat. Cras non dui a magna porttitor sagittis.%0a%0aPraesent congue imperdiet mi commodo cursus? In diam leo, malesuada volutpat rhoncus in, ornare quis neque. Integer suscipit, quam ac posuere aliquam, urna velit vulputate mi, ultricies eleifend enim arcu sed nisl! Suspendisse sit amet mauris sapien, eu volutpat lectus. Pellentesque purus dolor, accumsan ut sodales in, iaculis non neque. Nunc suscipit, ante vel pulvinar condimentum; sapien ligula convallis nibh, eget adipiscing justo odio at leo? Sed id eros id purus tristique semper? Sed sapien dui, laoreet aliquam tincidunt eu, iaculis vitae elit. Donec a justo quam, sed laoreet nisi. Cras non elit est, scelerisque varius sapien." title="fest fast"}% +%META:COMMENT{name="4.1291910712" author="TestUser" date="1291910712" modified="1291926719" ref="" state="approved" text="1234" title=""}% +%META:COMMENT{name="5.1291921679" author="MichaelDaum" date="1291921679" modified="1291935503" ref="" state="approved" text="In consequat, turpis eget semper laoreet, dui elit venenatis nibh; at rhoncus neque dui a odio. Donec commodo rhoncus vestibulum. Integer interdum, risus sed vestibulum egestas, nunc neque hendrerit nisl, ut malesuada turpis urna congue ipsum. Donec tincidunt luctus tristique. Morbi sit amet molestie sem. Nunc massa dolor, aliquet semper dictum quis, placerat ut enim. Vivamus at ultrices enim. Nulla ac odio libero, sit amet dignissim leo. Vestibulum non bibendum felis. Sed dapibus, diam ac vehicula tempus, felis quam lobortis sapien, nec dapibus diam est id lectus. Suspendisse ut magna ipsum. Praesent eget luctus risus. Proin vitae neque libero, quis pretium ipsum! Praesent imperdiet diam pretium lacus dapibus ultrices? Vestibulum a mi eros, in ullamcorper nisi.%0a%0aMorbi sit amet nisl sed dui eleifend imperdiet vel suscipit nisi. Phasellus luctus iaculis elementum. Donec posuere nunc non lorem rhoncus euismod. Nullam eu nunc eu mi cursus feugiat. Aenean bibendum volutpat magna sit amet ultrices. Maecenas facilisis urna a arcu hendrerit in tempor urna semper. Phasellus rhoncus, justo ut egestas malesuada, lacus nisi posuere tortor, et elementum quam est ac nunc. Aliquam et ligula id purus viverra facilisis! Integer est quam, aliquam id malesuada ac, consectetur ac eros. Vestibulum mollis molestie magna a posuere. Cras vulputate, quam sed placerat lobortis, ligula urna placerat turpis, sed ullamcorper quam nisl quis ante. Fusce porttitor dignissim ullamcorper. Cras placerat tincidunt felis, in laoreet dolor aliquam eu! Phasellus urna elit, pulvinar ut sodales ut, cursus eu est! Nulla quam mi, pellentesque id posuere et, dictum non arcu. Donec quis erat in elit tempus scelerisque eget eu nulla. Ut lobortis, nisi at placerat mattis, magna elit sagittis ante, eget porttitor metus diam posuere erat. Nullam auctor lectus a dolor aliquet ut tempus mauris fringilla. Ut tristique magna vel mauris ornare a bibendum mauris aliquam. Donec turpis turpis, dictum in ornare sit amet, mattis non mauris.%0a%0aDonec non nisl et est rhoncus auctor. Quisque enim sapien; auctor vel gravida vel, hendrerit eu nisi! Proin vitae sem elit, porta convallis lacus. Donec eu lorem diam. Fusce faucibus volutpat lobortis. Quisque turpis nunc; faucibus eu malesuada a, lacinia eu justo. Praesent vulputate velit a nisl hendrerit imperdiet. Phasellus volutpat condimentum libero a cursus. Curabitur scelerisque neque nec sapien varius vitae accumsan lorem sagittis. Pellentesque placerat, diam sed sodales imperdiet, purus eros varius arcu, ac euismod eros lectus sit amet dui. Nunc quis consectetur arcu. Maecenas nisl elit, blandit sed ultricies non, ullamcorper quis nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed vitae eros id neque ultrices mollis vitae eu lacus.%0a" title="qweqweqe"}% +%META:COMMENT{name="6.1291935599" author="MichaelDaum" date="1291935599" modified="1292022118" ref="5.1291921679" state="approved" text="reply to comment 3%0a%0a" title="foobar "}% +%META:COMMENT{name="7.1294053549" author="MichaelDaum" date="1294053549" modified="1294053549" ref="" state="new, unapproved" text="Integer convallis scelerisque porttitor. Donec hendrerit eros ut nisl egestas vitae varius est molestie? Aliquam pellentesque eros in leo molestie mattis. Pellentesque fermentum enim in ipsum consectetur vitae pretium sem ultrices. Donec quis orci turpis! Nullam in felis in nibh auctor ultrices porta nec urna. Mauris fringilla rhoncus iaculis. Curabitur tristique tortor at nisi iaculis a tempor nisl sodales. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris sed urna quis sem dapibus pharetra rutrum eget mi. Curabitur libero nibh, laoreet eu accumsan sed, semper id leo! Nulla facilisi. Sed velit nibh, lobortis sed congue at; iaculis ut dui.%0a%0aDuis scelerisque nisl in orci vestibulum a luctus urna volutpat! Donec risus tellus, porttitor at lacinia nec, euismod id leo. Proin sodales, odio non faucibus viverra, felis enim suscipit eros, vitae rutrum dui nulla aliquam nunc? Nam auctor odio vel tortor interdum ultrices. Quisque non tincidunt risus? Quisque condimentum metus a ante auctor in pulvinar ligula fringilla. Nulla accumsan lorem et orci ullamcorper dignissim. Donec bibendum, est ac eleifend condimentum, eros neque imperdiet quam; nec porta quam justo pharetra nulla. Nulla pharetra, justo non tincidunt imperdiet, nulla enim pulvinar ligula, malesuada tristique libero massa sit amet massa. Pellentesque imperdiet velit vitae mi varius rutrum. Aenean ante purus, rhoncus nec porta eu, adipiscing et nibh.%0a%0aMaecenas vel justo eget enim interdum auctor. Donec lobortis dolor eu nibh posuere eget ultricies turpis molestie. Curabitur egestas elit nec erat eleifend sodales. Maecenas blandit tortor porttitor lacus egestas sit amet blandit ipsum blandit. Phasellus sollicitudin euismod imperdiet! Vivamus pretium sodales urna quis interdum. Maecenas pulvinar consectetur dictum. Sed vitae placerat nibh. Fusce aliquet, quam id ullamcorper mattis, erat mauris tristique nibh, quis fermentum elit dolor eget orci. Etiam vel lacus sem, eget sagittis ante. Morbi rutrum venenatis laoreet. Curabitur ornare sollicitudin ullamcorper. Suspendisse venenatis nisl sit amet eros imperdiet sit amet mattis libero porttitor. Aenean vel tortor vitae lacus consequat scelerisque vel vitae lorem. Cras commodo, orci quis tempor vestibulum, nunc enim congue dui, et aliquam nisi nulla ac metus? Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lorem magna, malesuada nec ultrices at, mollis at erat. Mauris ut dui risus, ut tincidunt mauris! Integer varius risus sed lacus molestie aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit.%0a" title=""}% +%META:PREFERENCE{name="DISPLAYCOMMENTS" title="DISPLAYCOMMENTS" type="Local" value="on"}% +%META:PREFERENCE{name="COMMENTMODERATION" title="COMMENTMODERATION" type="Local" value="on"}% diff --git a/data/Applications/BlogApp/BlogEntryEditTemplate.txt b/data/Applications/BlogApp/BlogEntryEditTemplate.txt new file mode 100644 index 0000000..3828817 --- /dev/null +++ b/data/Applications/BlogApp/BlogEntryEditTemplate.txt @@ -0,0 +1,57 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1307448069" format="1.1" reprev="8" version="9"}% +%META:TOPICPARENT{name="TopicView"}% +%{}% +%TMPL:INCLUDE{"Applications.ClassificationApp.ClassifiedTopicEdit"}% +%{}% + +%{}% +%TMPL:DEF{"topictype"}%%MAKETEXT{"blog entry"}%%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"formdefinition"}%Applications.BlogApp.BlogEntry%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"editfields"}%TopicTitle, Summary, Author, State, Sticky%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"formfields"}% + +%TMPL:P{"categoriestab"}% +%TMPL:P{"tagstab"}% +%TMPL:P{"seotab"}% +%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"seotab"}% +%TAB{"%MAKETEXT{"SEO"}%"}% +---++ Search engine optimization +%RENDERFOREDIT{"%BASEWEB%.%BASETOPIC%" + form="%TMPL:P{"formdefinition"}%" + fields="MetaTitle, MetaKeywords, MetaDescription" + MetaTitle_title="%MAKETEXT{"Meta title"}%" + MetaKeywords_title="%MAKETEXT{"Meta keywords"}%" + MetaDescription_title="%MAKETEXT{"Meta desciption"}%" + MetaTitle_default="%GETTOPICTITLE{"%BASEWEB%.%BASETOPIC%"}%" + MetaKeywords_default="%TAGINFO{topic="%BASEWEB%.%BASETOPIC%" format="$name"}%" + MetaDescription_default="%FORMFIELD{"Summary" topic="%BASEWEB%.%BASETOPIC%"}%" +}% +%ADDTOZONE{"script" id="BLOGPLUGIN::JS" + text="" + requires="JQUERYPLUGIN" +}%%ENDTAB% +%TMPL:END% + + +%{}% +%TMPL:DEF{"validationrules"}% {'MetaTitle': {maxlength: 60}, 'MetaDescription': {maxlength:160}} %TMPL:END% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicView"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="Editor for BlogEntries"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% diff --git a/data/Applications/BlogApp/BlogEntryRenderSolrSearchItem.txt b/data/Applications/BlogApp/BlogEntryRenderSolrSearchItem.txt new file mode 100644 index 0000000..be8b3ec --- /dev/null +++ b/data/Applications/BlogApp/BlogEntryRenderSolrSearchItem.txt @@ -0,0 +1,55 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1305212764" format="1.1" reprev="1" version="1"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +This is called in the BlogSearchViewTemplate via DBCALL's object semantic. + +---+++++ Parameters + * OBJECT: web.topic for which to render the fragment + * HILITE: an text fragment highlighting the exact match of the search + +%ENDSECTION{name="documentation" type="section"}% + +---++ Implementation + +%STARTINCLUDE% +
+%DBQUERY{topic="%OBJECT%" + format="$percntDBCALL{\"%OBJECT%->RenderTopicThumbnail\" + ALIGN=\"right\" + SIZE=\"80x80>\" + }$percnt +

[[$web.$topic]]

+
+ $percntHILITE$percnt +
+
+ $formatTime(info.date), + $percntUSERINFO{\"$expand(info.author)\" format=\"[[$dollarwikiusername][$dollarwikiname]]\"}$percnt +
" +}% +%CLEAR% +
+%STOPINCLUDE% +
+ +---++ Test +%DBCALL{"%TOPIC%"}% + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2011 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="renders an item in the hit set of a solr search"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:TOPICMOVED{by="micha" date="1305211746" from="Applications/BlogApp.BlogEntrySolrSearchItem" to="Applications/BlogApp.BlogEntryRenderSolrSearchItem"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/BlogEntryViewTemplate.txt b/data/Applications/BlogApp/BlogEntryViewTemplate.txt new file mode 100644 index 0000000..fdfbcd7 --- /dev/null +++ b/data/Applications/BlogApp/BlogEntryViewTemplate.txt @@ -0,0 +1,61 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1319556077" format="1.1" reprev="10" version="13"}% +%META:TOPICPARENT{name="TopicView"}% +%{}% +%TMPL:INCLUDE{"Applications.ClassificationApp.ClassifiedTopicView"}% +%{}% + +%{}% +%TMPL:DEF{"beforetext"}% +
+%DBCALL{"Applications.BlogApp.RenderBlogEntryPagination" CLASS="blogTopPagination"}% +
+%DBCALL{"Applications.BlogApp.RenderBlogEntryTitle" TITLE_EXTRA="%TMPL:P{"titleextra"}%"}% +%ADDTOZONE{"head" + id="BLOGPLUGIN::CSS" + text="" +}% + +
+%SETVAR{field="State" matches="unpublished" var="ALLOWTOPICVIEW" type="Set" value="BlogAuthorGroup"}% +%SETVAR{field="State" matches="unpublished" var="PERMSET_VIEW" value="details" type="Local"}% +%SETVAR{field="State" matches="unpublished" var="PERMSET_VIEW_DETAILS" value="BlogAuthorGroup" type="Local"}% +%UNSETVAR{field="State" matches="published" var="ALLOWTOPICVIEW"}% +%UNSETVAR{field="State" matches="published" var="PERMSET_VIEW"}% +%UNSETVAR{field="State" matches="published" var="PERMSET_VIEW_DETAILS"}% +%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"aftertext"}% +%DBCALL{"Applications.BlogApp.RenderBlogEntryPagination" CLASS="blogBottomPagination"}% +
+%TMPL:END% +%{
}% + +%{}% +%TMPL:DEF{"revinfo"}%%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"titleextra"}%%IF{"State = 'unpublished'" then="(%MAKETEXT{"unpublished"}%)"}%%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"breadcrumbs"}%%CATINFO{ + topic="%BASEWEB%.%BASETOPIC%" + header="$percntBREADCRUMBS{recurse=\"topicoff\" separator=\"%TMPL:P{"sep"}%\"}$percnt%TMPL:P{"sep"}%" + format="$breadcrumb" + separator="%TMPL:P{"sep"}%" + null="$percntBREADCRUMBS{separator=\"$percntTMPL:P{\"sep\"}$percnt\"}$percnt" +}%%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"sidebar"}%%DBCALL{"Applications.BlogApp.RenderSideBar" SIDEBAR="BlogEntry"}%%TMPL:END% +%{}% + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicView"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="TopicView for BlogEntries"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% diff --git a/data/Applications/BlogApp/BlogPluginCategory.txt b/data/Applications/BlogApp/BlogPluginCategory.txt new file mode 100644 index 0000000..149dadc --- /dev/null +++ b/data/Applications/BlogApp/BlogPluginCategory.txt @@ -0,0 +1,11 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1294048915" format="1.1" reprev="1" version="2"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="BlogPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% +%META:FIELD{name="ImportedCategory" attributes="" title="ImportedCategory" value=""}% +%META:FIELD{name="Order" attributes="" title="Order" value=""}% diff --git a/data/Applications/BlogApp/BlogSearchViewTemplate.txt b/data/Applications/BlogApp/BlogSearchViewTemplate.txt new file mode 100644 index 0000000..ad249ed --- /dev/null +++ b/data/Applications/BlogApp/BlogSearchViewTemplate.txt @@ -0,0 +1,95 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1305298837" format="1.1" reprev="4" version="4"}% +%META:TOPICPARENT{name="TopicView"}% +%{}% +%TMPL:INCLUDE{"SolrSearchView"}% +%{}% + +%{}% +%TMPL:DEF{"solr::defaultweb"}%%BASEWEB%%TMPL:END% +%TMPL:DEF{"solr::hierarchystep"}%%TMPL:END% +%TMPL:DEF{"solr::input::checkboxes"}%%TMPL:END% +%TMPL:DEF{"solr::displayas"}%%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"solr::facets"}% + %MAKETEXT{"Category"}%=category, + %MAKETEXT{"Tags"}%=tag, + %MAKETEXT{"Date"}%=createdate, + %MAKETEXT{"Author"}%=createauthor +%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"solr::sortby"}% + + + + + +
%MAKETEXT{"Sort by"}%:  + +
+%TMPL:END% +%{
}% + +%{}% +%TMPL:DEF{"solr::facetdatestart"}%1970-01-01T00:00:00Z%TMPL:END% +%TMPL:DEF{"solr::facetdategap"}%+1MONTH%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"solr::extrafilter"}%field_TopicType_lst:BlogEntry -topic:WebTopicEditTemplate%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"solr::sidebar"}% + +%TMPL:P{"solr::selection"}% +%TMPL:P{"solr::sidebar::hierarchy"}% +%SOLRFORMAT{"solr1" + hidesingle="on" + %TMPL:P{"solr::facet" + id="createdate" + value="%id%:[$key/MONTH TO $key/MONTH+1MONTH]" + input="checkbox" + format="$date($mon $year) ($count)" + title="$date($mon $year)" + include="" + exclude="" + extraclass="" + pageropts="" + }% + %TMPL:P{"solr::facet" + id="createauthor" + format="$percntSPACEOUT{$key}$percnt ($count)" + title="$percntSPACEOUT{$key}$percnt" + value="$id:$key" + input="checkbox" + include="%TMPL:P{"solr::facet::include::contributor"}%" + exclude="%TMPL:P{"solr::facet::exclude::contributor"}%" + extraclass="" + pageropts="" + }% +}% + +%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"solr::format::list::topic"}%%DBCALL{ + "%web%.%topic%->RenderSolrSearchItem" + HILITE="%hilite%" +}%%TMPL:END% +%{}% + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicView"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="Solr search for blogs"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% diff --git a/data/Applications/BlogApp/BreadCrumbsPluginCategory.txt b/data/Applications/BlogApp/BreadCrumbsPluginCategory.txt new file mode 100644 index 0000000..8be2319 --- /dev/null +++ b/data/Applications/BlogApp/BreadCrumbsPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345296" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="BreadCrumbsPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/CategorizedTopic.txt b/data/Applications/BlogApp/CategorizedTopic.txt new file mode 100644 index 0000000..e9392b1 --- /dev/null +++ b/data/Applications/BlogApp/CategorizedTopic.txt @@ -0,0 +1,10 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278341074" format="1.1" version="1"}% +%META:TOPICPARENT{name="TopicType"}% + + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="ClassificationApp"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications/ClassificationApp.CategorizedTopic"}% diff --git a/data/Applications/BlogApp/Category.txt b/data/Applications/BlogApp/Category.txt new file mode 100644 index 0000000..1b1563a --- /dev/null +++ b/data/Applications/BlogApp/Category.txt @@ -0,0 +1,10 @@ +%META:TOPICINFO{author="ProjectContributor" date="1271449895" format="1.1" version="1.2"}% +%META:TOPICPARENT{name="WebHome"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="ClassificationApp"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications/ClassificationApp.Category"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/CategoryViewTemplate.txt b/data/Applications/BlogApp/CategoryViewTemplate.txt new file mode 100644 index 0000000..886e7d5 --- /dev/null +++ b/data/Applications/BlogApp/CategoryViewTemplate.txt @@ -0,0 +1,96 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1319612791" format="1.1" reprev="14" version="14"}% +%META:TOPICPARENT{name="TopicView"}% +%{}% +%TMPL:INCLUDE{"Applications.ClassificationApp.CategoryView"}% +%{}% + +%{}% +%TMPL:DEF{"revinfo"}%%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"content"}% +%DBCALL{ + "Applications.BlogApp.RenderBlogEntries" + CAT="%URLPARAM{"catname" default="%BASETOPIC%"}%" + LIMIT="1" + STICKY="%IF{"$'URLPARAM{skip}'" then="disabled" else="category"}%" + NOSTICKY="" +}% +%DBCALL{ + "Applications.BlogApp.RenderBlogEntries" + CAT="%URLPARAM{"catname" default="%BASETOPIC%"}%" + LIMIT="%URLPARAM{"limit" default="5"}%" + SKIP="%URLPARAM{"skip" default="0"}%" + NOSTICKY="category" + STICKY="" +}% +%ADDTOZONE{"head" + id="BLOGPLUGIN::CSS" + text="" +}% +%TMPL:P{context="InfiniteScrollEnabled" then="infinitescroll"}% + +%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"sidebar"}%%DBCALL{"Applications.BlogApp.RenderSideBar" SIDEBAR="Category"}%%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"subcategories"}% +%MAKEINDEX{ + "%HIERARCHY{ + web="%BASEWEB%" + top="%IF{"defined CAT" then="%CAT%" else="%URLPARAM{"catname" default="%BASETOPIC%"}%"}%" + exclude="%IF{"defined CAT" then="%CAT%" else="%URLPARAM{"catname" default="%BASETOPIC%"}%"}%" + depth="2" + hidenull="on" + format="$trunctitle;$topic;$origweb$n" + }%" + cols="%IF{"defined CLASSIFICATIONPLUGIN_NRCOLS" then="%CLASSIFICATIONPLUGIN_NRCOLS%" else="3"}%" + split="\n" + group="" + pattern="(.*);(.*);(.*)" + sort="nocase" + header="
" + format="$percntDBCALL{\"$3.$2->RenderIndexItem\" TITLE=\"$1\"}$percnt" + footer="
" +}%%TMPL:END%%{
}% + +%{}% +%TMPL:DEF{"infinitescroll"}% +%ADDTOZONE{"script" + id="BLOGPLUGIN::INFINITESCROLL::JS" + text="" + requires="JQUERYPLUGIN::INFINITESCROLL" +}%%JQREQUIRE{"infinitescroll"}% +%TMPL:END% +%{}% + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicView"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="special category view for blogs"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% diff --git a/data/Applications/BlogApp/ClassificationPluginCategory.txt b/data/Applications/BlogApp/ClassificationPluginCategory.txt new file mode 100644 index 0000000..682bc4b --- /dev/null +++ b/data/Applications/BlogApp/ClassificationPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345296" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="ClassificationPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/ClassifiedTopic.txt b/data/Applications/BlogApp/ClassifiedTopic.txt new file mode 100644 index 0000000..9980cb8 --- /dev/null +++ b/data/Applications/BlogApp/ClassifiedTopic.txt @@ -0,0 +1,10 @@ +%META:TOPICINFO{author="ProjectContributor" date="1271449950" format="1.1" version="1.2"}% +%META:TOPICPARENT{name="WebHome"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="ClassificationApp"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications/ClassificationApp.ClassifiedTopic"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/DBCachePluginCategory.txt b/data/Applications/BlogApp/DBCachePluginCategory.txt new file mode 100644 index 0000000..de6b69f --- /dev/null +++ b/data/Applications/BlogApp/DBCachePluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345296" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="DBCachePlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/DataForm.txt b/data/Applications/BlogApp/DataForm.txt new file mode 100644 index 0000000..4cb20a3 --- /dev/null +++ b/data/Applications/BlogApp/DataForm.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484864" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Tool to create DataForms"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.DataForm"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/DataFormAttribute.txt b/data/Applications/BlogApp/DataFormAttribute.txt new file mode 100644 index 0000000..cee8287 --- /dev/null +++ b/data/Applications/BlogApp/DataFormAttribute.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484864" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Tool to create DataFormAttributes"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.DataFormAttribute"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/DocuTopic.txt b/data/Applications/BlogApp/DocuTopic.txt new file mode 100644 index 0000000..d99577e --- /dev/null +++ b/data/Applications/BlogApp/DocuTopic.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484864" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Tool to create documentation topis"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.DocuTopic"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/EasyMacroPluginCategory.txt b/data/Applications/BlogApp/EasyMacroPluginCategory.txt new file mode 100644 index 0000000..b905014 --- /dev/null +++ b/data/Applications/BlogApp/EasyMacroPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345296" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="EasyMacroPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/EditChapterPluginCategory.txt b/data/Applications/BlogApp/EditChapterPluginCategory.txt new file mode 100644 index 0000000..2367f69 --- /dev/null +++ b/data/Applications/BlogApp/EditChapterPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345296" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="EditChapterPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/EmployeePortalPluginCategory.txt b/data/Applications/BlogApp/EmployeePortalPluginCategory.txt new file mode 100644 index 0000000..576a519 --- /dev/null +++ b/data/Applications/BlogApp/EmployeePortalPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345296" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="EmployeePortalPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/FilterPluginCategory.txt b/data/Applications/BlogApp/FilterPluginCategory.txt new file mode 100644 index 0000000..ed9136d --- /dev/null +++ b/data/Applications/BlogApp/FilterPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345296" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="FilterPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/FlexFormPluginCategory.txt b/data/Applications/BlogApp/FlexFormPluginCategory.txt new file mode 100644 index 0000000..8b2d34e --- /dev/null +++ b/data/Applications/BlogApp/FlexFormPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345296" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="FlexFormPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/FlexWebListPluginCategory.txt b/data/Applications/BlogApp/FlexWebListPluginCategory.txt new file mode 100644 index 0000000..1b6df2b --- /dev/null +++ b/data/Applications/BlogApp/FlexWebListPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="FlexWebListPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/FrontPageViewTemplate.txt b/data/Applications/BlogApp/FrontPageViewTemplate.txt new file mode 100644 index 0000000..5997990 --- /dev/null +++ b/data/Applications/BlogApp/FrontPageViewTemplate.txt @@ -0,0 +1,72 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1319612874" format="1.1" reprev="14" version="14"}% +%META:TOPICPARENT{name="TopicView"}% +%{}% +%TMPL:INCLUDE{"view"}% +%{}% + +%{}% +%TMPL:DEF{"revinfo"}%%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"content"}% +%DBCALL{ + "Applications.BlogApp.RenderBlogEntries" + CAT="%URLPARAM{"catname"}%" + LIMIT="1" + SKIP="%URLPARAM{"skip" default="0"}%" + STICKY="%IF{"$'URLPARAM{skip}'" then="disabled" else="frontpage"}%" + NOSTICKY="" +}% +%DBCALL{ + "Applications.BlogApp.RenderBlogEntries" + CAT="%URLPARAM{"catname"}%" + LIMIT="%URLPARAM{"limit" default="5"}%" + SKIP="%URLPARAM{"skip" default="0"}%" + NOSTICKY="frontpage" + STICKY="" +}% +%ADDTOZONE{"head" + id="BLOGPLUGIN::CSS" + text="" +}% +%TMPL:P{context="InfiniteScrollEnabled" then="infinitescroll"}% + +%TMPL:END% +%{}% + +%{}% +%TMPL:DEF{"infinitescroll"}% +%ADDTOZONE{"script" + id="BLOGPLUGIN::INFINITESCROLL::JS" + text="" + requires="JQUERYPLUGIN::INFINITESCROLL" +}%%JQREQUIRE{"infinitescroll"}% +%TMPL:END% +%{}% + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicView"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value=""}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% diff --git a/data/Applications/BlogApp/GenPDFPrincePluginCategory.txt b/data/Applications/BlogApp/GenPDFPrincePluginCategory.txt new file mode 100644 index 0000000..ac92071 --- /dev/null +++ b/data/Applications/BlogApp/GenPDFPrincePluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="GenPDFPrincePlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/GenPDFWebkitPluginCategory.txt b/data/Applications/BlogApp/GenPDFWebkitPluginCategory.txt new file mode 100644 index 0000000..62a1d69 --- /dev/null +++ b/data/Applications/BlogApp/GenPDFWebkitPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="GenPDFWebkitPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/GluePluginCategory.txt b/data/Applications/BlogApp/GluePluginCategory.txt new file mode 100644 index 0000000..cd70826 --- /dev/null +++ b/data/Applications/BlogApp/GluePluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="GluePlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/HumorCategory.txt b/data/Applications/BlogApp/HumorCategory.txt new file mode 100644 index 0000000..9bf5b7c --- /dev/null +++ b/data/Applications/BlogApp/HumorCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278344916" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="Humor"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value=""}% +%META:FIELD{name="Icon" attributes="" title="Icon" value="emoticon_grin.png"}% diff --git a/data/Applications/BlogApp/ImageGalleryPluginCategory.txt b/data/Applications/BlogApp/ImageGalleryPluginCategory.txt new file mode 100644 index 0000000..ea24ec6 --- /dev/null +++ b/data/Applications/BlogApp/ImageGalleryPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="ImageGalleryPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/ImagePluginCategory.txt b/data/Applications/BlogApp/ImagePluginCategory.txt new file mode 100644 index 0000000..514fb2c --- /dev/null +++ b/data/Applications/BlogApp/ImagePluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="ImagePlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/JQFullCalendarPluginCategory.txt b/data/Applications/BlogApp/JQFullCalendarPluginCategory.txt new file mode 100644 index 0000000..93a329e --- /dev/null +++ b/data/Applications/BlogApp/JQFullCalendarPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="JQFullCalendarPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/JQGridPluginCategory.txt b/data/Applications/BlogApp/JQGridPluginCategory.txt new file mode 100644 index 0000000..63db972 --- /dev/null +++ b/data/Applications/BlogApp/JQGridPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="JQGridPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/JQueryPluginCategory.txt b/data/Applications/BlogApp/JQueryPluginCategory.txt new file mode 100644 index 0000000..861c040 --- /dev/null +++ b/data/Applications/BlogApp/JQueryPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="JQueryPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/KnowledgeManagementCategory.txt b/data/Applications/BlogApp/KnowledgeManagementCategory.txt new file mode 100644 index 0000000..7f079aa --- /dev/null +++ b/data/Applications/BlogApp/KnowledgeManagementCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345756" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="Knowledge Management"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value=""}% +%META:FIELD{name="Icon" attributes="" title="Icon" value="lightbulb.png"}% diff --git a/data/Applications/BlogApp/LdapContribCategory.txt b/data/Applications/BlogApp/LdapContribCategory.txt new file mode 100644 index 0000000..252733b --- /dev/null +++ b/data/Applications/BlogApp/LdapContribCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="LdapContrib"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/MathModePluginCategory.txt b/data/Applications/BlogApp/MathModePluginCategory.txt new file mode 100644 index 0000000..011ac98 --- /dev/null +++ b/data/Applications/BlogApp/MathModePluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="MathModePlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/MediaWikiTablePluginCategory.txt b/data/Applications/BlogApp/MediaWikiTablePluginCategory.txt new file mode 100644 index 0000000..1c364e8 --- /dev/null +++ b/data/Applications/BlogApp/MediaWikiTablePluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345333" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="MediaWikiTablePlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/MediaWikiToFoswikiContribCategory.txt b/data/Applications/BlogApp/MediaWikiToFoswikiContribCategory.txt new file mode 100644 index 0000000..836b684 --- /dev/null +++ b/data/Applications/BlogApp/MediaWikiToFoswikiContribCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345360" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="MediaWikiToFoswikiContrib"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/MetaCommentPluginCategory.txt b/data/Applications/BlogApp/MetaCommentPluginCategory.txt new file mode 100644 index 0000000..4e3fc2d --- /dev/null +++ b/data/Applications/BlogApp/MetaCommentPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345370" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="MetaCommentPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/NatEditPluginCategory.txt b/data/Applications/BlogApp/NatEditPluginCategory.txt new file mode 100644 index 0000000..7d42371 --- /dev/null +++ b/data/Applications/BlogApp/NatEditPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345380" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="NatEditPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/NatSkinCategory.txt b/data/Applications/BlogApp/NatSkinCategory.txt new file mode 100644 index 0000000..22155c8 --- /dev/null +++ b/data/Applications/BlogApp/NatSkinCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345388" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="NatSkin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/NewUserPluginCategory.txt b/data/Applications/BlogApp/NewUserPluginCategory.txt new file mode 100644 index 0000000..6591a58 --- /dev/null +++ b/data/Applications/BlogApp/NewUserPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345396" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="NewUserPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/NewsCategory.txt b/data/Applications/BlogApp/NewsCategory.txt new file mode 100644 index 0000000..e770fc3 --- /dev/null +++ b/data/Applications/BlogApp/NewsCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278344884" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="News"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value=""}% +%META:FIELD{name="Icon" attributes="" title="Icon" value="newspaper.png"}% diff --git a/data/Applications/BlogApp/PingBackPluginCategory.txt b/data/Applications/BlogApp/PingBackPluginCategory.txt new file mode 100644 index 0000000..94c243a --- /dev/null +++ b/data/Applications/BlogApp/PingBackPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345408" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="PingBackPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/RedDotPluginCategory.txt b/data/Applications/BlogApp/RedDotPluginCategory.txt new file mode 100644 index 0000000..16fa6e0 --- /dev/null +++ b/data/Applications/BlogApp/RedDotPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345418" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="RedDotPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/RenderArchives.txt b/data/Applications/BlogApp/RenderArchives.txt new file mode 100644 index 0000000..225dc9e --- /dev/null +++ b/data/Applications/BlogApp/RenderArchives.txt @@ -0,0 +1,60 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1320867705" format="1.1" reprev="7" version="8"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +%RED%TODO%ENDCOLOR% + +---+++++ Parameters + * CAT: render archive links in this Category (optional) + +%ENDSECTION{name="documentation" type="section"}% + +---++ Implementation + +%STARTINCLUDE% +%DBSTATS{ + "TopicType=~'\bBlogEntry\b' %IF{"defined CAT and '%CAT%'!=''" then="AND topic ISA '%CAT%'"}% AND State!='unpublished' AND topic != 'WebTopicEditTemplate'" + web="%BASEWEB%" + field="createdate" + hidenull="on" + sort="created" + reverse="on" + pattern="((\w+) (\d\d\d\d))" + header="
+

+ %IF{"defined CAT and '%CAT%'!=''" + then="%MAKETEXT{"[_1] Archive" args="%CATINFO{cat="%CAT%" format="$title"}%"}%" + else="%MAKETEXT{"Archive"}%" + }% +

+
" +}%%STOPINCLUDE% +
+ +---++ Test +%DBCALL{"%TOPIC%"}% +%JQREQUIRE{"serialpager"}% + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2011 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="display a list of months and the numbers of BlogEntries in it for the sidebar"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/RenderAuthorTools.txt b/data/Applications/BlogApp/RenderAuthorTools.txt new file mode 100644 index 0000000..8e07433 --- /dev/null +++ b/data/Applications/BlogApp/RenderAuthorTools.txt @@ -0,0 +1,48 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1320870379" format="1.1" reprev="4" version="4"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +%RED%TODO%ENDCOLOR% + +---+++++ Parameters + * NONE + +%ENDSECTION{name="documentation" type="section"}% + +---++ Implementation + +%STARTINCLUDE%%IF{"'%BASEWEB%.WebPreferences' allows 'change'" + then="$percntDBCALL{\"%WEB%.%TOPIC%\" section=\"tools\"}$percnt" +}%%STOPINCLUDE% + + + +%STARTSECTION{"tools"}% +

%MAKETEXT{"Tools"}%

+ * [[BlogEntry][%MAKETEXT{"BlogEntries"}%]] + * [[Category][%MAKETEXT{"Categories"}%]] + * [[WebTopicList][%MAKETEXT{"Index"}%]] + * [[WebChanges][%MAKETEXT{"Changes"}%]] + * [[WebNotify][%MAKETEXT{"Subscriptions"}%]] + * [[WebStatistics][%MAKETEXT{"Statistics"}%]] + * [[WebPreferences][%MAKETEXT{"Preferences"}%]] +%ENDSECTION{"tools"}% +
+ +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2011 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="tools visible to blog authors"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:TOPICMOVED{by="micha" date="1294073388" from="Applications/BlogApp.RenderBlogAuthorTools" to="Applications/BlogApp.RenderAuthorTools"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/RenderBlogEntries.txt b/data/Applications/BlogApp/RenderBlogEntries.txt new file mode 100644 index 0000000..c0569c6 --- /dev/null +++ b/data/Applications/BlogApp/RenderBlogEntries.txt @@ -0,0 +1,158 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1319610036" format="1.1" reprev="15" version="15"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +This TopicFunction displays a collection of BlogEntries within the given CATegory and/or TAG. + +---+++++ Parameters + * SKIP: offset into the archive + * LIMIT: number of postings to show at max + * CAT: categories to extract (optional) + * TAG: tagged entries to be extracted (optional) + * STICKY: a pattern the Sticky field must match to list the posting see the "Sticky" definition in BlogEntry (optional) + * NOSTICKY: same as STICKY but with inverse logic +%ENDSECTION{name="documentation" type="section"}% + +---++ Implementation + +%STARTINCLUDE% + +%DBQUERY{ + "TopicType=~'\bBlogEntry\b' + AND State != 'unpublished' + AND topic != 'WebTopicEditTemplate' + %IF{"defined CAT and '%CAT%' != ''" then="AND topic ISA '%CAT%'"}% + %IF{"defined TAG and '%TAG%' != ''" then="AND Tag=~'\b%TAG%\b'"}% + %IF{"defined STICKY and '%STICKY%' != ''" then="AND Sticky=~'\b%STICKY%\b'"}% + %IF{"defined NOSTICKY and '%NOSTICKY%' != ''" then="AND ! Sticky=~'\b%NOSTICKY%\b'"}% + " + limit="%IF{"defined LIMIT" then="%LIMIT%" else="5"}%" + skip="%IF{"defined SKIP" then="%SKIP%" else="0"}%" + order="created" + reverse="on" + hidenull="on" + web="%BASEWEB%" + header="%IF{"'%SKIP%'!='0'" + then="$dollarpercntDBCALL{ + \\"%WEB%.%TOPIC%\\" + section=\\"pagination%IF{"defined STICKY and '%STICKY%'!=''" then="DISABLED"}%\\" + warn=\\"off\\" + LIMIT=\\"%IF{"defined LIMIT" then="%LIMIT%" else="5"}%\\" + SKIP=\\"%IF{"defined SKIP" then="%SKIP%" else="0"}%\\" + COUNT=\\"$count\\" + CLASS=\\"blogTopPagination\\" + PARAMS=\\"%IF{ + "defined STICKY and '%STICKY%'!=''" then=";sticky=%STICKY%" + }%%IF{ + "defined CAT and '%CAT%'!=''" then=";catname=%CAT%" + }%\\" + }$dollarpercnt" + }% +
" + format="
+
+

+ $percntMETACOMMENTS{ + topic=\"$web.$topic\" + approval=\"on\" + format=\"
$dollarcount
\" + limit=\"1\" + singular=\"1\" + plural=\"$dollarcount\" + }$percnt + [[$web.$topic]] + $percntIF{\"'$expand(State)' = 'unpublished'\" + then=\"(%MAKETEXT{"unpublished"}%)\" + }$percnt + $percntREDDOT{\"$web.$topic\"}$percnt +
$expand(Summary')
+

+ <$nopdirtyarea> + $percntTIMESINCE{ + \"$expand(createdate)\" + format=\"$time ago\" + null=\"about now\" + }$percnt + | [[%USERSWEB%.$expand(createauthor)][$expand(createauthor)]] + $percntCATINFO{ + topic=\"$web.$topic\" + header=\"| \" + }$percnt + $percntTAGINFO{ + topic=\"$web.$topic\" + header=\"| \" + }$percnt +
+
+$expand(text) +~~~ + … [[$web.$topic][%MAKETEXT{"reply"}%]] + %CLEAR% +
+
" + footer="
+ $percntDBCALL{\"%WEB%.%TOPIC%\" + section=\"pagination%IF{"defined STICKY and '%STICKY%'!=''" then="DISABLED"}%\" + warn=\"off\" + LIMIT=\"%IF{"defined LIMIT" then="%LIMIT%" else="5"}%\" + SKIP=\"%IF{"defined SKIP" then="%SKIP%" else="0"}%\" + COUNT=\"$count\" + CLASS=\"blogBottomPagination\" + PARAMS=\"%IF{ + "defined STICKY and '%STICKY%'!=''" then=";sticky=%STICKY%" + }%%IF{ + "defined CAT and '%CAT%'!=''" then=";catname=%CAT%" + }%\" + }$percnt" +}% +
+%STOPINCLUDE% +
+ +---++ Pagination + +%STARTSECTION{"pagination"}% +
+%CALC{"$SET(theNextSkip,$EVAL(%SKIP%+%LIMIT%))$SET(thePrevSkip,$EVAL(%SKIP%-%LIMIT%))$IF($GET(thePrevSkip) < 0,$SET(thePrevSkip,0))"}% + + + + + +
+« %MAKETEXT{"previous page"}% + += %COUNT%" then="style='display:none'"}% href='%SCRIPTURL{"view"}%/%BASEWEB%/%BASETOPIC%?skip=%CALC{"$GET(theNextSkip)"}%;limit=%LIMIT%%IF{"defined PARAMS" then="%PARAMS%"}%'>%MAKETEXT{"next page"}% » +
+
%ENDSECTION{"pagination"}% +
+ +---++ Test + +---+++ no stickiness +%TWISTY% +%DBCALL{"%TOPIC%"}% +%ENDTWISTY% + +---+++ stickiness +%TWISTY% +%DBCALL{"%TOPIC%" STICKY="frontpage"}% +%ENDTWISTY% + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2011 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="Render a set of postings to leaf through"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/RenderBlogEntryBottom.txt b/data/Applications/BlogApp/RenderBlogEntryBottom.txt new file mode 100644 index 0000000..c2de8c6 --- /dev/null +++ b/data/Applications/BlogApp/RenderBlogEntryBottom.txt @@ -0,0 +1,70 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1278404694" format="1.1" reprev="2" version="3"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +%RED%TODO%ENDCOLOR% + +---+++++ Parameters +BASETOPIC% + +%ENDSECTION{name="documentation" type="section"}% + +---++ Implementation + +%STARTINCLUDE% +
+
+%DBQUERY{ + topic="%BASEWEB%.%BASETOPIC%" + format=" + $percntDBCALL{\"%WEB%.%TOPIC%\" section=\"image\" topic=\"$expand(Author or createauthor)\"}$percnt + %USERSWEB%.$expand(Author or createauthor) - $formatTime(createdate) %BR%" +}% +%CATINFO{"%BASEWEB%.%BASETOPIC%" + header="Filed in " + footer="%BR%" +}% +%TAGINFO{"%BASEWEB%.%BASETOPIC%" + header="Tagged " +}% +%CLEAR% +
+%STOPINCLUDE% +
+ +---++ Image + +%STARTSECTION{"image"}% +%IMAGE{ + "%IF{"'%USERSWEB%.%topic%'/Photo" + then="$percntFORMFIELD{\"Photo\" topic=\"%USERSWEB%.%topic%\"}$percnt" + else="%PUBURLPATH%/%SYSTEMWEB%/MetaCommentPlugin/nobody.gif" + }%" + topic="%USERSWEB%.%topic%" + type="simple" + align="left" + href="%SCRIPTURLPATH{"view"}%/%USERSWEB%/%topic%" + width="50" + title="%SPACEOUT{"%topic%"}%" +}% +%ENDSECTION{"image"}% + +---++ Test +%DBCALL{"%TOPIC%"}% + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2010 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="RenderBlogEntryBottom"}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="Renders an info block at the bottom of a blog entry"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/RenderBlogEntryPagination.txt b/data/Applications/BlogApp/RenderBlogEntryPagination.txt new file mode 100644 index 0000000..69aea35 --- /dev/null +++ b/data/Applications/BlogApp/RenderBlogEntryPagination.txt @@ -0,0 +1,75 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1320877295" format="1.1" reprev="4" version="5"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +%RED%TODO%ENDCOLOR% + +---+++++ Parameters + * CLASS: to be added to the container +%ENDSECTION{name="documentation" type="section"}% + +---++ Implementation + +%STARTINCLUDE% + +
+ + + + + + + +
+ %DBPREV{ + search="TopicType=~'\bBlogEntry\b' AND State != 'unpublished' AND topic != 'WebTopicEditTemplate'" + order="created" + reverse="on" + format="« " + }% + + %DBPREV{ + search="TopicType=~'\bBlogEntry\b' AND State != 'unpublished' AND topic != 'WebTopicEditTemplate'" + order="created" + reverse="on" + format="[[$web.$topic]]" + }% + + %DBNEXT{ + search="TopicType=~'\bBlogEntry\b' AND State != 'unpublished' AND topic != 'WebTopicEditTemplate'" + order="created" + reverse="on" + format="[[$web.$topic]]" + }% + + %DBNEXT{ + search="TopicType=~'\bBlogEntry\b' AND State != 'unpublished' AND topic != 'WebTopicEditTemplate'" + order="created" + reverse="on" + format=" »" + }% +
+
+
+%STOPINCLUDE% +
+ +---++ Test +%DBCALL{"%TOPIC%"}% + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2011 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="renders a navigation to link to the prev and next posting on the timeline"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/RenderBlogEntryTitle.txt b/data/Applications/BlogApp/RenderBlogEntryTitle.txt new file mode 100644 index 0000000..7006ead --- /dev/null +++ b/data/Applications/BlogApp/RenderBlogEntryTitle.txt @@ -0,0 +1,55 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1304953256" format="1.1" reprev="2" version="2"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +%RED%TODO%ENDCOLOR% + +---+++++ Parameters + * TITLE_EXTRA + +%ENDSECTION{name="documentation" type="section"}% + +---++ Implementation + +%STARTINCLUDE% +%DBCALL{"Applications.RenderWikiTopicView" TITLE_EXTRA="%TITLE_EXTRA%"}% +
+ %DBQUERY{ + topic="%BASEWEB%.%BASETOPIC%" + format="$formatTime(createdate, '$day $mon $year - $hour:$minute')" + }% + %DBQUERY{ + topic="%BASEWEB%.%BASETOPIC%" + format="| [[%USERSWEB%.$expand(createauthor)][$expand(createauthor)]]" + }% + %CATINFO{ + "%BASEWEB%.%BASETOPIC%" + header="| " + }% + %TAGINFO{ + "%BASEWEB%.%BASETOPIC%" + header="| " + }% +
+%STOPINCLUDE% +
+ +---++ Test +%DBCALL{"%TOPIC%"}% + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2011 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="renders the heading section of a BlogEntry"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/RenderCategories.txt b/data/Applications/BlogApp/RenderCategories.txt new file mode 100644 index 0000000..0c15e5a --- /dev/null +++ b/data/Applications/BlogApp/RenderCategories.txt @@ -0,0 +1,53 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1320868829" format="1.1" reprev="5" version="5"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +%RED%TODO%ENDCOLOR% + +---+++++ Parameters + * CAT: top category whose subcategories are displayed, defaults to TopCategory + +%ENDSECTION{name="documentation" type="section"}% + +---++ Implementation + +%STARTINCLUDE% +%HIERARCHY{ + web="%BASEWEB%" + top="%IF{"defined CAT and '%CAT%'!=''" then="%CAT%" else="TopCategory"}%" + exclude="%IF{"defined CAT and '%CAT%'!=''" then="%CAT%" else="TopCategory"}%" + hidenull="on" + depth="2" + filter="TopicType=~'\bBlogEntry\b' AND State != 'unpublished'" + header="
+

%IF{"defined CAT and '%CAT%' !=''" + then="%MAKETEXT{"[_1] categories" args="%CATINFO{cat="%CAT%" format="$title"}%"}%" + else="%MAKETEXT{"Categories"}%" + }%

+
    " + footer="
" + subheader="" + subfooter="" + format="
  • $count $title
  • " +}%%STOPINCLUDE% +
    + +---++ Test +%DBCALL{"%TOPIC%"}% + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2011 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="display a list of categories in the sidebar"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/RenderHelpText.txt b/data/Applications/BlogApp/RenderHelpText.txt new file mode 100644 index 0000000..77d2c78 --- /dev/null +++ b/data/Applications/BlogApp/RenderHelpText.txt @@ -0,0 +1,57 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1294150177" format="1.1" reprev="1" version="2"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +This function renders a help text for the sidebar depending on the SIDEBAR variable. +It helps to identify the area of the blog the user is currently exploring. + +---+++++ Parameters + * SIDEBAR + +%ENDSECTION{name="documentation" type="section"}% + +---++ Default Section +%STARTSECTION{"Default"}%%WEBSUMMARY%%ENDSECTION{"Default"}% + +---+++ Entry section + +%STARTSECTION{"Entry"}%%WEBSUMMARY%%ENDSECTION{"Entry"}% + + +---++ Page section +%STARTSECTION{"Page"}% +You are in the page section consisting of all the +topics that +exist outside the chronological sortion of [[%BASEWEB%.BlogEntry][BlogEntries]] but are special +[[%BASEWEB%.WikiTopic][WikiTopics]] with respect to this application. +%ENDSECTION{"Page"}% + +---++ Admin section +%STARTSECTION{"Admin"}% +You are in the administrative section +of the [[Applications.BlogApp.WebHome][BlogApp]] which the +[[%BASEWEB%.%BASETOPIC%][%BASETOPIC%]] topic is part of. +%ENDSECTION{"Admin"}% + +---++ Category section +%STARTSECTION{"Category"}% +You are visiting this blog by category, that is all postings here are filed +into the [[%BASEWEB%.%BASETOPIC%][%BASETOPIC%]] category. +%ENDSECTION{"Category"}% + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2010 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="Renders a help text at the top if the sidebar"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/RenderPluginCategory.txt b/data/Applications/BlogApp/RenderPluginCategory.txt new file mode 100644 index 0000000..6db61ba --- /dev/null +++ b/data/Applications/BlogApp/RenderPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345430" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="RenderPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/RenderRecentBlogEntries.txt b/data/Applications/BlogApp/RenderRecentBlogEntries.txt new file mode 100644 index 0000000..79bae4c --- /dev/null +++ b/data/Applications/BlogApp/RenderRecentBlogEntries.txt @@ -0,0 +1,63 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1320867722" format="1.1" reprev="3" version="5"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +%RED%TODO%ENDCOLOR% + +---+++++ Parameters + * LIMIT: maximal number of BlogEntries to list + * CAT: optionally render restrict list to this category + +%ENDSECTION{name="documentation" type="section"}% + +---++ Implementation + +%STARTINCLUDE% + +%DBQUERY{ + "TopicType=~'\bBlogEntry\b' AND State != 'unpublished' AND topic != 'WebTopicEditTemplate' + %IF{"defined CAT and '%CAT%'!=''" then="AND topic ISA '%CAT%'"}% + " + order="createdate" + reverse="on" + limit="%IF{"defined LIMIT" then="%LIMIT%" else="10"}%" + hidenull="on" + web="%BASEWEB%" + header="" +}% + +%STOPINCLUDE% + + +---++ Test +%DBCALL{"%TOPIC%"}% + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2011 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="display a list of recent BlogEntries for the sidebar"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/RenderRecentComments.txt b/data/Applications/BlogApp/RenderRecentComments.txt new file mode 100644 index 0000000..b88c7e2 --- /dev/null +++ b/data/Applications/BlogApp/RenderRecentComments.txt @@ -0,0 +1,132 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1311683343" format="1.1" reprev="9" version="9"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +This function is used to render a section in a sidebar listing the recent comments last month +limitted to a max of 10 by default. To fetch the list of most recent comments there are two +implementations below: one using DBQUERY and METACOMMENT and the other using SOLRSEARCH. The +latter is used automatically when !SolrPlugin is installed. + +---+++++ Parameters + * LIMIT: max number of comments to show + * CAT: retrieve recent comments on BlogEntries in that category + +%ENDSECTION{name="documentation" type="section"}% + +---++ Implementation + +%STARTINCLUDE% + +%FORMATLIST{ + "%DBCALL{"%WEB%.%TOPIC%" section="recentcomments"}%" + sort="on" + reverse="on" + pattern="(.*);(.*);(.*);(.*)" + split="\n" + limit="%IF{"defined LIMIT" then="%LIMIT%" else="10"}%" + header="
    +

    %IF{"defined CAT" + then="%MAKETEXT{"Comments in [_1]" args="%CATINFO{cat="%CAT%" format="$title"}%"}%" + else="%MAKETEXT{"Comments"}%" + }%

    + <$nopdirtyarea>
    " + separator="$n" +}% +
    +%STOPINCLUDE% +
    + +---++ Photo + +%STARTSECTION{"photo"}%%IMAGE{ + "%IF{"'%USERSWEB%.%AUTHOR%'/Photo" + then="$percntFORMFIELD{\"Photo\" topic=\"%USERSWEB%.%AUTHOR%\"}$percnt" + else="%IF{"'%USERSWEB%.%AUTHOR%'/attachments[name=~'\.(gif|png|jpe?g)$']" + then="%QUERY{"'%USERSWEB%.%AUTHOR%'/attachments[name=~'\.(gif|png|jpe?g)'][0].name"}%" + else="%PUBURLPATH%/%SYSTEMWEB%/MetaCommentPlugin/nobody.gif" + }%" + }%" + topic="%USERSWEB%.%AUTHOR%" + type="plain" + align="right" + size="48" + style="margin-bottom:0px" + crop="northwest" + title="%SPACEOUT{%AUTHOR%}%" +}%%ENDSECTION{"photo"}% + + +---++ List of comments + +%STARTSECTION{"recentcomments"}%%DBQUERY{ + "commentdate > 0 AND State != 'unpublished' + %IF{"defined CAT" then="AND topic ISA '%CAT%'"}%" + web="%BASEWEB%" + order="commentdate" + reverse="on" + limit="%IF{"defined LIMIT" then="%LIMIT%" else="10"}%" + format="$percntMETACOMMENTS{ + topic=\"$web.$topic\" + approval=\"on\" + sort=\"date\" + mindate=\"%CALC{"$TIMEADD($TIME(), -1, month)"}%\" + format=\"$timestamp;$author;$topic;%SCRIPTURLPATH{"view"}%/$web/$topic#comment$id\" + separator=\"$dollarn\" + }$percnt" + separator="$n" +}%%ENDSECTION{"recentcomments"}% + + +---+++ Solr implementation +Note: this query does not respect the publish state of a BlogEntry. That'll only +be possible using Solr-4.0's latest join feature. As long as we don't have that yet +this implementation is DIS_abled above. In addition we want to limit comments to +those of a certain category. We might need to propagate some of these states down to +the comments subschema the same way we did this for attachments. Hm... + +%STARTSECTION{"recentcomments::solr"}%%SOLRSEARCH{ + "web:%BASEWEB% type:comment createdate:[NOW-1MONTH TO NOW] state:approved" + sort="createdate desc" + limit="%IF{"defined LIMIT" then="%LIMIT%" else="10"}%" + format="$createdate;$dollarpercntUSERINFO{\\"$author\\" format=\\"$dollarwikiname\\"}$dollarpercnt;$topic;$url" + separator="$n" +}%%ENDSECTION{"recentcomments::solr"}% + + +---++ Test +%DBCALL{"%TOPIC%"}% + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2011 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="display a list of recent comments in the current web"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/RenderSideBar.txt b/data/Applications/BlogApp/RenderSideBar.txt new file mode 100644 index 0000000..1616506 --- /dev/null +++ b/data/Applications/BlogApp/RenderSideBar.txt @@ -0,0 +1,99 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1320868361" format="1.1" reprev="10" version="10"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{"documentation"}% +%RED%TODO%ENDCOLOR% + +---+++++ Parameters + * SIDEBAR: kind of sidebar to display + +%ENDSECTION{"documentation"}% + +---++ Implementation + +%STARTINCLUDE%%DBCALL{ + "%WEB%.%TOPIC%" + section="%IF{"defined SIDEBAR" + then="%SIDEBAR%" + else="%FORMATLIST{"%FORMFIELD{"TopicType" topic="%BASEWEB%.%BASETOPIC"}%" limit="1" null="Default"}%" + }%" +}%%JQREQUIRE{"serialpager"}%%STOPINCLUDE% + + +---++ Default sidebar + +%STARTSECTION{"Default"}% +
    +

    %MAKETEXT{"About"}%

    +

    %WEBSUMMARY%

    +
    +%DBCALL{"Applications.BlogApp.RenderAuthorTools"}% +%DBCALL{"Applications.BlogApp.RenderRecentComments" LIMIT="5"}% +%DBCALL{"Applications.BlogApp.RenderCategories"}% +%DBCALL{"Applications.BlogApp.RenderArchives"}% +%ENDSECTION{"Default"}% +
    + +---++ Admin sidebar + +%STARTSECTION{"Admin"}% +
    +

    %MAKETEXT{"About"}%

    +

    You are in the admin section. This area should only be accessible to admins of this blog.

    +
    +%DBCALL{"Applications.BlogApp.RenderAuthorTools"}% +%ENDSECTION{"Admin"}% +
    + +---++ BlogEntry sidebar + +%STARTSECTION{"BlogEntry"}% +
    +

    %MAKETEXT{"About"}%

    +

    %WEBSUMMARY%

    +
    +%DBCALL{"Applications.BlogApp.RenderAuthorTools"}% +%DBCALL{"Applications.BlogApp.RenderSimilarBlogEntries"}% +%DBCALL{"Applications.BlogApp.RenderRecentBlogEntries" LIMIT="10"}% +%ENDSECTION{"BlogEntry"}% +
    + +---++ Category sidebar + +%STARTSECTION{"Category"}% +
    +

    %MAKETEXT{"About"}%

    +

    %WEBSUMMARY%

    +
    +%DBCALL{"Applications.BlogApp.RenderAuthorTools"}% +%DBCALL{"Applications.BlogApp.RenderCategories" CAT="%URLPARAM{"catname" default="%BASETOPIC%"}%"}% +%DBCALL{"Applications.BlogApp.RenderRecentComments" + CAT="%URLPARAM{"catname" default="%BASETOPIC%"}%" + LIMIT="5" +}% +%DBCALL{"Applications.BlogApp.RenderArchives" + CAT="%URLPARAM{"catname" default="%BASETOPIC%"}%" +}%%ENDSECTION{"Category"}% +
    + +---++ Nosidebar + +%STARTSECTION{"Nosidebar"}%%ENDSECTION{"Nosidebar"}% + + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2011 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="sidebar for the blog app"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/RenderSimilarBlogEntries.txt b/data/Applications/BlogApp/RenderSimilarBlogEntries.txt new file mode 100644 index 0000000..4f9cfc9 --- /dev/null +++ b/data/Applications/BlogApp/RenderSimilarBlogEntries.txt @@ -0,0 +1,65 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1305113620" format="1.1" reprev="2" version="2"}% +%META:TOPICPARENT{name="TopicFunction"}% +%TOC{depth="2"}% + +---++ Documentation +%STARTSECTION{name="documentation" type="section"}% +This needs Foswiki:Extensions/SolrPlugin + +---+++++ Parameters + * NONE + +%ENDSECTION{name="documentation" type="section"}% + +---++ Implementation + +%STARTINCLUDE% + +%SOLRSIMILAR{"id:%BASEWEB%.%BASETOPIC%" + filter="web:%BASEWEB% type:topic field_TopicType_lst:BlogEntry" + fields="web,topic,title,score" + like="category,tag" + header="
    +

    %MAKETEXT{"Similar"}%

      " + footer="
    " + format="
  • + + $percntDBCALL{\"Applications.RenderTopicThumbnail\" + OBJECT=\"$web.$topic\" + TYPE=\"plain\" + }$percnt + $title + $percntDBQUERY{ + header=\"
    \" + topic=\"$web.$topic\" + format=\"$formfield(Summary)\" + footer=\"\" + }$percnt + %CLEAR% +
    +
  • " + separator="$n" + rows="5" +}% +
    +%STOPINCLUDE% +
    + +---++ Test +%DBCALL{"%TOPIC%"}% + +%DBCALL{"Applications.RenderFunctionCallers"}% + +---++ Copyright +© 2005-2011 http://michaeldaumconsulting.com + +%DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="DocuTopic, TopicFunction"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="display a list of related BlogEntries"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:TOPICMOVED{by="micha" date="1305113619" from="Applications/BlogApp.RenderRelatedBlogEntries" to="Applications/BlogApp.RenderSimilarBlogEntries"}% +%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% diff --git a/data/Applications/BlogApp/ReviewCategory.txt b/data/Applications/BlogApp/ReviewCategory.txt new file mode 100644 index 0000000..31697d3 --- /dev/null +++ b/data/Applications/BlogApp/ReviewCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345594" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="Review"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value=""}% +%META:FIELD{name="Icon" attributes="" title="Icon" value="chart_bar.png"}% diff --git a/data/Applications/BlogApp/RftContribCategory.txt b/data/Applications/BlogApp/RftContribCategory.txt new file mode 100644 index 0000000..8163ce6 --- /dev/null +++ b/data/Applications/BlogApp/RftContribCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345438" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="RftContrib"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/SoapPluginCategory.txt b/data/Applications/BlogApp/SoapPluginCategory.txt new file mode 100644 index 0000000..07ccc3d --- /dev/null +++ b/data/Applications/BlogApp/SoapPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345446" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="SoapPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/SoftwareCategory.txt b/data/Applications/BlogApp/SoftwareCategory.txt new file mode 100644 index 0000000..f747eb8 --- /dev/null +++ b/data/Applications/BlogApp/SoftwareCategory.txt @@ -0,0 +1,12 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1278345308" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="Software"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value=""}% +%META:FIELD{name="Icon" attributes="" title="Icon" value="plugin.png"}% +%META:FIELD{name="ImportedCategory" attributes="" title="ImportedCategory" value=""}% +%META:FIELD{name="Order" attributes="" title="Order" value=""}% +%META:TOPICMOVED{by="micha" date="1278345296" from="Applications/BlogApp.ExtensionsCategory" to="Applications/BlogApp.SoftwareCategory"}% diff --git a/data/Applications/BlogApp/SolrPluginCategory.txt b/data/Applications/BlogApp/SolrPluginCategory.txt new file mode 100644 index 0000000..d19b5fe --- /dev/null +++ b/data/Applications/BlogApp/SolrPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345297" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="SolrPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/SqlPluginCategory.txt b/data/Applications/BlogApp/SqlPluginCategory.txt new file mode 100644 index 0000000..8db89de --- /dev/null +++ b/data/Applications/BlogApp/SqlPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345461" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="SqlPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/StringifierContribCategory.txt b/data/Applications/BlogApp/StringifierContribCategory.txt new file mode 100644 index 0000000..b47fd35 --- /dev/null +++ b/data/Applications/BlogApp/StringifierContribCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345473" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="StringifierContrib"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/TagCloudPluginCategory.txt b/data/Applications/BlogApp/TagCloudPluginCategory.txt new file mode 100644 index 0000000..a048095 --- /dev/null +++ b/data/Applications/BlogApp/TagCloudPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345483" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="TagCloudPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/TaggedTopic.txt b/data/Applications/BlogApp/TaggedTopic.txt new file mode 100644 index 0000000..c734147 --- /dev/null +++ b/data/Applications/BlogApp/TaggedTopic.txt @@ -0,0 +1,10 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278341067" format="1.1" version="1"}% +%META:TOPICPARENT{name="TopicType"}% + + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="ClassificationApp"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications/ClassificationApp.TaggedTopic"}% diff --git a/data/Applications/BlogApp/TechnologyCategory.txt b/data/Applications/BlogApp/TechnologyCategory.txt new file mode 100644 index 0000000..50d4c32 --- /dev/null +++ b/data/Applications/BlogApp/TechnologyCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345570" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="Technology"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value=""}% +%META:FIELD{name="Icon" attributes="" title="Icon" value="cog.png"}% diff --git a/data/Applications/BlogApp/ThisIsATest.txt b/data/Applications/BlogApp/ThisIsATest.txt new file mode 100644 index 0000000..be901af --- /dev/null +++ b/data/Applications/BlogApp/ThisIsATest.txt @@ -0,0 +1,33 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1319538700" format="1.1" reprev="6" version="10"}% +%META:TOPICPARENT{name="BlogPluginCategory"}% +Maecenas nec enim at mauris varius porta. Praesent elementum ullamcorper diam in pellentesque. Donec in mauris gravida est sollicitudin feugiat ullamcorper non ipsum. Pellentesque rhoncus imperdiet dui, a interdum enim blandit ac. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In eleifend vulputate pretium? Donec id purus ante; vel pharetra erat. In ante dui, dapibus quis semper ac, pretium vel nisi. Etiam nec arcu nisl, eu interdum enim. Duis justo ante, accumsan eget rutrum a, dictum at orci. Maecenas leo orci; vehicula facilisis convallis in, lobortis lobortis nibh. Cras dignissim pharetra rhoncus! + +Etiam malesuada elit non sem eleifend ornare? Sed porttitor suscipit lobortis. Cras in eros et lorem tempor aliquet sed et diam. Ut ipsum diam, consequat nec egestas pulvinar, dignissim quis nibh. Phasellus non velit sapien, non posuere nunc. Phasellus lorem diam, auctor dapibus euismod eget, egestas sit amet ipsum. Morbi facilisis, enim id hendrerit porta, odio nisi ultrices tortor, eget rhoncus nunc justo et ante. Nam sit amet arcu augue. Nulla risus mauris, rhoncus a interdum at, blandit vel magna. Mauris in lorem nisl. Nullam tortor neque; vestibulum ut condimentum eget, tristique in metus. Donec pretium elit ut nisl vestibulum malesuada. + +Sed fermentum orci quis ante commodo bibendum. Maecenas rutrum ultrices nunc; ut volutpat mi vehicula in. Duis porttitor diam sed metus dignissim fermentum. Maecenas pretium diam eget urna consectetur mattis sit amet ac neque massa nunc. + +Author=%QUERY{"Author"}% + +Summary=%QUERY{"Summary"}% + +FORMFIELD=%FORMFIELD{"Author" format="$dollarvalue=$value"}% + +FORMFIELD=%FORMFIELD{"Summary" format="$dollarvalue=$value"}% + +FORMFIELD=%FORMFIELD{"TopicTitle" format="$dollarvalue=$value"}% + +%META:FORM{name="Applications/BlogApp.BlogEntry"}% +%META:FIELD{name="TopicType" title="TopicType" value="BlogEntry, ClassifiedTopic, CategorizedTopic, TaggedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="This is a test"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Etiam sit amet nisl odio. Mauris pretium consectetur feugiat. Nam volutpat."}% +%META:FIELD{name="Tag" attributes="" title="Tag" value="foo, bar, baz"}% +%META:FIELD{name="Category" attributes="" title="Category" value="BlogPluginCategory, HumorCategory, KnowledgeManagementCategory"}% +%META:FIELD{name="State" attributes="" title="State" value="published"}% +%META:FIELD{name="Sticky" attributes="" title="Sticky" value="frontpage"}% +%META:FIELD{name="MetaTitle" attributes="" title="MetaTitle" value="This is a test"}% +%META:FIELD{name="MetaDescription" attributes="" title="MetaDescription" value="Etiam sit amet nisl odio. Mauris pretium consectetur feugiat. Nam volutpat."}% +%META:FIELD{name="MetaKeywords" attributes="" title="MetaKeywords" value="bar, baz, foo"}% +%META:COMMENT{name="1.1278346545" author="MichaelDaum" date="1278346545" modified="1278357408" ref="" text="Nullam vel purus et ante dignissim lobortis! Vivamus suscipit lacinia libero, eu laoreet dui consectetur eu. Sed non hendrerit metus. Mauris et mollis massa. Maecenas non lorem arcu. Suspendisse ultrices vulputate magna, eget vehicula velit luctus eget. Nulla facilisi. Proin eros quam, blandit sit amet malesuada eu, fringilla ac libero! Cras consequat laoreet imperdiet. Duis molestie ullamcorper neque, id suscipit augue placerat eget. Aliquam quis mauris et lorem mattis placerat? Proin pulvinar fringilla nulla. Etiam in diam orci; id vestibulum lectus.%0a%0aNam velit ante, pellentesque ut condimentum a, consequat vitae massa? Maecenas eu turpis ut dolor dapibus imperdiet. Ut hendrerit nisi dui; id faucibus nunc. Nunc lectus quam, pharetra id posuere at, interdum eget erat. Donec vehicula nullam. x%0a" title="Donec ut libero eu odio sodales condimentum. Nulla ac metus."}% +%META:COMMENT{name="2.1278346558" author="MichaelDaum" date="1278346558" modified="1278346558" ref="" text="In hendrerit, nulla id ultricies convallis, turpis mauris placerat lectus, congue mollis purus lectus eu elit. Integer consectetur, nibh hendrerit lobortis consectetur, ante velit aliquam orci, nec tristique elit quam non dui. Donec a lacus massa; ac dapibus lacus. Proin blandit ligula sit amet est rutrum molestie. Maecenas lectus tortor, convallis eu rutrum ac, accumsan eget sem. Duis faucibus, nisl a vehicula sagittis, augue felis convallis tellus, non scelerisque lorem lacus vel dolor? Suspendisse non diam mattis quam dictum egestas eu at magna. Nulla euismod pretium massa, eget ullamcorper enim imperdiet vitae. Etiam semper vehicula nisi. Proin diam sapien, dignissim in interdum sed, feugiat a nulla. Sed porta venenatis adipiscing. Sed pretium sem sed magna volutpat faucibus! volutpat.%0d%0a" title=""}% +%META:COMMENT{name="3.1278346563" author="MichaelDaum" date="1278346563" modified="1278346563" ref="" text="Aliquam erat volutpat. Vestibulum pellentesque rutrum tempor. Fusce dapibus, dolor vel laoreet sollicitudin, tellus enim ultricies odio, eu scelerisque nibh metus ac massa. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam pulvinar venenatis aliquam! Morbi et metus et felis tristique gravida a nec orci. Proin vitae turpis ac arcu pellentesque tempor. Aenean quis turpis eu turpis commodo porttitor eleifend a felis. Pellentesque consequat augue mi, id porttitor dolor. Quisque vitae magna orci, sit amet pretium metus. Nam id metus libero? Phasellus tincidunt rhoncus quam in scelerisque. Nunc porta, ipsum sit amet vulputate ultrices, ipsum nulla posuere sapien, volutpat ornare nunc elit a ligula. Pellentesque sollicitudin, nunc eget volutpat.%0d%0a" title=""}% +%META:PREFERENCE{name="DISPLAYCOMMENTS" title="DISPLAYCOMMENTS" type="Local" value="on"}% diff --git a/data/Applications/BlogApp/TimeSincePluginCategory.txt b/data/Applications/BlogApp/TimeSincePluginCategory.txt new file mode 100644 index 0000000..4e0128c --- /dev/null +++ b/data/Applications/BlogApp/TimeSincePluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345492" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="TimeSincePlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/TopCategory.txt b/data/Applications/BlogApp/TopCategory.txt new file mode 100644 index 0000000..26964c5 --- /dev/null +++ b/data/Applications/BlogApp/TopCategory.txt @@ -0,0 +1,10 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1294080473" format="1.1" version="1"}% +%META:TOPICPARENT{name="WebHome"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="TOP"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value=""}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/TopicFunction.txt b/data/Applications/BlogApp/TopicFunction.txt new file mode 100644 index 0000000..cbb5800 --- /dev/null +++ b/data/Applications/BlogApp/TopicFunction.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484864" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Tool to create a simple TopicFunctions"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.TopicFunction"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/TopicStub.txt b/data/Applications/BlogApp/TopicStub.txt new file mode 100644 index 0000000..a9d5f56 --- /dev/null +++ b/data/Applications/BlogApp/TopicStub.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Tool to create a TopicStub"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.TopicStub"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/TopicTemplate.txt b/data/Applications/BlogApp/TopicTemplate.txt new file mode 100644 index 0000000..e14ef8f --- /dev/null +++ b/data/Applications/BlogApp/TopicTemplate.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Tool to create a TopicTemplate"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.TopicTemplate"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/TopicType.txt b/data/Applications/BlogApp/TopicType.txt new file mode 100644 index 0000000..e8ffb73 --- /dev/null +++ b/data/Applications/BlogApp/TopicType.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% + + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Tool to create a TopicType"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.TopicType"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/TopicView.txt b/data/Applications/BlogApp/TopicView.txt new file mode 100644 index 0000000..1c47ba8 --- /dev/null +++ b/data/Applications/BlogApp/TopicView.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Tool to create a TopicView"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.TopicView"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/UploadPluginCategory.txt b/data/Applications/BlogApp/UploadPluginCategory.txt new file mode 100644 index 0000000..52c8840 --- /dev/null +++ b/data/Applications/BlogApp/UploadPluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345503" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="UploadPlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/WebAtom.txt b/data/Applications/BlogApp/WebAtom.txt new file mode 100644 index 0000000..2663d30 --- /dev/null +++ b/data/Applications/BlogApp/WebAtom.txt @@ -0,0 +1,7 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%WIKITOOLNAME%'s <nop>%WEB% web +%MAKETEXT{"The [_1] web of Foswiki, the Free and Open Source Wiki." args="%WEB%"}% +%INCLUDE{"%SYSTEMWEB%.WebAtomBase"}% diff --git a/data/Applications/BlogApp/WebChanges.txt b/data/Applications/BlogApp/WebChanges.txt new file mode 100644 index 0000000..e38ef84 --- /dev/null +++ b/data/Applications/BlogApp/WebChanges.txt @@ -0,0 +1,8 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%INCLUDE{"%SYSTEMWEB%.WebChanges"}% + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value=""}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="WebChanges"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Most recent changes in this web"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% diff --git a/data/Applications/BlogApp/WebDesignCategory.txt b/data/Applications/BlogApp/WebDesignCategory.txt new file mode 100644 index 0000000..4bb490a --- /dev/null +++ b/data/Applications/BlogApp/WebDesignCategory.txt @@ -0,0 +1,11 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1278345645" format="1.1" reprev="1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="WebDesign"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value=""}% +%META:FIELD{name="Icon" attributes="" title="Icon" value="rainbow.png"}% +%META:FIELD{name="ImportedCategory" attributes="" title="ImportedCategory" value=""}% +%META:FIELD{name="Order" attributes="" title="Order" value=""}% diff --git a/data/Applications/BlogApp/WebHome.txt b/data/Applications/BlogApp/WebHome.txt new file mode 100644 index 0000000..49d5bea --- /dev/null +++ b/data/Applications/BlogApp/WebHome.txt @@ -0,0 +1,10 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1271763923" format="1.1" reprev="1.4" rev="5" version="1.5"}% +%DBCALL{"Applications.RenderWikiApplicationWebHome"}% + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="ApplicationTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="BlogApp"}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value=""}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:PREFERENCE{name="NATSKIN_SIDEBAR" title="NATSKIN_SIDEBAR" type="Local" value="off"}% +%META:PREFERENCE{name="DISPLAYFORM" title="DISPLAYFORM" type="Local" value="off"}% diff --git a/data/Applications/BlogApp/WebLinks.txt b/data/Applications/BlogApp/WebLinks.txt new file mode 100644 index 0000000..bd754b1 --- /dev/null +++ b/data/Applications/BlogApp/WebLinks.txt @@ -0,0 +1,8 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="WebTool"}% +%STARTINCLUDE%%DBCALL{"Applications.RenderSideBar"}%%STOPINCLUDE% + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="WebTool"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Navigation for the NatSkin WebSideBar"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% diff --git a/data/Applications/BlogApp/WebNotify.txt b/data/Applications/BlogApp/WebNotify.txt new file mode 100644 index 0000000..f94d020 --- /dev/null +++ b/data/Applications/BlogApp/WebNotify.txt @@ -0,0 +1,22 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +---+ %TOPIC% + +This is a subscription service to be automatically notified by e-mail when topics change in this *%BASEWEB%* 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 %SYSTEMWEB%.WikiName in alphabetical order to this list: + +Format: + * [ webname . ] wikiName - SMTP mail address + * [ webName . ] wikiName + * SMTP mail address + * SMTP mail address : topics + * [ webname . ] wikiName : topics + + + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="WebTool"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="WebNotify"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="EMail subscription service for the %25WEB%25 web"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% diff --git a/data/Applications/BlogApp/WebPreferences.txt b/data/Applications/BlogApp/WebPreferences.txt new file mode 100644 index 0000000..3ff4be8 --- /dev/null +++ b/data/Applications/BlogApp/WebPreferences.txt @@ -0,0 +1,31 @@ +%META:TOPICINFO{author="micha" comment="save topic" date="1325757896" format="1.1" reprev="5" version="5"}% +%TOC% + +---+++ Naming +Text to be displayed on the sitemap and in the headerbar describing this web +using a kind of tagline: + * Set WEBSUMMARY = Blogging application for Foswiki + +---++ !AutoTemplatePlugin settings + * Set VIEW_TEMPLATE_RULES = + .+\..+Category => Applications.BlogApp.CategoryView, + WebSearch.* => Applications.BlogApp.BlogSearchView + +---+++ Access rights + * Set #DENYWEBVIEW = + * Set #ALLOWWEBVIEW = + * Set #DENYWEBCHANGE = + * Set ALLOWWEBCHANGE = %USERSWEB%.AdminGroup + * Set ALLOWTOPICCHANGE = %USERSWEB%.AdminGroup + +---+++ Misc +Definition of DataForms: + * Set WEBFORMS = Applications.ApplicationTopic, Applications.TopicStub, Applications.WikiTopic + * Set CLASSIFICATIONPLUGIN_AUTOREPARENT = on + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="ApplicationTopic, WebTool"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="c" title="Summary" value="Preferences of the %25WEB%25 web"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% diff --git a/data/Applications/BlogApp/WebRss.txt b/data/Applications/BlogApp/WebRss.txt new file mode 100644 index 0000000..ca7b5ee --- /dev/null +++ b/data/Applications/BlogApp/WebRss.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% + +%IF{ "$'URLPARAM{search}'!=''" then="<nop>%WIKITOOLNAME% search results for <nop>%URLPARAM{search}%" else="<nop>%WIKITOOLNAME%'s <nop>%WEB% web"}% + %SCRIPTURL{"view"}%/%WEB% + %MAKETEXT{"The [_1] web of Foswiki, the Free and Open Source Wiki." args="%WEB%"}% +%INCLUDE{"%SYSTEMWEB%.WebRssBase"}% diff --git a/data/Applications/BlogApp/WebSearch.txt b/data/Applications/BlogApp/WebSearch.txt new file mode 100644 index 0000000..cb819a2 --- /dev/null +++ b/data/Applications/BlogApp/WebSearch.txt @@ -0,0 +1,3 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="WebHome"}% +%INCLUDE{"%SYSTEMWEB%.WebSearch"}% \ No newline at end of file diff --git a/data/Applications/BlogApp/WebSearchAdvanced.txt b/data/Applications/BlogApp/WebSearchAdvanced.txt new file mode 100644 index 0000000..ac7236e --- /dev/null +++ b/data/Applications/BlogApp/WebSearchAdvanced.txt @@ -0,0 +1,3 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="WebSearch"}% +%INCLUDE{"%SYSTEMWEB%.WebSearchAdvanced"}% \ No newline at end of file diff --git a/data/_BlogPlugin/WebStatistics.txt b/data/Applications/BlogApp/WebStatistics.txt similarity index 58% rename from data/_BlogPlugin/WebStatistics.txt rename to data/Applications/BlogApp/WebStatistics.txt index 1f9bb97..a224658 100644 --- a/data/_BlogPlugin/WebStatistics.txt +++ b/data/Applications/BlogApp/WebStatistics.txt @@ -1,23 +1,17 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130239958" format="1.1" version="1.1"}% +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% %META:TOPICPARENT{name="WebHome"}% ----++ Statistics for %WEB% Web +---++ Statistics for %BASEWEB% Web | *Month:* | *Topic
    views:* | *Topic
    saves:* | *File
    uploads:* | *Most popular
    topic views:* | *Top contributors for
    topic save and uploads:* | | | | | | | | __Notes:__ - * Do not edit this topic, it is updated automatically. (You can also force an update) + * Do not edit this topic, it is updated automatically. (You can also force an update) * %SYSTEMWEB%.CompleteDocumentation 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. - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Statistics on the %25WEB%25 web"}% +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="WebTool"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Statistics"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% diff --git a/data/Applications/BlogApp/WebTool.txt b/data/Applications/BlogApp/WebTool.txt new file mode 100644 index 0000000..877a184 --- /dev/null +++ b/data/Applications/BlogApp/WebTool.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="TopicTypes for topics on the administrative level"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.WebTool"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/WebTopicList.txt b/data/Applications/BlogApp/WebTopicList.txt new file mode 100644 index 0000000..eab99cf --- /dev/null +++ b/data/Applications/BlogApp/WebTopicList.txt @@ -0,0 +1,16 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%META:TOPICPARENT{}% + +%~~ DBQUERY{ +~~~ format=" $index +~~~ $topic" +~~~ }% + + +%META:FORM{name="Applications.ApplicationTopic"}% +%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="WebTool"}% +%META:FIELD{name="Summary" attributes="M" title="Summary" value="List of all topics in this web"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:PREFERENCE{name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Set" value="WebTopicListView"}% diff --git a/data/Applications/BlogApp/WebTopicViewTemplate.txt b/data/Applications/BlogApp/WebTopicViewTemplate.txt new file mode 100644 index 0000000..8b51eb8 --- /dev/null +++ b/data/Applications/BlogApp/WebTopicViewTemplate.txt @@ -0,0 +1,22 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%STARTSECTION{name="message"}% +---+ Warning: this page does not exist. + +*Do you want to create '%BASETOPIC%'?* + +
    + + + + + + + +
    +
    + +Contact %WIKIWEBMASTER% +if you have any questions. + + +%ENDSECTION{name="message"}% diff --git a/data/Applications/BlogApp/WikiApplication.txt b/data/Applications/BlogApp/WikiApplication.txt new file mode 100644 index 0000000..008d909 --- /dev/null +++ b/data/Applications/BlogApp/WikiApplication.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="TopicType of a WikiApplication"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.WikiApplication"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/WikiTopic.txt b/data/Applications/BlogApp/WikiTopic.txt new file mode 100644 index 0000000..bb82587 --- /dev/null +++ b/data/Applications/BlogApp/WikiTopic.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1268484865" format="1.1" version="1.1"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" attributes="" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="TopicType of a normal topic"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.WikiTopic"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% diff --git a/data/Applications/BlogApp/WikiWorkbenchContribCategory.txt b/data/Applications/BlogApp/WikiWorkbenchContribCategory.txt new file mode 100644 index 0000000..edf66a5 --- /dev/null +++ b/data/Applications/BlogApp/WikiWorkbenchContribCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345516" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="WikiWorkbenchContrib"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/XmlRpcContribCategory.txt b/data/Applications/BlogApp/XmlRpcContribCategory.txt new file mode 100644 index 0000000..62044a3 --- /dev/null +++ b/data/Applications/BlogApp/XmlRpcContribCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345529" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="XmlRpcContrib"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Applications/BlogApp/ZonePluginCategory.txt b/data/Applications/BlogApp/ZonePluginCategory.txt new file mode 100644 index 0000000..071ae3f --- /dev/null +++ b/data/Applications/BlogApp/ZonePluginCategory.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1278345537" format="1.1" version="1"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="ZonePlugin"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value="SoftwareCategory"}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% diff --git a/data/Main/BlogAdminGroup.txt b/data/Main/BlogAdminGroup.txt index 8731fa3..c8a8783 100644 --- a/data/Main/BlogAdminGroup.txt +++ b/data/Main/BlogAdminGroup.txt @@ -1,9 +1,9 @@ -%META:TOPICINFO{author="ProjectContributor" date="1131380868" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="WikiGroups"}% +%META:TOPICINFO{author="micha" comment="reprev" date="1282204230" format="1.1" reprev="2" version="2"}% +%META:TOPICPARENT{name="Main.WikiGroups"}% ---+!! BlogAdminGroup - * Set GROUP = AdminGroup - * Set ALLOWTOPICCHANGE = BlogAdminGroup - -__Related topics:__ %WIKIUSERSTOPIC%, WikiGroups, %SYSTEMWEB%.AccessControl, BlogAuthorGroup + * Set GROUP = Main.AdminGroup + * Set ALLOWTOPICCHANGE = MainBlogAdminGroup +__Related topics:__ %WIKIUSERSTOPIC%, Main.WikiGroups, %SYSTEMWEB%.AccessControl, Main.BlogAuthorGroup +%META:TOPICMOVED{by="micha" date="1282204230" from="Home.BlogAdminGroup" to="Trash.HomeBlogAdminGroup"}% diff --git a/data/Main/BlogAuthorGroup.txt b/data/Main/BlogAuthorGroup.txt index 9e42a9f..d82458b 100644 --- a/data/Main/BlogAuthorGroup.txt +++ b/data/Main/BlogAuthorGroup.txt @@ -2,7 +2,7 @@ %META:TOPICPARENT{name="WikiGroups"}% ---+!! BlogAuthorGroup - * Set GROUP = + * Set GROUP = micha, test_group * Set ALLOWTOPICCHANGE = BlogAdminGroup __Related topics:__ %WIKIUSERSTOPIC%, WikiGroups, %SYSTEMWEB%.AccessControl, BlogAdminGroup diff --git a/data/System/BlogFactory.txt b/data/System/BlogFactory.txt index 6e4e2a2..0e9cb3e 100644 --- a/data/System/BlogFactory.txt +++ b/data/System/BlogFactory.txt @@ -65,17 +65,17 @@ See also: %SYSTEMWEB%.BlogPlugin, %SYSTEMWEB%.BlogUp -%IFDEFINEDTHEN{"%URLPARAM{"blogfactorymsg"}%" glue="off"}% +%IF{ + "'$URLPARAM{blogfactorymsg}'!=''" + then="
    -%URLPARAM{"blogfactorymsg"}% +$percntURLPARAM{\"blogfactorymsg\"}$percnt - +
    -
    -%FIDEFINED% +" +}% ---++ Known blogs on %WIKITOOLNAME% diff --git a/data/System/BlogPlugin.txt b/data/System/BlogPlugin.txt index ad48faa..f56192e 100644 --- a/data/System/BlogPlugin.txt +++ b/data/System/BlogPlugin.txt @@ -1,80 +1,15 @@ %META:TOPICINFO{author="ProjectContributor" date="1139389084" format="1.1" version="1.1"}% - ---+!! %TOPIC% %TOC% -This is the supplemental plugin for the BlogUp WikiApplication. +This is the supplemental plugin for the !BlogApp WikiApplication. It bundles some of the features found in common blogging applications that are very hard or even impossible to implement using TML (Topic Markup Language). -Note, that most of the tags are tightly related to the -data model of BlogUp, i.e. it relies on its TopicType and DataForm -definitions. Shortcut: want to create a blog ... use the BlogFactory. ---++ Syntax Rules ----+++ CITEBLOG -Format a link to another BlogEntry displaying its headline and date. - -*Syntax:* - -| *%CITEBLOG{"<topic>"}%* || -| ="<topic>"= | name of a BlogEntry topic, e.g. BlogEntry0 | - -*Example:* - -=%CITEBLOG{"_BlogPlugin.BlogEntry0"}%= - -%CITEBLOG{"_BlogPlugin.BlogEntry0"}% - - ----+++ COUNTCOMMENTS -Count the BlogComments that refer to a given topic recursively, that is -the number of BlogComment topics that refer to a given BlogEntry and -each BlogComment referring to the BlogComment found so far. Reference -is expressed by the BlogRef formfield in the BlogCommentForm. - -*Syntax:* -| *%COUNTCOMMENTS{"<topic>" ... }%* || -| ="<topic>"= \ -| name of a BlogEntry or BlogComment topic, e.g. BlogEntry0 | -| =web="..."= \ -| web where to search for references; defaults to the \ - web specified as part of the "topic" parameter or the current one | -| =format="..."= \ -| format string used to display the count; \ - the variable $count is replaced by the calculated references; \ - defaults to "$count" | -| =single="..."= \ -| format string used to display a single hit; \ - defaults to the "format" value (see above) | -| =null="..."= \ -| format string used to display a zero hit; defaults to "0" | -| =hidenull="on,off"= \ -| if set to "on" nohting is displayed if no references where found; \ - defaults to "off" | -| =offset="..."= \ -| add an "offset" to the computed number of hits; so if offset="9" and \ - 11 references where found the $count is set to 20 | - -Following variables are expanded in format strings: - * $percnt: % sign - * $dollar: $ sign - * $n: newline - * $t: tab - * $nop: "empty string" - * $count: the calculated number of references (plus an optional offset) - - ---+++ PREVDOC, NEXTDOC Display the previous/next topic in an ordered set. These tags can be used to establish a navigation within a set of related topics @@ -93,137 +28,19 @@ using a "where" and an "order" clause which the given topic is supposed to be pa | =reverse="on,off"= \ | if set to on the sorting will be reversed, that is the logic of PREV and NEXT is inverted | - ----+++ RECENTCOMMENTS -Display an ordered list of most recent BlogComments, grouped by the -referred BlogEntry. - -*Syntax:* -| *%RECENTCOMMENTS{"<format>" ...}%* || -| ="<format>"= | format string used to display the hit results; \ - each hit is displayed using the given format | -| =header="..."= | format string to prepended to the list of hits being displayed | -| =footer="..."= | format string to appended to the list of hits being displayed | -| =separator="..."= | format string used to separate hits; \ - defaults top "$n"; the special separator "none" disables separation | -| =limit="..."= | restrict the number of hits being displayed; \ - defaults to "-1" which means unlimited | -| =age="..."= | restrict the age of comments being displayed; \ - values must be given in epoch seconds, e.g. 5184000 being ca. 2 months; \ - defaults to "0" which means unlimited | -| =category="..."= \ -| pattern that limits comments to those whose BlogEntries match the \ - SubjectCategory; defaults to ".*" | -| =author="..."= \ -| pattern that limits comments to those on BlogEntries from the given author \ - defaults to ".*" | - -(Each BlogEntry that is found given the above search parameters and limits -is called a hit.) - -Following variables are expanded in format strings: - * $percnt: % sign - * $dollar: $ sign - * $n: newline - * $t: tab - * $nop: "empty string" - * $count: the number of comments on the given BlogEntry - * $topic: the topic name of the referring BlogEntry, e.g. BlogEntry0 - * $web: the web where the hit was found - * $headline: the headline of the referring BlogEntry - * $commenter: a list of links to the comments in the format \ - [[BlogEntry0#BlogComment1][<author>]],... (author: name of - commenter) - * $date: date of the most recent comment on the current hit. - -See also the interface TopicFunction "RenderRecentComments". - ----+++ RELATEDENTRIES -Display a list of BlogEntries related to a given one. The Relationship -is manually encoded in the data model using the "Related" formfield. The -relation is computed transitively and reflexively ('til a configurable depth). -That is, two BlogEntries A and B are related if A points to B or vice versa -or A and B are connected by a series of related postings C1,...CN, where A is related -to C1 and B CN is related to B. - -*Syntax:* -| *%RELATEDENTRIES{"<topic>" ...}%* || -| ="<topic>"= | topic name of a BlogEntry related once are search for | -| =web="..."= | web where to search for related topics; \ - defaults to the web given with the <topic> parameter or the current one | -| =format="..."= | format string to display a hit;\ - defaults to "$topic" | -| =header="..."= | format string to prepended to the list of hits | -| =footer="..."= | format string to appended to the list of hits | -| =separator="..."= | format string used to separate hits; \ - defaults to "$n"; the special separator "none" disables separation | -| =depth="..."= | depth of recursion (the number of hops from posting A to posting B); \ - defaults to "2"; | - -Note, that large "depth" values will very soon include your complete blog archive. -The hit set also depends on the amount of direct relationships that you add to your -BlogEntries. So either use a low "depth" value and add more direct relations based on -your own judgment, or just specify one related entry and use a "depth" value of up to -3 for good results. - -Following variables are expanded in format strings: - * $percnt: % sign - * $dollar: $ sign - * $n: newline - * $t: tab - * $topic: topic name of a hit - * $web: web name where the hit was found - * $depth: distance to the given <topic> (depth in which this topic was found) - * $headline: headline of the related BlogEntry - -The relatedness feature here is a very naïve and purely manual one. -We'd like to semi-automate this task using some automatic classificator -on document similarities. Making use of weights following links is an option too to -improve the hit set quality. - -Read - * Wikipedia:Latent_semantic_analysis - * [[http://mitpress.mit.edu/catalog/item/default.asp?ttype=2&tid=3391][Foundations of Statistical Natural Language Processing]] - * [[http://www.perl.com/pub/a/2003/02/19/engine.html][Building a Vector Space Search Engine in Perl]] - * [[http://search.cpan.org/~mceglows/Search-VectorSpace-0.02/][Search-VectorSpace]] -And send me a patch if you've coded that into Foswiki ;). - ---++ Plugin Installation Instructions +%$INSTALL_INSTRUCTIONS% - * [[http://foswiki.org/pub/Extensions/%TOPIC%/%TOPIC%.zip][Download]] and install - all additionally required plugins listed in the - [[#Plugin_Info][dependencies information]] below - * Download the BlogPlugin ZIP file from the Plugin web (see below) - * Unzip ==%TOPIC%.zip== in your Foswiki installation directory. Content: - | *File:* | *Description:* | - | ==data/System/%TOPIC%.txt== | plugin topic | - | ==data/_BlogPlugin/*.txt== | blog template web | - | ==data/Main/BlogAdminGroup.txt== | blog admin group | - | ==data/Main/BlogAuthorGroup.txt== | blog author group | - | ==lib/Foswiki/Plugins/%TOPIC%.pm== | plugin perl module | - | ==lib/Foswiki/Plugins/%TOPIC%/Core.pm== | plugin core module | - | ==lib/Foswiki/Plugins/%TOPIC%/Factory.pm== | rest interface for the BlogFactory | - | ==lib/Foswiki/Plugins/%TOPIC%/WebDB.pm== | WebDB implementation for the DBCachePlugin | - * Open the Foswiki [[%SCRIPTURL{"configure"}%][configuration]] dialog, - enable the plugin and change the PluginsOrder to - _GluePlugin, SpreadSheetPlugin, IfDefinedPlugin, AliasPlugin_ - * Create a new Blog web using the _BlogPlugin template web - * Edit the Main.BlogAdminGroup and the Main.BlogAuthorGroup to match your needs. - * Optionally, run ==%TOPIC%_installer.pl== to automatically check and - install other Foswiki modules that this module depends on. You can also do - this step manually. - * Alternatively, manually make sure the dependencies listed in the table - below are resolved. - %$DEPENDENCIES% ---++ Plugin Info | Plugin Author: | Foswiki:Main.MichaelDaum | -| Copyright ©: | 2006, MichaelDaum@WikiRing.com | +| Copyright ©: | 2006-2011, http://michaeldaumconsulting.com | | License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) | -| Version: | v0.99 | +| Release: | %$RELEASE% | +| Version: | %$VERSION% | | Change History: |   | | 31 Aug 2006: | added NO_PREFS_IN_TOPIC;\ added Foswiki:Extensions/ImagePlugin support; \ @@ -391,4 +208,3 @@ And send me a patch if you've coded that into Foswiki ;). | Plugin Home: | Foswiki:Extensions/%TOPIC% | | Support: | Foswiki:Support/%TOPIC% | --- Foswiki:Main.MichaelDaum - 31 Aug 2006 diff --git a/data/System/BlogUp.txt b/data/System/BlogUp.txt index f253662..e71a9d6 100644 --- a/data/System/BlogUp.txt +++ b/data/System/BlogUp.txt @@ -167,18 +167,18 @@ See also: BlogPlugin, [[_BlogPlugin.WebHome][BlogUp template web]] -- Foswiki:Main/MichaelDaum - 08 Feb 2006 -%META:FILEATTACHMENT{name="BlogPluginSnap1.jpg" attachment="BlogPluginSnap1.jpg" attr="h" comment="FrontPage (Wordpress style)" date="1138825802" path="BlogPluginSnap1.jpg" size="123999" stream="BlogPluginSnap1.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap2.jpg" attachment="BlogPluginSnap2.jpg" attr="h" comment="FrontPage (MovableType style)" date="1138825888" path="BlogPluginSnap2.jpg" size="155286" stream="BlogPluginSnap2.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap3.jpg" attachment="BlogPluginSnap3.jpg" attr="h" comment="BlogSideBar on FrontPage showing the Archive, Categories and Blogroll" date="1138825903" path="BlogPluginSnap3.jpg" size="27394" stream="BlogPluginSnap3.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap4.jpg" attachment="BlogPluginSnap4.jpg" attr="h" comment="BlogEntry, sidebar links to related entries" date="1138825919" path="BlogPluginSnap4.jpg" size="81968" stream="BlogPluginSnap4.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap5.jpg" attachment="BlogPluginSnap5.jpg" attr="h" comment="NewsReader based on HeadlinesPlugin" date="1138825934" path="BlogPluginSnap5.jpg" size="96546" stream="BlogPluginSnap5.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap6.jpg" attachment="BlogPluginSnap6.jpg" attr="h" comment="BlogAuthors tools in sidebar" date="1138825949" path="BlogPluginSnap6.jpg" size="21132" stream="BlogPluginSnap6.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap7.jpg" attachment="BlogPluginSnap7.jpg" attr="h" comment="Implementation level showing list of TopicFunctions" date="1138825963" path="BlogPluginSnap7.jpg" size="102693" stream="BlogPluginSnap7.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap8.jpg" attachment="BlogPluginSnap8.jpg" attr="h" comment="Implementation level showing list of TopicTypes" date="1138825983" path="BlogPluginSnap8.jpg" size="111152" stream="BlogPluginSnap8.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap9.jpg" attachment="BlogPluginSnap9.jpg" attr="h" comment="Monthly BlogArchive and statistics" date="1138825996" path="BlogPluginSnap9.jpg" size="46207" stream="BlogPluginSnap9.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap10.jpg" attachment="BlogPluginSnap10.jpg" attr="h" comment="Administrative level showing list of SubjectCategories" date="1138826011" path="BlogPluginSnap10.jpg" size="75369" stream="BlogPluginSnap10.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap11.jpg" attachment="BlogPluginSnap11.jpg" attr="h" comment="Implementation level showing one TopicFunction" date="1138826025" path="BlogPluginSnap11.jpg" size="95257" stream="BlogPluginSnap11.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap12.jpg" attachment="BlogPluginSnap12.jpg" attr="h" comment="Customized WebSearch showing headlines and teasers" date="1138826039" path="BlogPluginSnap12.jpg" size="69360" stream="BlogPluginSnap12.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap13.jpg" attachment="BlogPluginSnap13.jpg" attr="h" comment="Editing a BlogEntry" date="1139946650" path="BlogPluginSnap13.jpg" size="111446" stream="BlogPluginSnap13.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap14.jpg" attachment="BlogPluginSnap14.jpg" attr="h" comment="Editing a BlogLink" date="1139946686" path="BlogPluginSnap14.jpg" size="53731" stream="BlogPluginSnap14.jpg" user="ProjectContributor" version="1.1"}% -%META:FILEATTACHMENT{name="BlogPluginSnap15.jpg" attachment="BlogPluginSnap15.jpg" attr="h" comment="Editing a posting" date="1141923830" path="BlogPluginSnap15.jpg" size="69566" stream="BlogPluginSnap15.jpg" user="ProjectContributor" version="1.1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap1.jpg" attachment="BlogPluginSnap1.jpg" attr="h" comment="FrontPage (Wordpress style)" date="1138825802" path="BlogPluginSnap1.jpg" size="123999" stream="BlogPluginSnap1.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap2.jpg" attachment="BlogPluginSnap2.jpg" attr="h" comment="FrontPage (MovableType style)" date="1138825888" path="BlogPluginSnap2.jpg" size="155286" stream="BlogPluginSnap2.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap3.jpg" attachment="BlogPluginSnap3.jpg" attr="h" comment="BlogSideBar on FrontPage showing the Archive, Categories and Blogroll" date="1138825903" path="BlogPluginSnap3.jpg" size="27394" stream="BlogPluginSnap3.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap4.jpg" attachment="BlogPluginSnap4.jpg" attr="h" comment="BlogEntry, sidebar links to related entries" date="1138825919" path="BlogPluginSnap4.jpg" size="81968" stream="BlogPluginSnap4.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap5.jpg" attachment="BlogPluginSnap5.jpg" attr="h" comment="NewsReader based on HeadlinesPlugin" date="1138825934" path="BlogPluginSnap5.jpg" size="96546" stream="BlogPluginSnap5.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap6.jpg" attachment="BlogPluginSnap6.jpg" attr="h" comment="BlogAuthors tools in sidebar" date="1138825949" path="BlogPluginSnap6.jpg" size="21132" stream="BlogPluginSnap6.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap7.jpg" attachment="BlogPluginSnap7.jpg" attr="h" comment="Implementation level showing list of TopicFunctions" date="1138825963" path="BlogPluginSnap7.jpg" size="102693" stream="BlogPluginSnap7.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap8.jpg" attachment="BlogPluginSnap8.jpg" attr="h" comment="Implementation level showing list of TopicTypes" date="1138825983" path="BlogPluginSnap8.jpg" size="111152" stream="BlogPluginSnap8.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap9.jpg" attachment="BlogPluginSnap9.jpg" attr="h" comment="Monthly BlogArchive and statistics" date="1138825996" path="BlogPluginSnap9.jpg" size="46207" stream="BlogPluginSnap9.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap10.jpg" attachment="BlogPluginSnap10.jpg" attr="h" comment="Administrative level showing list of SubjectCategories" date="1138826011" path="BlogPluginSnap10.jpg" size="75369" stream="BlogPluginSnap10.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap11.jpg" attachment="BlogPluginSnap11.jpg" attr="h" comment="Implementation level showing one TopicFunction" date="1138826025" path="BlogPluginSnap11.jpg" size="95257" stream="BlogPluginSnap11.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap12.jpg" attachment="BlogPluginSnap12.jpg" attr="h" comment="Customized WebSearch showing headlines and teasers" date="1138826039" path="BlogPluginSnap12.jpg" size="69360" stream="BlogPluginSnap12.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap13.jpg" attachment="BlogPluginSnap13.jpg" attr="h" comment="Editing a BlogEntry" date="1139946650" path="BlogPluginSnap13.jpg" size="111446" stream="BlogPluginSnap13.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap14.jpg" attachment="BlogPluginSnap14.jpg" attr="h" comment="Editing a BlogLink" date="1139946686" path="BlogPluginSnap14.jpg" size="53731" stream="BlogPluginSnap14.jpg" user="ProjectContributor" version="1"}% +%META:FILEATTACHMENT{name="BlogPluginSnap15.jpg" attachment="BlogPluginSnap15.jpg" attr="h" comment="Editing a posting" date="1141923830" path="BlogPluginSnap15.jpg" size="69566" stream="BlogPluginSnap15.jpg" user="ProjectContributor" version="1"}% diff --git a/data/_BlogPlugin/AdminTool.txt b/data/_BlogPlugin/AdminTool.txt deleted file mode 100644 index ef02fcb..0000000 --- a/data/_BlogPlugin/AdminTool.txt +++ /dev/null @@ -1,25 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1129905774" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicType"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -%DBCALL{"RenderNewTopicTypeForm" NAME="%TOPIC%" TEMPLATE="%TOPIC%Template" warn="off"}% -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% - -See also: %TOPIC%Template - - - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicType"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType for topics on the administrative level"}% -%META:TOPICMOVED{by="MichaelDaum" date="1124232260" from="Blog.AdminTools" to="Blog.AdminTool"}% diff --git a/data/_BlogPlugin/AdminToolTemplate.txt b/data/_BlogPlugin/AdminToolTemplate.txt deleted file mode 100644 index 7f442f4..0000000 --- a/data/_BlogPlugin/AdminToolTemplate.txt +++ /dev/null @@ -1,15 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1129018175" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create an AdminTool"}% diff --git a/data/_BlogPlugin/AtomViewTemplate.txt b/data/_BlogPlugin/AtomViewTemplate.txt deleted file mode 100644 index 7a010fb..0000000 --- a/data/_BlogPlugin/AtomViewTemplate.txt +++ /dev/null @@ -1,15 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142931486" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% - - -%DBCALL{"%WEB%.%TOPIC%" warn="off"}% -%{ - -}% -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="View for the atom feeds"}% diff --git a/data/_BlogPlugin/BaseRef.txt b/data/_BlogPlugin/BaseRef.txt deleted file mode 100644 index 30c63bb..0000000 --- a/data/_BlogPlugin/BaseRef.txt +++ /dev/null @@ -1,19 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1133297205" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="DataFormAttribute"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -See also: BlogRef - -%DBCALL{"RenderDataFormList" ATTR="%TOPIC%"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="DataFormAttribute"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Pointer to the start of a comment thread"}% diff --git a/data/_BlogPlugin/BlogAbout.txt b/data/_BlogPlugin/BlogAbout.txt deleted file mode 100644 index ca10ec5..0000000 --- a/data/_BlogPlugin/BlogAbout.txt +++ /dev/null @@ -1,47 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1134754113" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="AdminTool"}% ----++ About the author - -%STARTINCLUDE% -%RED%TODO: Edit the [[%WEB%.%TOPIC%][%TOPIC%]] page. %ENDCOLOR% -%STOPINCLUDE% - ----++ About this site -%RED%TODO%ENDCOLOR% - ----++ News Feeds -%DBCALL{"WebSyndication"}% - ----++ Email Notification -This blog offers a subscription service to be automatically notified by e-mail -when topics change in this blog. 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 click -%REDDOT{"WebNotify" text="here" style="margin:0;padding:0;font-size:100%;"}% -and add your e-mail address or your %WIKITOOLNAME% username if you are a -[[%MAINWEB%.%WIKIUSERSTOPIC%][registered user]]. - ----++ Contact -%STARTINCLUDE% -%RED%TODO%ENDCOLOR% -%STOPINCLUDE% - ----++ Copyright -%WEBCOPYRIGHT% - - - -%META:FORM{name="BlogPageForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="BlogPage"}% -%META:FIELD{name="BlogAuthor" attributes="M" title="BlogAuthor" value="MichaelDaum"}% -%META:FIELD{name="Date" attributes="M" title="Date" value="15 Feb 2006 - 17:02"}% -%META:FIELD{name="Headline" attributes="M" title="Headline" value="About the %25WIKITOOLNAME%25 Blog"}% -%META:FIELD{name="SubjectCategory" attributes="" title="SubjectCategory" value=""}% -%META:FIELD{name="Related" attributes="" title="Related" value="BlogPage0"}% -%META:FIELD{name="State" attributes="" title="State" value="published"}% diff --git a/data/_BlogPlugin/BlogArchive.txt b/data/_BlogPlugin/BlogArchive.txt deleted file mode 100644 index ac47b98..0000000 --- a/data/_BlogPlugin/BlogArchive.txt +++ /dev/null @@ -1,23 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148336935" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="AdminTool"}% -%DBCALL{"RenderBlogArchive" MODE="%URLPARAM{"mode"}%" QUERY="%URLPARAM{"search"}%"}% - - - -%META:FORM{name="BlogPageForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="BlogPage"}% -%META:FIELD{name="BlogAuthor" attributes="M" title="BlogAuthor" value="MichaelDaum"}% -%META:FIELD{name="Date" attributes="M" title="Date" value="27 Feb 2006 - 18:43"}% -%META:FIELD{name="Headline" attributes="M" title="Headline" value="Blog Archive"}% -%META:FIELD{name="SubjectCategory" attributes="" title="SubjectCategory" value=""}% -%META:FIELD{name="Related" attributes="" title="Related" value=""}% -%META:FIELD{name="State" attributes="" title="State" value="unpublished"}% diff --git a/data/_BlogPlugin/BlogAuthor.txt b/data/_BlogPlugin/BlogAuthor.txt deleted file mode 100644 index 77d16e7..0000000 --- a/data/_BlogPlugin/BlogAuthor.txt +++ /dev/null @@ -1,21 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142175686" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicType"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -%DBCALL{"RenderNewTopicTypeForm" NAME="%TOPIC%" TEMPLATE="%TOPIC%Template" warn="off" FORM="BlogAuthorForm"}% -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% -%DBCALL{"RenderDataFormList" ATTR="%TOPIC%"}% - -See also: %TOPIC%Template, %MAINWEB%.BlogAuthorGroup, %TOPIC%Form - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicType, DataFormAttribute"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType used in BlogEntryForm to collect all BlogEntries of one author"}% diff --git a/data/_BlogPlugin/BlogAuthorForm.txt b/data/_BlogPlugin/BlogAuthorForm.txt deleted file mode 100644 index 070faaa..0000000 --- a/data/_BlogPlugin/BlogAuthorForm.txt +++ /dev/null @@ -1,23 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148405776" format="1.1" reprev="1.3" version="1.1"}% -%META:TOPICPARENT{name="DataForm"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -| *Name:*| *Type:* | *Size:* | *Values:* | *Tooltip message:* | *Attributes:* | -| TopicType | label | 1 | BlogAuthor | document type | | -| TopicDescription | text | 75 | | short description | | -| About | textarea | 80x4 | | detailed description, displayed in the "about" section in the sidebar | | - - -See also: %SYSTEMWEB%.DataForms - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="DataForm"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="DataForm for BlogAuthors"}% diff --git a/data/_BlogPlugin/BlogAuthorTemplate.txt b/data/_BlogPlugin/BlogAuthorTemplate.txt deleted file mode 100644 index 4ddfc2b..0000000 --- a/data/_BlogPlugin/BlogAuthorTemplate.txt +++ /dev/null @@ -1,11 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142179051" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create BlogAuthors"}% diff --git a/data/_BlogPlugin/BlogAuthorViewTemplate.txt b/data/_BlogPlugin/BlogAuthorViewTemplate.txt deleted file mode 100644 index f64b8b7..0000000 --- a/data/_BlogPlugin/BlogAuthorViewTemplate.txt +++ /dev/null @@ -1,21 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146302208" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"contentheader"}%%TMPL:END% -%TMPL:DEF{"content"}% -%DBCALL{"RenderBlogEntriesOfAuthor" - NAME="%TOPIC%" - SKIP="%URLPARAM{"skip" default=" 0"}%" - LIMIT="%URLPARAM{"limit" default="5"}%" -}% -%TMPL:END% %{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicView for BlogAuthors"}% diff --git a/data/_BlogPlugin/BlogComment.txt b/data/_BlogPlugin/BlogComment.txt deleted file mode 100644 index 1cc3b34..0000000 --- a/data/_BlogPlugin/BlogComment.txt +++ /dev/null @@ -1,33 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1136824970" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicType"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -A BlogComment is linked to the commented topic by the BlogRef field. - -See also: %TOPIC%Template, BlogCommentForm, RenderBlogComment - - -| *Name* | *Nr* | *On* | *Author* | *Created* | -%~~ DBQUERY{"TopicType=~'\bBlogComment\b'" order="createdate" reverse="on" -~~~ format="| [[$web.$topic][$topic]] -~~~ | $expand(Nr) -~~~ | $percntIFDEFINED{\"$expand(@BlogRef.Headline)\" -~~~ then=\"[[$web.$formfield(BlogRef)][$test]]\"}$percnt -~~~ | $expand(Name) -~~~ | $formatTime(createdate) -~~~ |" -~~~ }% - - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicType"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType for user comments"}% diff --git a/data/_BlogPlugin/BlogCommentForm.txt b/data/_BlogPlugin/BlogCommentForm.txt deleted file mode 100644 index 310b97f..0000000 --- a/data/_BlogPlugin/BlogCommentForm.txt +++ /dev/null @@ -1,29 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148405870" format="1.1" reprev="1.9" version="1.1"}% -%META:TOPICPARENT{name="DataForm"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -| *Name:*| *Type:* | *Size:* | *Values:* | *Tooltip message:* | *Attributes:* | -| TopicType | label | 1 | BlogComment | classifies this as a blog comment | | -| Name | text | 78 | | your name | M | -| EMail | text | 78 | | your email address | M | -| Url | text | 78 | | your homesite | | -| Headline | text | 78 | | headline of the blog comment | | -| Text | textarea | 80x10 | | your comment | M | -| BlogRef | text | 25 | | refering BlogEntry or BlogComment (Don't change) | M | -| BaseRef | text | 25 | | basic BlogEntry where a thread started (Don't change) | M | -| Nr | text | 25 | | running comment number (Don't change)| M | - -See also: BlogComment, BlogCommentTemplate, WebPreferences, RenderAddComment - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="DataForm"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="DataForm for BlogComments"}% diff --git a/data/_BlogPlugin/BlogCommentTemplate.txt b/data/_BlogPlugin/BlogCommentTemplate.txt deleted file mode 100644 index 805ce84..0000000 --- a/data/_BlogPlugin/BlogCommentTemplate.txt +++ /dev/null @@ -1,15 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139652449" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% - -%STARTSECTION{type="templateonly"}% - -%ENDSECTION{type="templateonly"}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template for BlogComments"}% diff --git a/data/_BlogPlugin/BlogCommentViewTemplate.txt b/data/_BlogPlugin/BlogCommentViewTemplate.txt deleted file mode 100644 index 8943e29..0000000 --- a/data/_BlogPlugin/BlogCommentViewTemplate.txt +++ /dev/null @@ -1,19 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146303832" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"contentheader"}%%TMPL:END% -%TMPL:DEF{"content"}% -%DBCALL{"RenderBlogComment" NAME="%TOPIC%"}% -%DBCALL{"RenderBlogComments" NAME="%TOPIC%"}% -%DBCALL{"RenderAddComment"}% -%TMPL:END% %{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicView for BlogComments"}% diff --git a/data/_BlogPlugin/BlogDev.txt b/data/_BlogPlugin/BlogDev.txt deleted file mode 100644 index 866ca01..0000000 --- a/data/_BlogPlugin/BlogDev.txt +++ /dev/null @@ -1,11 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142028544" format="1.1" version="1.1"}% - -%META:FORM{name="SubjectCategoryForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="FrontPage, SubjectCategory"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Development information about blogging on the %25WIKITOOLNAME%25"}% -%META:FIELD{name="Comment" attributes="" title="Comment" value=""}% diff --git a/data/_BlogPlugin/BlogEntry.txt b/data/_BlogPlugin/BlogEntry.txt deleted file mode 100644 index 7a0ff36..0000000 --- a/data/_BlogPlugin/BlogEntry.txt +++ /dev/null @@ -1,46 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1132679611" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicType"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -%DBCALL{"RenderNewBlogEntryButton" TEXT="New Posting" warn="off"}% - ----++ List of all BlogEntries - -
    -| *Date* | *Headline* | *Category* | *Tag* | -%~~ DBQUERY{"TopicType='BlogEntry'" order="createdate" reverse="on" -~~~ format=" -~~~ | $formatTime(createdate) -~~~ | [[$web.$topic][$formfield(Headline)]]$percntREDDOT{\"$web.$topic\"}$percnt -~~~ $percntIFDEFINED{\"$formfield(State)\" as=\"unpublished\" -~~~ then=\"(unpublished)\" -~~~ }$percnt -~~~ | $percntFORMATLIST{\"$formfield(SubjectCategory)\" sort=\"on\" -~~~ format=\"[[$web.$1][$1]]\" sort=\"on\" -~~~ }$percnt -~~~ | $percntFORMATLIST{\"$formfield(BlogTag)\" sort=\"on\" -~~~ split=\"[,\s:\d]+\" exclude=\"^$\" -~~~ format=\"$1\" -~~~ }$percnt -~~~ |" -~~~ }% -
    -~~~ -
    - -See also: %TOPIC%Template, BlogEntryForm - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicType"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType to create blog entries"}% diff --git a/data/_BlogPlugin/BlogEntry0.txt b/data/_BlogPlugin/BlogEntry0.txt deleted file mode 100644 index 9150677..0000000 --- a/data/_BlogPlugin/BlogEntry0.txt +++ /dev/null @@ -1,20 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1153485422" format="1.1" version="1.1"}% - - -%META:FORM{name="BlogEntryForm"}% -%META:FIELD{name="TopicType" attributes="" title="TopicType" value="BlogEntry"}% -%META:FIELD{name="BlogAuthor" attributes="M" title="BlogAuthor" value="MichaelDaum"}% -%META:FIELD{name="Date" attributes="M" title="Date" value="20 Aug 2005 - 11:38"}% -%META:FIELD{name="Headline" attributes="" title="Headline" value="Welcome to BlogUp"}% -%META:FIELD{name="Teaser" attributes="" title="Teaser" value="This is your first posting in this %25WEB%25. Please delete or disable it after reading.%0d%0a"}% -%META:FIELD{name="Text" attributes="" title="Text" value="Before you start there might be some additional things to consider.%0d%0a%0d%0a*Configuration*:%0d%0a * If you created this blog using the [[%25SYSTEMWEB%25.BlogFactory][BlogFactory]]%0d%0a the [[WebPreferences][preferences]] of this blog %0d%0a should have been set to some reasonable values. Revising them might be%0d%0a a good idea in case you want to adjust them afterwards.%0d%0a * Describe your blog in more detail by editing the [[BlogAbout]] page.%0d%0a Watch out for the red TODOs.%0d%0a * Create a [[BlogAuthor]] page for each writer on this blog. %0d%0a * Create a set of [[SubjectCategory][categories]] to divide your blog into%0d%0a compartments. Don't create too many at the beginning. You may%0d%0a get away by copious tagging postings.%0d%0a%0d%0a*Feedback:*%0d%0a * If your blog is public then you might want to mail the%0d%0a [[mailto:MichaelDaum@WikiRing.com][BlogUp author]] to apply%0d%0a for being added to the BlogUp ring%0d%0a * Or just drop a line of feedback and incentives.%0d%0a * If you use the BlogUp software commercially then think about %0d%0a making a donation by filling up his [[http://jojowiki.dyndns.org/Main/Donnation][PayPal account]].%0d%0a * Be welcome to visit the [[http://jojowiki.dyndns.org][JojoWiki]] %0d%0a to read about latest news on the development.%0d%0a%0d%0aThanks. And have a nice time using BlogUp.%0d%0a%0d%0a[[mailto:MichaelDaum@WikiRing.com][Michael Daum]].%0d%0a%0d%0a"}% -%META:FIELD{name="BlogTag" attributes="" title="BlogTag" value="welcome"}% -%META:FIELD{name="SubjectCategory" attributes="M" title="SubjectCategory" value=""}% -%META:FIELD{name="Related" attributes="" title="Related" value=""}% -%META:FIELD{name="State" attributes="" title="State" value="published"}% diff --git a/data/_BlogPlugin/BlogEntryForm.txt b/data/_BlogPlugin/BlogEntryForm.txt deleted file mode 100644 index 26c5ba6..0000000 --- a/data/_BlogPlugin/BlogEntryForm.txt +++ /dev/null @@ -1,39 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148405905" format="1.1" reprev="1.1" version="1.1"}% -%META:TOPICPARENT{name="DataForm"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -
    -| *Name:*| *Type:* | *Size:* | *Values:* | *Tooltip message:* | *Attributes:* | -| TopicType | label | 1 | BlogEntry | classifies this as a blog entry | | -| BlogAuthor | text | 25 | | Author of the blog entry | M | -| Date | text | 25 | | Creation date | M | -| Headline | text | 78 | | headline of the blog entry | | -| Teaser | textarea | 80x4 | | teaser displayed in front pages | | -| Text | textarea | 80x15 | | client data | | -| BlogTag | text | 78 | | Blog entry tags | | -| | label | 3 |
    *Known tags:* %DBSTATS{"TopicType=~'\bBlogEntry\b' AND State='published'" field="BlogTag" format="$key" separator=", " pattern="(\w+)[\d+:]*"}%
    ||| -| SubjectCategory | checkbox | 3 | %DBQUERY{"TopicType=~'\bSubjectCategory\b'" separator=", "}% | Blog entry categories | | -| Related | select+multi+values | 10 | %DBQUERY{"(TopicType=~'\bBlogPage\b' OR TopicType=~'\bBlogEntry\b')" format="$percntENCODE{\"$formatTime(createdate): $expand(Headline or TopicDescription)\"}$percnt=$topic" separator=", " order="created" reverse="on" limit="100"}%| list of related blog pages | | -| State | select | 1 | published, unpublished | | | -| | label | 3 | *Upload*:
    • Attach image to the BlogImages collection
    • \ -
    • Add to your posting text %BR% <img class="alignright border" src="%BLOGIMAGES%/SomeImage.gif" />
    • \ -
    • use css classes alignright, alignleft, border to layout the image
    • \ -
    • \ - Use %IMAGE{"SomeImage.gif" type="frame" align="left" size="200px"}% to create a framed image floating \ - left, not exceed 200px. \ - See the %SYSTEMWEB%.ImagePlugin documentation for more information. \ -
    ||| - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="DataForm"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="DataForm for BlogEntries"}% -%META:TOPICMOVED{by="MichaelDaum" date="1129136731" from="Blog.BlogForm" to="Blog.BlogEntryForm"}% diff --git a/data/_BlogPlugin/BlogEntryTemplate.txt b/data/_BlogPlugin/BlogEntryTemplate.txt deleted file mode 100644 index 7d4bf4c..0000000 --- a/data/_BlogPlugin/BlogEntryTemplate.txt +++ /dev/null @@ -1,17 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1143533601" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% - -%STARTSECTION{type="templateonly"}% - -%ENDSECTION{type="templateonly"}% -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create BlogEntries"}% diff --git a/data/_BlogPlugin/BlogEntryViewTemplate.txt b/data/_BlogPlugin/BlogEntryViewTemplate.txt deleted file mode 100644 index 7c3f655..0000000 --- a/data/_BlogPlugin/BlogEntryViewTemplate.txt +++ /dev/null @@ -1,20 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146303376" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"contentheader"}%%TMPL:END% -%TMPL:DEF{"content"}% -%DBCALL{"RenderBlogEntry" NAME="%TOPIC%"}% - -%DBCALL{"RenderBlogComments" NAME="%TOPIC%"}% -%DBCALL{"RenderAddComment"}% -%DBCALL{"RenderGoogleAdsense"}% %TMPL:END% %{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicView for BlogEntries"}% diff --git a/data/_BlogPlugin/BlogHelpText.txt b/data/_BlogPlugin/BlogHelpText.txt deleted file mode 100644 index 6e44932..0000000 --- a/data/_BlogPlugin/BlogHelpText.txt +++ /dev/null @@ -1,95 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1141985800" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="WebHome"}% ----+!! %TOPIC% -%FORMFIELD{"TopicDescription"}% - -See also: BlogAbout - -%TOC% - ----++ Sidebar descriptions ----+++ Default section - -%STARTSECTION{"Default"}% %DBCALL{"BlogAbout"}% %ENDSECTION{"Default"}% - - ----+++ Entry section - -%STARTSECTION{"Entry"}% %DBCALL{"BlogAbout"}% %ENDSECTION{"Entry"}% - - ----+++ Page section -%STARTSECTION{"Page"}% -You are in the page section consisting of all the [[BlogPages]] that -exist outside the chronological sortion of BlogEntries but are special -WikiTopics with respect to this application -%ENDSECTION{"Page"}% - ----+++ Admin section -%STARTSECTION{"Admin"}% -You are in the administrative and implementation section of this Blog which the -%BASETOPIC% topic is part of. To explore this level you might start at the -TopicTypes, TopicFunctions or the AdminTools. -%ENDSECTION{"Admin"}% - ----+++ Aggregation section -%STARTSECTION{"Aggregation"}% -You are in the aggregations section, lots of [[NewsFeeds][nice feeds]]. Note, -that you have to visit the syndicated sites to comment. -%ENDSECTION{"Aggregation"}% - ----+++ Archive section -%STARTSECTION{"Archive"}% -You are in the archive section. This is the complete collection of all -articles that have been posted here. - -You are currently browsing the archive in %URLPARAM{"mode" default="chron"}% -mode. -%ENDSECTION{"Archive"}% -%STARTSECTION{"Archive2"}% -
    -The %WEB% Archive may be used in four modes that differ in the -way the data is made accessible: - CHRON: this is a chronological way of browsing the archive; select a year - and a month to restrict the list of postings to that timespan. - CAT: use the CAT mode to list postings in each SubjectCategory - TAG: list postings by exploring their BlogTags - LEX: retrieve postings by exploring most frequently used words -The CAT, TAG, and LEX modes use tag clouds to visualize the frequency of the -cateogries, tags and words respectively. -
    -%ENDSECTION{"Archive2"}% - ----+++ Category section -%STARTSECTION{"Category"}% -You are visiting this blog by category, that is all postings here are filed -into the %BASETOPIC% category. -%ENDSECTION{"Category"}% - ----+++ Image section -%STARTSECTION{"Image"}% -You are in the image section of this blog. -%ENDSECTION{"Image"}% - - ----+++ Nosidebar section -%STARTSECTION{"Nosidebar"}% %ENDSECTION{"Nosidebar"}% - ----++ Messages - ----+++ Unpublished -*Parameter*: - * NAME: the item which is unpublished -%STARTSECTION{"Unpublished"}% %RED%This %NAME% is unpublished.%ENDCOLOR% %ENDSECTION{"Unpublished"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Help texts used in this blog"}% -%META:TOPICMOVED{by="MichaelDaum" date="1139232635" from="Blog.HelpText" to="Blog.BlogHelpText"}% diff --git a/data/_BlogPlugin/BlogImages.txt b/data/_BlogPlugin/BlogImages.txt deleted file mode 100644 index 8d3bb5b..0000000 --- a/data/_BlogPlugin/BlogImages.txt +++ /dev/null @@ -1,16 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1149343314" format="1.1" reprev="1.9" version="1.1"}% -%META:TOPICPARENT{name="AdminTool"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -%DBCALL{"RenderImageTools" MODE="%URLPARAM{"mode" default="gallery"}%" warn="off"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Image Resources"}% diff --git a/data/_BlogPlugin/BlogLink.txt b/data/_BlogPlugin/BlogLink.txt deleted file mode 100644 index e03cff0..0000000 --- a/data/_BlogPlugin/BlogLink.txt +++ /dev/null @@ -1,26 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130178625" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicType"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -BlogLinks are collected in the Blogroll in the sidebar. If a BlogLink has got -[[NewsFeeds][NewsFeed]] information we render an aggregation of that here using -the RenderBlogLink TopicFunction. - -%DBCALL{"RenderNewBlogLinkButton" TEXT="New Link" warn="off"}% -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% - -See also: %TOPIC%Template, %TOPIC%Form - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicType, DataFormAttribute"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType that links to another news or blog site."}% -%META:TOPICMOVED{by="MichaelDaum" date="1130169705" from="Blog.NewsFeed" to="Blog.BlogLink"}% diff --git a/data/_BlogPlugin/BlogLinkForm.txt b/data/_BlogPlugin/BlogLinkForm.txt deleted file mode 100644 index 303ef3a..0000000 --- a/data/_BlogPlugin/BlogLinkForm.txt +++ /dev/null @@ -1,31 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148405946" format="1.1" reprev="1.13" version="1.1"}% -%META:TOPICPARENT{}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -| *Name:*| *Type:* | *Size:* | *Values:* | *Tooltip message:* | *Attributes:* | -| TopicType | label | 1 | BlogLink | | M | -| Name | text | 78 | | site name | M | -| Headline | text | 78 | | see also channel description | | -| Url | text | 78 | | feed url | | -| Feed | text | 78 | | feed url | | -| Limit | text | 4 | | maximum number of articles in feed to display | | -| Refresh | text | 4 | | feed refresh rate in minutes for caching feed; "0" for no caching | | -| SubjectCategory | checkbox | 3 | %DBQUERY{"TopicType=~'\bSubjectCategory\b'" separator=", "}% | BlogLink categories | | -| BlogAuthor | text | 78 | | user of this BlogLink | -| Comment | textarea | 80x4 | | informal description | | - - -See also: %SYSTEMWEB%.DataForms, BlogLink, BlogLinkTemplate - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="DataForm"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="DataForm for BlogLinks"}% -%META:TOPICMOVED{by="MichaelDaum" date="1130169768" from="Blog.NewsFeedForm" to="Blog.BlogLinkForm"}% diff --git a/data/_BlogPlugin/BlogLinkTemplate.txt b/data/_BlogPlugin/BlogLinkTemplate.txt deleted file mode 100644 index 0338e48..0000000 --- a/data/_BlogPlugin/BlogLinkTemplate.txt +++ /dev/null @@ -1,18 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1134585400" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% - -%STARTSECTION{type="templateonly"}% - -%ENDSECTION{type="templateonly"}% -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create an BlogLink"}% diff --git a/data/_BlogPlugin/BlogLinkViewTemplate.txt b/data/_BlogPlugin/BlogLinkViewTemplate.txt deleted file mode 100644 index b53fbce..0000000 --- a/data/_BlogPlugin/BlogLinkViewTemplate.txt +++ /dev/null @@ -1,17 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146822481" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"contentheader"}%%TMPL:END% -%TMPL:DEF{"content"}% -%DBCALL{"RenderBlogLink" NAME="%TOPIC%" LIMIT="%FORMFIELD{"Limit"}%"}% -%TMPL:END% %{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicView for BlogLinks"}% diff --git a/data/_BlogPlugin/BlogPage.txt b/data/_BlogPlugin/BlogPage.txt deleted file mode 100644 index e402ab6..0000000 --- a/data/_BlogPlugin/BlogPage.txt +++ /dev/null @@ -1,42 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139251135" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicType"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -BlogPages are pages that exist outside the normal chronological stream of BlogEntries -but behave similar in several respects. Basically they are a kind of WikiTopics but -have a SubjectCategory property and an (optional) discussion thread attached to them. -Some topics in the %WEB% web are no BlogPages but just plain WikiTopics as they -are not part of a specific SubjectCategory as such. Separating BlogPages from -the notion of WikiTopics prevents some situations that were rather artificial. The -distinction will allow us to keep some topics of type WikiTopic out of the way when -we want to deal with BlogPages for this weblog application. - -
    -
    - - - - - - - - - - -
    -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% - -See also: %TOPIC%Template, %TOPIC%Form, RenderNewBlogPageButton - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicType"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType of a tagged WikiTopic"}% diff --git a/data/_BlogPlugin/BlogPageForm.txt b/data/_BlogPlugin/BlogPageForm.txt deleted file mode 100644 index acf33d9..0000000 --- a/data/_BlogPlugin/BlogPageForm.txt +++ /dev/null @@ -1,27 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148405972" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="DataForm"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -| *Name:*| *Type:* | *Size:* | *Values:* | *Tooltip message:* | *Attributes:* | -| TopicType | label | 1 | BlogPage | | | -| BlogAuthor | text | 25 | | Author of the blog page | M | -| Date | text | 25 | | Creation date | M | -| Headline | text | 78 | | headline of the blog page | | -| SubjectCategory | checkbox | 3 | %DBQUERY{"TopicType=~'\bSubjectCategory\b'" separator=", "}% | blog page categories | | -| Related | select+multi+values | 5 | %DBQUERY{"(TopicType=~'\bBlogPage\b' OR TopicType=~'\bBlogEntry\b') AND State='published'" format="$percntENCODE{\"$formatTime(createdate): $expand(Headline or TopicDescription)\"}$percnt=$topic" separator=", " order="created" reverse="on" limit="100"}%| list of related blog pages | | -| State | select | 1 | published, unpublished | | | - - -See also: %SYSTEMWEB%.DataForms - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="DataForm"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="DataForm for BlogPages"}% diff --git a/data/_BlogPlugin/BlogPageTemplate.txt b/data/_BlogPlugin/BlogPageTemplate.txt deleted file mode 100644 index b160074..0000000 --- a/data/_BlogPlugin/BlogPageTemplate.txt +++ /dev/null @@ -1,37 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142072713" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% -%DBCALL{"RenderBlogPage" NAME="%TOPIC%"}% - - - - - - - - - - - - - - - - - - - - -%STARTSECTION{type="templateonly"}% - -%ENDSECTION{type="templateonly"}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create BlogPages"}% diff --git a/data/_BlogPlugin/BlogRef.txt b/data/_BlogPlugin/BlogRef.txt deleted file mode 100644 index 81f7591..0000000 --- a/data/_BlogPlugin/BlogRef.txt +++ /dev/null @@ -1,20 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1127149651" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="DataFormAttribute"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -%DBCALL{"RenderDataFormList" ATTR="%TOPIC%"}% - - -See also: BlogComment, BlogCommentTemplate - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="DataFormAttribute"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Name of the topic this one is a comment to (comment relation)"}% -%META:TOPICMOVED{by="MichaelDaum" date="1124461091" from="Blog.BlogReference" to="Blog.BlogRef"}% diff --git a/data/_BlogPlugin/BlogTag.txt b/data/_BlogPlugin/BlogTag.txt deleted file mode 100644 index e692b84..0000000 --- a/data/_BlogPlugin/BlogTag.txt +++ /dev/null @@ -1,19 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1141831803" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="DataFormAttribute"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -| *Name* | *Type* | *Tooltip message* | - -%DBCALL{"RenderDataFormList" ATTR="%TOPIC%"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="DataFormAttribute"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Formfield used in taggable topics"}% diff --git a/data/_BlogPlugin/DataForm.txt b/data/_BlogPlugin/DataForm.txt deleted file mode 100644 index bc848b9..0000000 --- a/data/_BlogPlugin/DataForm.txt +++ /dev/null @@ -1,23 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139335266" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -DataForms add structured information to foswiki topics. - -See also: %TOPIC%Template, WebPreferences, DataFormAttributes, %SYSTEMWEB%.DataForms - -%DBCALL{"RenderNewTopicTypeForm" NAME="%TOPIC%" TEMPLATE="%TOPIC%Template" warn="off"}% -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool, TopicType"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType of %25SYSTEMWEB%25.DataForms"}% diff --git a/data/_BlogPlugin/DataFormAttribute.txt b/data/_BlogPlugin/DataFormAttribute.txt deleted file mode 100644 index e75ebb8..0000000 --- a/data/_BlogPlugin/DataFormAttribute.txt +++ /dev/null @@ -1,29 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1132096902" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicType"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -
    - - - - - -
    - - -
    - - -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% - -See also: %TOPIC%Template - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicType"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType for an attribute description of a DataForm"}% diff --git a/data/_BlogPlugin/DataFormAttributeTemplate.txt b/data/_BlogPlugin/DataFormAttributeTemplate.txt deleted file mode 100644 index 8f0e1ff..0000000 --- a/data/_BlogPlugin/DataFormAttributeTemplate.txt +++ /dev/null @@ -1,19 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1124455776" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -| *Name* | *Type* | *Tooltip message* | - -%DBCALL{"RenderDataFormList" ATTR="%TOPIC%"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create DataFormAttributes"}% - diff --git a/data/_BlogPlugin/DataFormTemplate.txt b/data/_BlogPlugin/DataFormTemplate.txt deleted file mode 100644 index 7f31038..0000000 --- a/data/_BlogPlugin/DataFormTemplate.txt +++ /dev/null @@ -1,19 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130150138" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -| *Name:*| *Type:* | *Size:* | *Values:* | *Tooltip message:* | *Attributes:* | - - - -See also: %SYSTEMWEB%.DataForms - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create DataForm topics"}% diff --git a/data/_BlogPlugin/FrontPage.txt b/data/_BlogPlugin/FrontPage.txt deleted file mode 100644 index 992c429..0000000 --- a/data/_BlogPlugin/FrontPage.txt +++ /dev/null @@ -1,23 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1132096867" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicType"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -%DBCALL{"RenderNewTopicTypeForm" NAME="%TOPIC%" TEMPLATE="%TOPIC%Template" warn="off"}% -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% - - - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicType"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType of pages that display a (sub)set of BlogEntries"}% diff --git a/data/_BlogPlugin/HiddenFormViewTemplate.txt b/data/_BlogPlugin/HiddenFormViewTemplate.txt deleted file mode 100644 index 9cfeab2..0000000 --- a/data/_BlogPlugin/HiddenFormViewTemplate.txt +++ /dev/null @@ -1,18 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142931446" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"contentheader"}%%TMPL:END% -%TMPL:DEF{"content"}% %STARTALIASAREA% -%TEXT% -%STOPALIASAREA% %TMPL:END%%{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="View to hide %25SYSTEMWEB%25.DataForms"}% -%META:TOPICMOVED{by="MichaelDaum" date="1127217314" from="Trash.HiddenFormViewTemplate" to="Blog.HiddenFormViewTemplate"}% diff --git a/data/_BlogPlugin/NatSkinSearchViewTemplate.txt b/data/_BlogPlugin/NatSkinSearchViewTemplate.txt deleted file mode 100644 index 2c561c8..0000000 --- a/data/_BlogPlugin/NatSkinSearchViewTemplate.txt +++ /dev/null @@ -1,54 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142931513" format="1.1" version="1.1"}% -%TMPL:INCLUDE{"searchbase"}% - -%TMPL:DEF{"contentheader"}%%TMPL:END% -%TMPL:DEF{"content"}% %SPLIT%Search: %SEARCHSTRING% -%SPLIT% - - - - - - -
    NameAuthorDate
    %REPEAT% -%CALC{"$SETM(incr, +1)"}% - - - - - - - - - -
    - - -%~~ DBQUERY{topic="%TOPICNAME%" web="%WEB%" -~~~ format="$expand(Headline or TopicDescription or Name or name)" -~~~ }% - - - - %AUTHOR% - - %TIME% - %REVISION% -
    - -%~~ DBQUERY{topic="%TOPICNAME%" web="%WEB%" -~~~ format="$expand(Teaser or Text)" -~~~ }% - - -
    %REPEAT% %SPLIT%
    Number of topics: %NTOPICS%
    %SPLIT% -%TMPL:END%%{ - -}% - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="View for natsearch"}% diff --git a/data/_BlogPlugin/NewsFeeds.txt b/data/_BlogPlugin/NewsFeeds.txt deleted file mode 100644 index b75dffb..0000000 --- a/data/_BlogPlugin/NewsFeeds.txt +++ /dev/null @@ -1,33 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148539223" format="1.1" reprev="1.17" version="1.1"}% -%META:TOPICPARENT{}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - - - -
    -%~~ DBQUERY{"TopicType=~'\bSubjectCategory\b'" -~~~ format=" -*~~ $percntDBCALL{\"RenderBlogLinksInCategory\" -~~~ CAT=\"$topic\" -~~~ PARAMS=\"cat=$topic\" -~~~ }$percnt" -~~~ }% -
    - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="BlogPage, WikiTopic"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="News Aggregation"}% diff --git a/data/_BlogPlugin/PatternSkinBlogAuthorViewTemplate.txt b/data/_BlogPlugin/PatternSkinBlogAuthorViewTemplate.txt deleted file mode 100644 index 829b2e0..0000000 --- a/data/_BlogPlugin/PatternSkinBlogAuthorViewTemplate.txt +++ /dev/null @@ -1,24 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146302208" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"textcontent"}% -%DBCALL{"RenderBlogEntriesOfAuthor" - NAME="%TOPIC%" - SKIP="%URLPARAM{"skip" default=" 0"}%" - LIMIT="%URLPARAM{"limit" default="5"}%" -}% -%TMPL:END% -%TMPL:DEF{"formatbottom"}%%TMPL:END% -%TMPL:DEF{"attachmentsatbottom"}%%TMPL:END% -%TMPL:DEF{"editraw"}%%TMPL:P{context="new_topic" then="create_topic" else="edit_topic"}%%TMPL:END% -%{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicView for BlogAuthors using PatternSkin"}% diff --git a/data/_BlogPlugin/PatternSkinBlogCommentViewTemplate.txt b/data/_BlogPlugin/PatternSkinBlogCommentViewTemplate.txt deleted file mode 100644 index 4727dcd..0000000 --- a/data/_BlogPlugin/PatternSkinBlogCommentViewTemplate.txt +++ /dev/null @@ -1,22 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146303832" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"textcontent"}% -%DBCALL{"RenderBlogComment" NAME="%TOPIC%"}% -%DBCALL{"RenderBlogComments" NAME="%TOPIC%"}% -%DBCALL{"RenderAddComment"}% -%TMPL:END% -%TMPL:DEF{"formatbottom"}%%TMPL:END% -%TMPL:DEF{"attachmentsatbottom"}%%TMPL:END% -%TMPL:DEF{"editraw"}%%TMPL:P{context="new_topic" then="create_topic" else="edit_topic"}%%TMPL:END% -%{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicView for BlogComments using PatternSkin"}% diff --git a/data/_BlogPlugin/PatternSkinBlogEntryViewTemplate.txt b/data/_BlogPlugin/PatternSkinBlogEntryViewTemplate.txt deleted file mode 100644 index 70fe552..0000000 --- a/data/_BlogPlugin/PatternSkinBlogEntryViewTemplate.txt +++ /dev/null @@ -1,22 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146303376" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"textcontent"}% -%DBCALL{"RenderBlogEntry" NAME="%TOPIC%"}% - -%DBCALL{"RenderBlogComments" NAME="%TOPIC%"}% -%DBCALL{"RenderAddComment"}% -%DBCALL{"RenderGoogleAdsense"}% %TMPL:END% -%TMPL:DEF{"formatbottom"}%%TMPL:END% -%TMPL:DEF{"attachmentsatbottom"}%%TMPL:END% -%TMPL:DEF{"editraw"}%%TMPL:P{context="new_topic" then="create_topic" else="edit_topic"}%%TMPL:END% -%{ - -}% -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicView for BlogEntries using PatternSkin"}% diff --git a/data/_BlogPlugin/PatternSkinBlogLinkViewTemplate.txt b/data/_BlogPlugin/PatternSkinBlogLinkViewTemplate.txt deleted file mode 100644 index cf24bfd..0000000 --- a/data/_BlogPlugin/PatternSkinBlogLinkViewTemplate.txt +++ /dev/null @@ -1,20 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146822481" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"textcontent"}% -%DBCALL{"RenderBlogLink" NAME="%TOPIC%" LIMIT="%FORMFIELD{"Limit"}%"}% -%TMPL:END% -%TMPL:DEF{"formatbottom"}%%TMPL:END% -%TMPL:DEF{"attachmentsatbottom"}%%TMPL:END% -%TMPL:DEF{"editraw"}%%TMPL:P{context="new_topic" then="create_topic" else="edit_topic"}%%TMPL:END% -%{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicView for BlogLinks using PatternSkin"}% diff --git a/data/_BlogPlugin/PatternSkinHiddenFormViewTemplate.txt b/data/_BlogPlugin/PatternSkinHiddenFormViewTemplate.txt deleted file mode 100644 index 23c3634..0000000 --- a/data/_BlogPlugin/PatternSkinHiddenFormViewTemplate.txt +++ /dev/null @@ -1,20 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142931446" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"textarea"}% %STARTALIASAREA% -%TEXT% -%STOPALIASAREA% %TMPL:END% -%TMPL:DEF{"formatbottom"}%%TMPL:END% -%TMPL:DEF{"attachmentsatbottom"}%%TMPL:END% -%TMPL:DEF{"editraw"}%%TMPL:P{context="new_topic" then="create_topic" else="edit_topic"}%%TMPL:END% -%{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="View to hide %25SYSTEMWEB%25.DataForms using PatternSkin"}% diff --git a/data/_BlogPlugin/PatternSkinSubjectCategoryViewTemplate.txt b/data/_BlogPlugin/PatternSkinSubjectCategoryViewTemplate.txt deleted file mode 100644 index e5cdb4f..0000000 --- a/data/_BlogPlugin/PatternSkinSubjectCategoryViewTemplate.txt +++ /dev/null @@ -1,25 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146300810" format="1.1" reprev="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"textcontent"}% -%DBCALL{"RenderBlogEntriesInCategory" - CAT="%TOPIC%" - SKIP="%URLPARAM{"skip" default=" 0"}%" - LIMIT="%URLPARAM{"limit" default="5"}%" -}% -%TMPL:END% -%TMPL:DEF{"formatbottom"}%%TMPL:END% -%TMPL:DEF{"attachmentsatbottom"}%%TMPL:END% -%TMPL:DEF{"editraw"}%%TMPL:P{context="new_topic" then="create_topic" else="edit_topic"}%%TMPL:END% -%{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicView for SubjectCategories"}% -%META:TOPICMOVED{by="MichaelDaum" date="1146300810" from="Blog.SubjectCategoryView" to="Blog.SubjectCategoryViewTemplate using PatternSkin"}% diff --git a/data/_BlogPlugin/RenderAddComment.txt b/data/_BlogPlugin/RenderAddComment.txt deleted file mode 100644 index b04cde5..0000000 --- a/data/_BlogPlugin/RenderAddComment.txt +++ /dev/null @@ -1,78 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142935996" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters -NONE - - ----++ Implementation -%STARTINCLUDE% -*~~ -
    ----++ Leave a Reply -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - -
    - -
    - -
    -
    - You may have to [[%IFDEFINED{"%LOGINURL%" then="%LOGINURL%" else="%NATLOGINURL%"}%][login]] - or [[%SYSTEMWEB%.UserRegistration][register]] to comment if you haven't already. - - -
    -
    -
    -
    -%STOPINCLUDE% - - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a form to post a BlogComment"}% -%META:TOPICMOVED{by="MichaelDaum" date="1124473947" from="Blog.RenderAddCommentButton" to="Blog.RenderAddComment"}% diff --git a/data/_BlogPlugin/RenderAdminTools.txt b/data/_BlogPlugin/RenderAdminTools.txt deleted file mode 100644 index 8637fe2..0000000 --- a/data/_BlogPlugin/RenderAdminTools.txt +++ /dev/null @@ -1,93 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146822427" format="1.1" reprev="1.17" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function %TOPIC% -%FORMFIELD{"TopicDescription"}% - -See also: WebSideBar - ----++ Parameters -NONE - ----++ Implementation -
    -
    -
    -%STARTINCLUDE% -~~~
    -

    Admin%REDDOT{"%WEB%.%TOPIC%"}%

    - -
      -
    • %TWISTY{id="admintools" remember="on" link="Tools"}% -
        -%~~ DBQUERY{"TopicType=~'\bAdminTool\b'" -~~~ format="
      1. $topic
      2. " -~~~ }% -
      3. [[WebPreferences]]
      4. -
      5. [[%MAINWEB%.BlogAdminGroup][BlogAdminGroup]]
      6. -
      7. [[%MAINWEB%.BlogAuthorGroup][BlogAuhorGroup]]
      8. -
      %ENDTWISTY% -
    • -
    • %TWISTY{id="topictypes" remember="on" link="TopicTypes"}% -
        -%~~ DBQUERY{"TopicType=~'\bTopicType\b'" -~~~ format="
      1. $topic
      2. " -~~~ }% -
      %ENDTWISTY% -
    • -
    • %TWISTY{id="foswikiforms" remember="on" link="DataForms"}% -
        -%~~ DBQUERY{"TopicType=~'\bDataForm\b'" -~~~ format="
      1. $topic
      2. " -~~~ }% -
      %ENDTWISTY% -
    • -
    • %TWISTY{id="topictemplates" remember="on" link="TopicTemplates"}% -
        -%~~ DBQUERY{"TopicType=~'\bTopicTemplate\b'" -~~~ format="
      1. $topic
      2. " -~~~ }% -
      %ENDTWISTY% -
    • -
    • %TWISTY{id="topicviews" remember="on" link="TopicViews"}% -
        -%~~ DBQUERY{"TopicType=~'\bTopicView\b'" -~~~ format="
      1. $topic
      2. " -~~~ }% -
      %ENDTWISTY% -
    • -
    • %TWISTY{id="topicfunctions" remember="on" link="TopicFunctions"}% -
        -%~~ DBQUERY{"TopicType=~'\bTopicFunction\b'" -~~~ format="
      1. $topic
      2. " -~~~ }% -
      %ENDTWISTY% -
    • -
    -
    -
    -~~~ -%STOPINCLUDE% -
    -
    -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Sidebar for the %25MAINWEB%25.BlogAdminGroup"}% -%META:TOPICMOVED{by="MichaelDaum" date="1129534643" from="Blog.BlogAdminSideBar" to="Blog.RenderAdminTools"}% diff --git a/data/_BlogPlugin/RenderAffiliation.txt b/data/_BlogPlugin/RenderAffiliation.txt deleted file mode 100644 index 4ef8412..0000000 --- a/data/_BlogPlugin/RenderAffiliation.txt +++ /dev/null @@ -1,36 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1147357518" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters -NONE - ----++ Implementation -%STARTINCLUDE% -%STOPINCLUDE% -
    -

    Affiliation%REDDOT{"%WEB%.%TOPIC%"}%

    -
    - - - - - -
    -
    -%STOPINCLUDE% - -%DBCALL{"RenderFunctionCallers"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Display section of affiiations in the sidebar"}% diff --git a/data/_BlogPlugin/RenderArchives.txt b/data/_BlogPlugin/RenderArchives.txt deleted file mode 100644 index f623b12..0000000 --- a/data/_BlogPlugin/RenderArchives.txt +++ /dev/null @@ -1,61 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142181386" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * CAT: render archive links in this SubjectCategory (optional) - * AUTHOR: render archive the archive for this author (optional) - ----++ Implementation - -%STARTINCLUDE% -*~~ -%~~ DBSTATS{"TopicType=~'\bBlogEntry\b' AND State='published' -~~~ %IFDEFINED{"%CAT%" then="AND SubjectCategory=~'\b%CAT%\b'" glue="off"}% -~~~ %IFDEFINED{"%AUTHOR%" then="AND BlogAuthor=~'\b%AUTHOR%\b'" glue="off"}% -~~~ " -~~~ field="Date" -~~~ hidenull="on" -~~~ sort="created" reverse="on" -~~~ pattern="(\w+ \d\d\d\d)" -~~~ header=" -~~~
    -~~~

    Archive$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt

    -~~~ " -~~~ format=" -~~~ -~~~ -~~~ " -~~~ footer="
    $count
    " -~~~ }% -%STOPINCLUDE% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%"}% -
    - -
    -%DBCALL{"%TOPIC%" CAT="BlogsWorld"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a list of all months that have postings."}% diff --git a/data/_BlogPlugin/RenderAtom.txt b/data/_BlogPlugin/RenderAtom.txt deleted file mode 100644 index df5de75..0000000 --- a/data/_BlogPlugin/RenderAtom.txt +++ /dev/null @@ -1,114 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139409962" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -See also: RenderRss, WebSyndication - ----++ Parameters - * SEARCH: expression used to extract the items - * LIMIT: number of items to include - * TITLE: channel title - * TEASEONLY: if defined only the Teaser will be shown, otherwise the full Text also - ----++ Implementation - -%STARTINCLUDE% -*~~ -%TITLE% -%SITEMAPWHAT% -%~~ DBQUERY{"%SEARCH%" -~~~ web="%INCLUDINGWEB%" -~~~ order="created" reverse="on" -~~~ limit="1" -~~~ format=" -*~~ $formatTime(info.date, '$year-$mo-$dayT$hour:$minute:$secondZ') -*~~ " -~~~ }% -*~~ - - -%IFDEFINED{"%WEBLOGOIMG%" then="%WEBLOGOIMG%"}% - - Foswiki %WIKIVERSION%, BlogPlugin %PLUGINVERSION{"BlogPlugin"}% - - -*~~ tag:%HTTP_HOST%,%SERVERTIME{"$year-$mo-$day"}%:%INCLUDINGWEB%.%INCLUDINGTOPIC% -*~~ -%WEBRSSCOPYRIGHT% -%~~ DBQUERY{"%SEARCH%" -~~~ web="%INCLUDINGWEB%" -~~~ order="created" reverse="on" -~~~ limit="%LIMIT%" -~~~ format=" -*~~ $n -*~~ -*~~ $percntIFDEFINEDTHEN{\"$expand(TopicType)\" as=\"BlogComment\" glue=\"off\"}$percnt -~~~ $expand(Name) replies on -~~~ \"<a href=\"%SCRIPTURL{"view"}%/view/$web/$expand(BaseRef)\"> -*~~ $expand(@BaseRef.Headline) -*~~ </a>\" -~~~ $percntELSEDEFINED$percnt -~~~ $expand(Headline or Name or name) -~~~ $percntFIDEFINED$percnt -*~~ $n -*~~ $n -*~~ -*~~ tag:%HTTP_HOST%,$formatTime(info.date, '$year-$mo-$day'):$web.$topic -*~~ $n -*~~ -*~~ $formatTime(info.date, '$year-$mo-$dayT$hour:$minute:$secondZ') -*~~ $n -*~~ -*~~ $formatTime(createdate, '$year-$mo-$dayT$hour:$minute:$secondZ') -*~~ $n -*~~ $n -*~~
    -*~~ $percntIFDEFINEDTHEN{\"$expand(TopicType)\" as=\"BlogComment\" glue=\"off\"}$percnt -~~~ $expand('' and Headline and '') -~~~ $percntFIDEFINED$percnt -~~~ $percntIFDEFINEDTHEN{\"$expand(TopicType)\" as=\"WikiTopic\" glue=\"off\"}$percnt -~~~ $expand(TopicDescription) -~~~ $percntFIDEFINED$percnt -~~~ $expand(Teaser) -~~~ $percntIFDEFINEDTHEN{\"%TEASEONLY%\"}$percnt -~~~ $percntELSEDEFINED$percnt -~~~

    $expand(Text)$n -~~~ $percntFIDEFINED$percnt -~~~

    $n -*~~
    $n -*~~ $n -*~~ $expand(BlogAuthor or Name)$n -*~~ $percntIFDEFINEDTHEN{\"$expand(Url)\"}$percnt -*~~ $test$n -*~~ $percntELSEDEFINED$percnt -*~~ %SCRIPTURL{"view"}%%MAINWEB%/$expand(BlogAuthor)$n -*~~ $percntFIDEFINED$percnt -*~~ $n -*~~ $n -*~~ $n -*~~ $expand(info.author)$n -*~~ $n -*~~
    " -~~~ }% -*~~ -%STOPINCLUDE% -
    - - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render rss an feed"}% diff --git a/data/_BlogPlugin/RenderAuthorTools.txt b/data/_BlogPlugin/RenderAuthorTools.txt deleted file mode 100644 index 87411a1..0000000 --- a/data/_BlogPlugin/RenderAuthorTools.txt +++ /dev/null @@ -1,44 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142180546" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * AUTHOR: render the tools for this author (optional) - ----++ Implementation - -%STARTINCLUDE% -~~~ -
    -%DBCALL{"RenderNewBlogEntryButton" TEXT="New Posting" warn="off"}% -%DBCALL{"RenderNewCategoryButton" TEXT="New Category" warn="off"}% -%DBCALL{"RenderNewBlogLinkButton" TEXT="New Link" warn="off"}% -%DBCALL{"RenderNewBlogPageButton" TEXT="New Page" warn="off"}% -%DBCALL{"RenderNewWikiTopicButton" TEXT="New Topic" warn="off"}% -%DBCALL{"RenderUploadImageButton" TEXT="Upload Image" warn="off"}% -
    -%IFDEFINEDTHEN{"%AUTHOR%"}% -%$nopDBCALL{"RenderUnpublishedBlogEntries" warn="off" AUTHOR="%AUTHOR%"}% -%FIDEFINED% -%STOPINCLUDE% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render buttons visible if the user is a blog author"}% diff --git a/data/_BlogPlugin/RenderAuthors.txt b/data/_BlogPlugin/RenderAuthors.txt deleted file mode 100644 index c1a26f3..0000000 --- a/data/_BlogPlugin/RenderAuthors.txt +++ /dev/null @@ -1,35 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142181738" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters -NONE - ----++ Implementation -%STARTINCLUDE% -~~~ -%~~ DBQUERY{"TopicType=~'\bBlogAuthor\b'" -~~~ header="
    -~~~

    Authors$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt

      " -~~~ format="
    • $topic
    • " -~~~ footer="
    " -~~~ }% -%STOPINCLUDE% - - - - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value=" Render the list of BlogAuthors in the sidebar"}% diff --git a/data/_BlogPlugin/RenderBlogArchive.txt b/data/_BlogPlugin/RenderBlogArchive.txt deleted file mode 100644 index 0b8243e..0000000 --- a/data/_BlogPlugin/RenderBlogArchive.txt +++ /dev/null @@ -1,83 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1141831104" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -This TopicFunction displays the mode selector. It then renders the archive -depending on the MODE to RenderBlogArchiveChron, RenderBlogArchiveCat, -RenderBlogArchiveTag or RenderBlogArchiveLex. These in turn display their specific -means to select a search string: a tag, a category, a date or a lexical item. -If this search string is passed to the blog archive's QUERY parameter a search is -started on the blog and displayed using the RenderBlogArchiveHitList function. - ----++ Parameters - * MODE: one of the modes chron, cat, tag or lex (optional) - * QUERY: the item to be searched for in the archive, passed throuhg to the - modes (optional) - ----++ Implementation - -%STARTINCLUDE% -
    - -~~~ -*~~ Chron -*~~ -*~~ %REDDOT{"%BASEWEB%.RenderBlogArchiveChron"}% - - -~~~ -*~~ Cat -*~~ -*~~ %REDDOT{"%BASEWEB%.RenderBlogArchiveCat"}% - - -~~~ -*~~ Tag -*~~ -*~~ %REDDOT{"%BASEWEB%.RenderBlogArchiveTag"}% - - -~~~ -*~~ Lex -*~~ -*~~ %REDDOT{"%BASEWEB%.RenderBlogArchiveLex"}% - -
    -%IFDEFINEDTHEN{"%MODE%" as="cat"}% -%$nopDBCALL{"RenderBlogArchiveCat" QUERY="%QUERY%"}% -%ELSIFDEFINED{"%MODE%" as="tag"}% -%$nopDBCALL{"RenderBlogArchiveTag" QUERY="%QUERY%"}% -%ELSIFDEFINED{"%MODE%" as="lex"}% -%$nopDBCALL{"RenderBlogArchiveLex" QUERY="%QUERY%"}% -%ELSEDEFINED% -%$nopDBCALL{"RenderBlogArchiveChron" QUERY="%QUERY%"}% -%FIDEFINED% -%STOPINCLUDE% -
    - - - ----++ Test -See BlogArchive - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Renders the BlogArchive"}% diff --git a/data/_BlogPlugin/RenderBlogArchiveCat.txt b/data/_BlogPlugin/RenderBlogArchiveCat.txt deleted file mode 100644 index 7eace28..0000000 --- a/data/_BlogPlugin/RenderBlogArchiveCat.txt +++ /dev/null @@ -1,61 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1141827313" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * QUERY: the item to be searched for in the archive - ----++ Implementation - -%STARTINCLUDE% -*~~ -%STOPALIASAREA% - -*~~ -%~~ TAGCLOUD{ -~~~ "$percntDBQUERY{\"TopicType=~'\bBlogEntry\b' AND State='published'\" -~~~ format=\"$formfield(SubjectCategory)\" separator=\", \" -~~~ }$percnt" -~~~ buckets="30" -~~~ offset="9" -~~~ split="[,\s]+" -~~~ group="$group" -~~~ header="
    " -~~~ format=" -~~~ $term" -~~~ footer="
    " -~~~ }% -%IFDEFINEDTHEN{"%QUERY%"}% -%~~ $nopDBCALL{"RenderBlogArchiveHitList" -~~~ QUERY="AND SubjectCategory=~'\b%QUERY%\b'" -~~~ PARAMS="mode=cat;search=%QUERY%" -~~~ }% -%FIDEFINED% -
    -%STARTALIASAREA% -*~~ -%STOPINCLUDE% -
    - - - ----++ Test -See BlogArchive. - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Renders the BlogArchive in CAT mode"}% diff --git a/data/_BlogPlugin/RenderBlogArchiveChron.txt b/data/_BlogPlugin/RenderBlogArchiveChron.txt deleted file mode 100644 index 232a4d4..0000000 --- a/data/_BlogPlugin/RenderBlogArchiveChron.txt +++ /dev/null @@ -1,83 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1141827377" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * QUERY: the item to be searched for in the archive - ----++ Implementation - -%STARTINCLUDE% -*~~ -%STOPALIASAREA% - -*~~ -
    -
    -%~~ DBSTATS{"TopicType=~'\bBlogEntry\b' AND State='published' -~~~ %IFDEFINED{"%URLPARAM{"year"}%" then="AND Date=~'$test'" glue="off"}% -~~~ " -~~~ field="Date" sort="created" -~~~ pattern="(\d\d\d\d)" -~~~ format=" -~~~ -~~~ $key -~~~ " -~~~ }% -
    -
    -%~~ DBSTATS{"TopicType=~'\bBlogEntry\b' AND State='published' -~~~ %IFDEFINED{"%URLPARAM{"year"}%" then="AND Date=~'$test'" glue="off"}% -~~~ %IFDEFINED{"%URLPARAM{"month"}%" then="AND Date=~'$test'" glue="off"}% -~~~ " -~~~ field="Date" sort="created" -~~~ pattern="(\w+) \d\d\d\d" -~~~ format=" -~~~ -~~~ $key -~~~ " -~~~ }% -
    -
    -%~~ DBCALL{"RenderBlogArchiveHitList" -~~~ QUERY=" -*~~ %IFDEFINED{"%URLPARAM{"year"}%" then="AND Date=~'$test'" glue="off"}% -~~~ %IFDEFINED{"%URLPARAM{"month"}%" then="AND Date=~'$test'" glue="off"}% -*~~ " -~~~ PARAMS=" -*~~ mode=chron; -*~~ month=%URLPARAM{"month" default=".*"}%; -*~~ year=%URLPARAM{"year" default=".*"}% -*~~ " -~~~ }% -*~~ -
    -%STARTALIASAREA% -*~~ -%STOPINCLUDE% -
    - - - ----++ Test -See BlogArchive - - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Renders the BlogArchive in CHRON mode"}% diff --git a/data/_BlogPlugin/RenderBlogArchiveHitList.txt b/data/_BlogPlugin/RenderBlogArchiveHitList.txt deleted file mode 100644 index 3d523f2..0000000 --- a/data/_BlogPlugin/RenderBlogArchiveHitList.txt +++ /dev/null @@ -1,57 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1141828714" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * QUERY: search string - * PARAMS: url params to pass through to the pagination - ----++ Implementation - -%STARTINCLUDE% -*~~ -
    - -%~~ DBQUERY{"TopicType=~'\bBlogEntry\b' AND State='published' %QUERY%" -~~~ %IFDEFINED{"%URLPARAM{"skip"}%" then="skip=\"$test\""}% -~~~ limit="15" -~~~ order="created" -~~~ reverse="on" -~~~ hidenull="on" -~~~ header="
    " -~~~ format=" -~~~ -~~~ -~~~ -~~~ " -~~~ footer="
    $index $formatTime(createdate,'$day $mon $year') [[$web.$topic][$formfield(Headline)]]$percntREDDOT{\"$web.$topic\"}$percnt -*~~  $percntCOUNTCOMMENTS{\"$web.$topic\" hidenull=\"on\" format=\"($dollarcount)\"}$percnt
    $percntDBCALL{\"RenderPageNavigation\" -~~~ SKIP=\"%URLPARAM{"skip" default=" 0"}%\" -~~~ MAX=\"$count\" -~~~ LIMIT=\"15\" -~~~ PARAMS=\"%PARAMS%\" -~~~ }$percnt
    " -~~~ }% -
    -*~~ -%STOPINCLUDE% -
    - - - ----++ Test -See BlogArchive. - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render the search result in the BlogArchive"}% diff --git a/data/_BlogPlugin/RenderBlogArchiveLex.txt b/data/_BlogPlugin/RenderBlogArchiveLex.txt deleted file mode 100644 index 807ad61..0000000 --- a/data/_BlogPlugin/RenderBlogArchiveLex.txt +++ /dev/null @@ -1,129 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1141838558" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * QUERY: the item to be searched for in the archive - ----++ Implementation - -%STARTINCLUDE% -*~~ -%STOPALIASAREA% - -*~~ -
    - - 1 - - - 2 - - - 3 - - - 4 - - - 5 - - - 6 - - - 7 - - - 8 - - - 9 - - - 10 - -
    -*~~ -%~~ TAGCLOUD{ -~~~ "$percntDBQUERY{\"TopicType=~'\bBlogEntry\b' AND State='published'\" -~~~ format=\"$formfield(Headline) $formfield(Teaser) $formfield(Text)\" -~~~ separator=\", \" -~~~ }$percnt" -~~~ header="
    " -~~~ group="$group" -~~~ format=" -~~~ $term" -~~~ footer="
    " -~~~ min="%URLPARAM{"min" default="5"}%" -~~~ buckets="40" -~~~ offset="9" -~~~ stopwords="on" -~~~ plural="off" -~~~ exclude="http.*|citeblog.*|xxxxxxxxxx|www.*|WebPreferences|WebHome| -*~~ com|ve|([A-Z]+)" -~~~ map="foswiki=Foswiki" -~~~ }% -%IFDEFINEDTHEN{"%QUERY%"}% -%~~ $nopDBCALL{"RenderBlogArchiveHitList" -~~~ QUERY="AND (Headline=~'%QUERY%' OR Teaser=~'%QUERY%' OR Text=~'%QUERY%')" -~~~ PARAMS=" -*~~ mode=lex; -*~~ min=%$nopURLPARAM{"min" default="5"}%; -*~~ search=%QUERY% -*~~ #hits -*~~ " -~~~ }% -%FIDEFINED% -
    -%STARTALIASAREA% -*~~ -%STOPINCLUDE% -
    - - - ----++ Test -See BlogArchive. - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Renders the BlogArchive in CAT mode"}% diff --git a/data/_BlogPlugin/RenderBlogArchiveTag.txt b/data/_BlogPlugin/RenderBlogArchiveTag.txt deleted file mode 100644 index d99e2bf..0000000 --- a/data/_BlogPlugin/RenderBlogArchiveTag.txt +++ /dev/null @@ -1,60 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1141830670" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * QUERY: the item to be searched for in the archive - ----++ Implementation - -%STARTINCLUDE% -*~~ -%STOPALIASAREA% - -*~~ -%~~ TAGCLOUD{ -~~~ "$percntDBQUERY{\"TopicType=~'\bBlogEntry\b' AND State='published'\" -~~~ format=\"$formfield(BlogTag)\" separator=\", \" -~~~ }$percnt" -~~~ buckets="40" -~~~ offset="9" -~~~ split="[,\s]+" -~~~ group="$group" -~~~ header="
    " -~~~ format=" -~~~ $term" -~~~ footer="
    " -~~~ }% -%IFDEFINEDTHEN{"%QUERY%"}% -%~~ $nopDBCALL{"RenderBlogArchiveHitList" -~~~ QUERY="AND BlogTag=~'\b%QUERY%\b'" -~~~ PARAMS="mode=tag;search=%QUERY%" -~~~ }% -%FIDEFINED% -%STARTALIASAREA% -
    -%STOPINCLUDE% -
    - - - ----++ Test -See BlogArchive. - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value=" Renders the BlogArchive in TAG mode"}% diff --git a/data/_BlogPlugin/RenderBlogComment.txt b/data/_BlogPlugin/RenderBlogComment.txt deleted file mode 100644 index a1e1f97..0000000 --- a/data/_BlogPlugin/RenderBlogComment.txt +++ /dev/null @@ -1,120 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1132222822" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -%RED%Note%ENDCOLOR%, the use of hardcoded rights in REDDOT{grant="..."} -in the "format" section below -as long as the %SYSTEMWEB%.RedDotPlugin does not support Main.WikiGroups natively. Replace -it with your main BlogAuthor or remove the =grant="..."= completely to allow -guests to get reddots to their comments. - -see also: RenderDocNavigation - ----++ Parameters - * NAME: BlogComment topic name - ----++ Implementation ----+++ Main - -%STARTINCLUDE% -%~~ DBCALL{"RenderDocNavigation" -~~~ NAME="%NAME%" -~~~ WHERE="BlogRef='%DBQUERY{topic="%NAME%" format="$formfield(BlogRef)"}%'" -~~~ ORDER="created" -~~~ }% -%~~ DBQUERY{topic="%NAME%" -~~~ format=" -*~~ -~~~
    -~~~ %DBCALL{"%TOPIC%" section="format"}% -~~~
    " -~~~ }% -%~~ DBCALL{"RenderDocNavigation" -~~~ NAME="%NAME%" -~~~ WHERE="BlogRef='%DBQUERY{topic="%NAME%" format="$formfield(BlogRef)"}%'" -~~~ ORDER="created" -~~~ }% -%STOPINCLUDE% -
    - - - ----+++ Format - -%STARTSECTION{"format"}% -*~~

    -~~~ -~~~ $expand(Nr) -~~~ $percntIFDEFINEDTHEN{\"$expand(Url)\"}$percnt -~~~ [[$test][$expand(Name)]] -~~~ $topic\"> -~~~ $percntELSEDEFINED$percnt -~~~ $percntCALC{ -~~~ \"$dollarIF($dollarEXISTS(%MAINWEB%.$expand(Name)), -~~~ [[%MAINWEB%.$expand(Name)][$expand(Name)]] -~~~ $topic\">, -~~~ $topic\\">$expand(Name))\" -~~~ }$percnt -~~~ $percntFIDEFINED$percnt -~~~ -~~~ replied -~~~ $percntTIMESINCE{ -~~~ from=\"$expand(@BaseRef.createdate)\" -~~~ to=\"$expand(createdate)\" -~~~ format=\"$time after the incident\" -~~~ null=\"immediately\" -~~~ }$percnt -~~~ -*~~ $percntREDDOT{\"$web.$topic\" grant=\"MichaelDaum\"}$percnt -~~~

    $n -~~~ $n -~~~ $percntIFDEFINEDTHEN{\"$expand(Headline)\" glue=\"off\"}$percnt$n -~~~

    $test

    $n -~~~ $percntFIDEFINED$percnt$n -~~~ %STARTALIASAREA%$n -~~~
    $n -~~~ $expand(Text) -~~~ …  -*~~ $topic\">reply -~~~
    $n -~~~ %STOPALIASAREA%$n -~~~
    -*~~ -%ENDSECTION{"format"}% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="BlogComment0"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a single BlogComment"}% diff --git a/data/_BlogPlugin/RenderBlogComments.txt b/data/_BlogPlugin/RenderBlogComments.txt deleted file mode 100644 index faea05a..0000000 --- a/data/_BlogPlugin/RenderBlogComments.txt +++ /dev/null @@ -1,82 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1143024652" format="1.1" reprev="1.20" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * NAME: BlogEntry or BlogComment whose BlogComments are to be rendered - ----++ Implementation - -%STARTINCLUDE% -*~~ -
    - -
    -~~~ -~~~ -~~~
    -%~~ COUNTCOMMENTS{"%BASEWEB%.%NAME%" -~~~ hidenull="on" -~~~ header="

    " -~~~ single="One Comment" -~~~ format="$count Comments" -~~~ footer="

    $n" -~~~ }% -~~~
    -~~~ RSS -*~~ ATOM -~~~
    -~~~ -%~~ DBQUERY{"TopicType='BlogComment' AND BlogRef='%NAME%'" -~~~ order="createdate" -~~~ separator=" " -~~~ format=" -~~~
    -~~~ %DBCALL{"RenderBlogComment" section="format"}% -~~~
    -~~~ $percntDBCALL{\"RenderSubComments\" NAME=\"$topic\"}$percnt -~~~
    -~~~
    " -~~~ footer="" -~~~ }% -~~~ -~~~
    -~~~ -~~~
    -~~~
    -*~~ -%STOPINCLUDE% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="TestBlogEntry0"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Renders all comments of a BlogEntry"}% diff --git a/data/_BlogPlugin/RenderBlogEntriesInCategory.txt b/data/_BlogPlugin/RenderBlogEntriesInCategory.txt deleted file mode 100644 index 94cffc4..0000000 --- a/data/_BlogPlugin/RenderBlogEntriesInCategory.txt +++ /dev/null @@ -1,49 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1143520431" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * CAT: name of a SubjectCategory - * LIMIT: number of postings per page - * SKIP: offset into the archive - ----++ Implementation - -%STARTINCLUDE% -*~~ -

    %CAT%

    -
    - %DBQUERY{topics="%CAT%" format="$expand(TopicDescription)

    $expand(Comment)"}% -

    -%~~ DBCALL{"RenderFrontPage" -~~~ %IFDEFINED{"%SKIP%" then="SKIP=\"%SKIP%\"" glue="off"}% -~~~ %IFDEFINED{"%LIMIT%" then="LIMIT=\"%LIMIT%\"" glue="off"}% -~~~ CAT="%CAT%" -~~~ }% -*~~ -%STOPINCLUDE% -
    - ----++ Test -
    -%~~ DBCALL{"%TOPIC%" -~~~ CAT="BlogDev" -~~~ LIMIT="%URLPARAM{"limit" default="2"}%" -~~~ SKIP="%URLPARAM{"skip" default="0"}%" -~~~ }% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Renders a set of BlogEntry teasers in a SubjectCategory"}% diff --git a/data/_BlogPlugin/RenderBlogEntriesOfAuthor.txt b/data/_BlogPlugin/RenderBlogEntriesOfAuthor.txt deleted file mode 100644 index 26d600e..0000000 --- a/data/_BlogPlugin/RenderBlogEntriesOfAuthor.txt +++ /dev/null @@ -1,51 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142176094" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * NAME: name of a BlogAuthor - * HOME: home topic of the author, defaults to the one in the %MAINWEB% - * LIMIT: number of postings per page - * SKIP: offset into the archive - ----++ Implementation - -%STARTINCLUDE% -*~~ -

    -~~~ [[%IFDEFINED{"%HOME%" then="%HOME%" else="%MAINWEB%.%NAME%"}%][%SPACEOUT{"%NAME%"}%]] -

    -
    - %DBQUERY{topic="%NAME%" format="$expand(TopicDescription)"}% -
    -%~~ DBCALL{"RenderFrontPage" -~~~ %IFDEFINED{"%SKIP%" then="SKIP=\"%SKIP%\"" glue="off"}% -~~~ %IFDEFINED{"%LIMIT%" then="LIMIT=\"%LIMIT%\"" glue="off"}% -~~~ AUTHOR="%NAME%" -~~~ }% -*~~ -%STOPINCLUDE% -
    - ----++ Test -
    -%~~ DBCALL{"%TOPIC%" -~~~ NAME="MichaelDaum" -~~~ LIMIT="%URLPARAM{"limit" default="2"}%" -~~~ SKIP="%URLPARAM{"skip" default=" 0"}%" -~~~ }% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render all BlogEntries of a BlogAuthor as teaser."}% diff --git a/data/_BlogPlugin/RenderBlogEntry.txt b/data/_BlogPlugin/RenderBlogEntry.txt deleted file mode 100644 index 6f63798..0000000 --- a/data/_BlogPlugin/RenderBlogEntry.txt +++ /dev/null @@ -1,122 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1145545546" format="1.1" reprev="1.22" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * NAME: BlogEntry topic name - ----++ Urlparams - * cat: SubjectCategory which this BlogEntry is part of; navigation between - BlogEntries is restricted to this category (optional) - ----++ Implementation ----+++ Main - -%STARTINCLUDE% -*~~ -~~~ %STOPALIASAREA% -~~~ -%~~ DBCALL{"RenderDocNavigation" -~~~ NAME="%NAME%" -~~~ WHERE="TopicType=~'\bBlogEntry\b' AND State='published' -~~~ AND SubjectCategory=~'\b%URLPARAM{"cat" default=".*"}%\b'" -~~~ REVERSE="on" -~~~ PARAMS="%IFDEFINED{"%URLPARAM{"cat"}%" then="cat=$test"}%" -~~~ }% -~~~ -~~~ -%~~ DBQUERY{%IFDEFINED{"%WIKINAME%" as="WikiGuest" then="\"State='published'\""}% -~~~ topic="%NAME%" web="%WEB%" -~~~ format="%DBCALL{"%TOPIC%" section="format" -~~~ PARAMS="%IFDEFINED{"%URLPARAM{"cat"}%" then="cat=$test"}%" -~~~ }%" -~~~ }% -~~~ -%~~ DBQUERY{"State='unpublished'" topic="%NAME%" -~~~ format="$percntDBCALL{\"BlogHelpText\" -~~~ section=\"Unpublished\" -~~~ NAME=\"posting\"}$percnt" -~~~ }% -~~~ -%~~ DBCALL{"RenderDocNavigation" -~~~ NAME="%NAME%" -~~~ WHERE="TopicType=~'\bBlogEntry\b' AND State='published -~~~ AND SubjectCategory=~'\b%URLPARAM{"cat" default=".*"}%\b'" -~~~ REVERSE="on" -~~~ PARAMS="%IFDEFINED{"%URLPARAM{"cat"}%" then="cat=$test"}%" -~~~ }% -~~~ %STARTALIASAREA% -*~~ -%STOPINCLUDE% - - ----+++ Format - -%STARTSECTION{"format"}% -*~~
    -~~~ $n$n -~~~
    -~~~

    -~~~ $topic\"> -~~~ $formfield(Headline) -*~~ $percntREDDOT{\"$web.$topic\"}$percnt -~~~

    -~~~ $n
    $n -~~~
    -~~~ -~~~ $formatTime(createdate, '$day $mon $year - $hour:$minute') -~~~ -~~~ $percntFORMATLIST{\"$formfield(SubjectCategory)\" sort=\"on\" -~~~ header=\"in \" -~~~ format=\"$1\" -~~~ footer=\"\" -~~~ }$percnt -~~~ $percntTAGCLOUD{\"$formfield(BlogTag)\" sort=\"on\" -~~~ split=\"[\s,]+\" -~~~ sort=\"weight\" -~~~ warn=\"off\" -~~~ header=\"tagged \" -~~~ separator=\", \" -~~~ format=\"$term\" -~~~ footer=\"\" -~~~ }$percnt -~~~ by [[$web.$formfield(BlogAuthor)][$formfield(BlogAuthor)]] -~~~ $n -~~~
    -~~~ %STARTALIASAREA% -~~~
    -~~~ $n$n -~~~
    -~~~ $formfield(Teaser) -~~~
    $n -~~~ $formfield(Text) -~~~ $n
    $n -~~~
    -~~~ %STOPALIASAREA% -~~~
    -~~~
    -*~~ -%ENDSECTION{"format"}% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="BlogEntry0"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a single BlogEntry"}% diff --git a/data/_BlogPlugin/RenderBlogLink.txt b/data/_BlogPlugin/RenderBlogLink.txt deleted file mode 100644 index e4b71f9..0000000 --- a/data/_BlogPlugin/RenderBlogLink.txt +++ /dev/null @@ -1,143 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148970412" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% -... displayed as a form gathering all information about this link or an aggregation -if the linked site has a nice rss feed. - ----++ Parameters - * NAME: topic name of an BlogLink - * LIMIT: limit of articles to show - ----++ Implementation ----+++ Main - -%STARTINCLUDE% -%~~ DBCALL{"RenderDocNavigation" -~~~ NAME="%NAME%" -~~~ WHERE="TopicType=~'\bBlogLink\b' -*~~ %IFDEFINED{"%URLPARAM{"cat"}%" then=" AND SubjectCategory=~'\b$test\b'"}%" -~~~ ORDER="Name" -~~~ %IFDEFINED{"%URLPARAM{"cat"}%" then="PARAMS=\"cat=$test\""}% -~~~ }% - -%~~ DBQUERY{topic="%NAME%" -~~~ format=" -~~~ $percntIFDEFINEDTHEN{\"$formfield(Feed)\" glue=\"off\"}$percnt -~~~
    -~~~ $percntFORMATLIST{\"$formfield(SubjectCategory)\" sort=\"on\" -~~~ format=\"[[$web.$1][$1]]\" -~~~ }$percnt -~~~
    -~~~
    $formfield(Url)

    $formfield(Comment)

    -~~~ $percntHEADLINES{ -*~~ href=\"$formfield(Feed)\" -~~~ limit=\"%LIMIT%\" -~~~ refresh=\"$percntIFDEFINED{\"$formfield(Refresh)\" else=\"%RSSREFRESH%\"}$percnt\" -~~~ header=\"$percntDBCALL{\"%TOPIC%\" section=\"header\"}$percnt\" -~~~ format=\"$percntDBCALL{\"%TOPIC%\" section=\"article\"}$percnt\" -*~~ }$percnt -~~~ $percntELSEDEFINED$percnt -~~~ $n -~~~ $n -~~~ -~~~ -~~~ -~~~ -~~~ -~~~
    Name: $formfield(Name)
    Headline: $formfield(Headline)
    Url: $formfield(Url)
    Category: -~~~ $percntFORMATLIST{\"$formfield(SubjectCategory)\" -~~~ sort=\"on\" -~~~ format=\"[[$web.$1][$1]]\" -~~~ }$percnt
    Comment: $formfield(Comment)
    -~~~ $percntFIDEFINED% -*~~ " -~~~ }% - -
    -%~~ DBCALL{"RenderDocNavigation" -~~~ NAME="%NAME%" -~~~ WHERE="TopicType=~'bBlogLink\b' -*~~ %IFDEFINED{"%URLPARAM{"cat"}%" then=" AND SubjectCategory=~'\b%URLPARAM{"cat"}%\b'"}%" -~~~ ORDER="Name" -~~~ %IFDEFINED{"%URLPARAM{"cat"}%" then="PARAMS=\"cat=%URLPARAM{"cat"}%\""}% -~~~ }% -%STOPINCLUDE% -
    - ----+++ Header format - -%STARTSECTION{"header"}% -*~~
    -*~~
    -*~~ \"$imagetitle\"
    -*~~ -*~~ -*~~ -*~~
    -*~~

    -*~~ $title -*~~

    -*~~
    -*~~ $percntCALC{\"$FORMATGMTIME($TIME($channeldate), -~~~ $wday, $day $mon $year, $hour:$minute)\" -*~~ }$percnt -*~~
    -*~~
    -*~~ $description -*~~
    -*~~
    -*~~ $rights -*~~
    -*~~
    -*~~ -%ENDSECTION{"header"}% -
    - - - ----+++ Article format - -%STARTSECTION{"article"}% -*~~
    -*~~
    -*~~ $title -*~~
    -*~~ $percntIFDEFINEDTHEN{\"$date\"}$percnt -*~~
    -*~~ $percntCALC{\"$FORMATGMTIME($TIME($date), -~~~ $wday, $day $mon $year, $hour:$minute)\" -*~~ }$percnt -*~~
    -*~~ $percntFIDEFINED$percnt -*~~
    $creator
    -*~~ $percntIFDEFINEDTHEN{\"$subject\"}$percnt -*~~
    \"$subject\"
    -*~~ $percntFIDEFINED$percnt -*~~
    $description
    -*~~
    -*~~ -%ENDSECTION{"article"}% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="BlogLink0" LIMIT="3"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Renders a BlogLink"}% -%META:TOPICMOVED{by="MichaelDaum" date="1130169846" from="Blog.RenderNewsFeed" to="Blog.RenderBlogLink"}% diff --git a/data/_BlogPlugin/RenderBlogLinksInCategory.txt b/data/_BlogPlugin/RenderBlogLinksInCategory.txt deleted file mode 100644 index fcb8c74..0000000 --- a/data/_BlogPlugin/RenderBlogLinksInCategory.txt +++ /dev/null @@ -1,42 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142170784" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * CAT: name of a SubjectCategory - * PARAMS: additional urlparams that are added to the links (optional) - ----++ Implementation - -%STARTINCLUDE% -%~~ DBQUERY{"TopicType='BlogLink' -~~~ %IFDEFINED{"%CAT%" then="AND SubjectCategory=~'\b%CAT%\b'"}%" -~~~ order="Name" -~~~ separator="$n" hidenull="on" -~~~ header="%IFDEFINED{"%CAT%" then="| *%CAT% links* ||"}%" -~~~ format="| $formfield(Name) | -~~~ $formfield(Headline) |" -~~~ }% -%STOPINCLUDE% - - ----++ Test -
    -%DBCALL{"%TOPIC%"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render list of all BlogLinks of a given SubjectCategory"}% -%META:TOPICMOVED{by="MichaelDaum" date="1131397119" from="Blog.RenderFeedsInCategory" to="Blog.RenderBlogLinksInCategory"}% diff --git a/data/_BlogPlugin/RenderBlogPage.txt b/data/_BlogPlugin/RenderBlogPage.txt deleted file mode 100644 index ddd5c85..0000000 --- a/data/_BlogPlugin/RenderBlogPage.txt +++ /dev/null @@ -1,59 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1140040703" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * NAME: name of the BlogPage to be used - ----++ Implementation - -%STARTINCLUDE% -%~~ DBQUERY{topic="%NAME%" web="%WEB%" -~~~ format="%DBCALL{"%TOPIC%" section="format"}%" -~~~ }% -%STOPINCLUDE% - - ----++ Format - -%STARTSECTION{"format"}% -*~~
    -~~~

    $formfield(Headline)$percntREDDOT{\"$web.$topic\"}$percnt

    -~~~
    -~~~
    -~~~ -~~~ $formatTime(createdate, '$day $mon $year - $hour:$minute') -~~~ -~~~ $percntFORMATLIST{\"$formfield(SubjectCategory)\" sort=\"on\" -~~~ header=\"in \" -~~~ format=\"$1\" -~~~ footer=\"\" -~~~ }$percnt -~~~ by [[$web.$formfield(BlogAuthor)][$formfield(BlogAuthor)]] -~~~ $n -~~~
    -*~~ -%ENDSECTION{"format"}% -
    - - - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="TestBlogPage1"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render the header of a BlogPage"}% diff --git a/data/_BlogPlugin/RenderBlogRoll.txt b/data/_BlogPlugin/RenderBlogRoll.txt deleted file mode 100644 index bbb5777..0000000 --- a/data/_BlogPlugin/RenderBlogRoll.txt +++ /dev/null @@ -1,64 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146824546" format="1.1" reprev="1.10" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * CAT: reduce the blogroll to BlogLinks in the given SubjectCategory (optional) - * NOCAT: exclude BlogLinks which are in this SubjectCategory (optional) - * AUTHOR: display the blogroll of the given author (optional) - * TITLE: string describing this blogroll, defaults to "Blogroll" - ----++ Implementation - -%STARTINCLUDE% -~~~ -%~~ DBQUERY{"TopicType=~'\bBlogLink\b' -~~~ %IFDEFINED{"%CAT%" then="AND SubjectCategory=~'\b%CAT%\b'" glue="off"}% -~~~ %IFDEFINED{"%NOCAT%" then="AND !(SubjectCategory=~'\b%NOCAT%\b')" glue="off"}% -~~~ %IFDEFINED{"%AUTHOR%" then="AND BlogAuthor=~'\b%AUTHOR%\b'" glue="off"}%" -~~~ web="%WEB%" -~~~ order="Name" hidenull="on" -~~~ header="
    -~~~

    -*~~ %IFDEFINED{"%TITLE%" then="%TITLE%" else="Blogroll"}% -*~~ $percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt

      " -~~~ format="
    • -~~~ $percntIFDEFINEDTHEN{\"$formfield(Feed)\" glue=\"off\"}$percnt -~~~ $formfield(Name) -~~~ $percntELSEDEFINED$percnt -~~~ $formfield(Name) -*~~ $percntREDDOT{\"$web.$topic\"}$percnt -~~~ $percntFIDEFINED$percnt
    • " -~~~ footer="
    " -~~~ }% -*~~ -~~~ -%STOPINCLUDE% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" NOCAT="BlogUp"}% -
    - -
    -%DBCALL{"%TOPIC%" CAT="BlogUp" TITLE="BlogUp Ring"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render the list of BlogLinks in the sidebar"}% -%META:TOPICMOVED{by="MichaelDaum" date="1130170326" from="Blog.RenderAggregations" to="Blog.RenderBlogRoll"}% diff --git a/data/_BlogPlugin/RenderBlogTeaser.txt b/data/_BlogPlugin/RenderBlogTeaser.txt deleted file mode 100644 index de39e74..0000000 --- a/data/_BlogPlugin/RenderBlogTeaser.txt +++ /dev/null @@ -1,93 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142179174" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -see also: RenderFullTeaser - ----++ Parameters - * NAME: BlogEntry topic name - ----++ Implementation ----+++ Main - -%STARTINCLUDE% -*~~ -%~~ DBQUERY{topic="%NAME%" web="%WEB%" -~~~ format="%DBCALL{"%TOPIC%" section="format"}%"}% -%STOPINCLUDE% - - ----+++ Format - -%STARTSECTION{"format"}% -*~~
    -~~~ %STOPALIASAREA% -~~~ -~~~ -~~~
    -~~~

    -~~~ $topic\"> -~~~ $formfield(Headline) -~~~ $percntREDDOT{\"$web.$topic\"}$percnt -~~~

    -~~~ $percntCOUNTCOMMENTS{\"$web.$topic\" hidenull=\"on\" -~~~ format=\"$topic\\"> -~~~ $dollarcount\" -~~~ }$percnt -~~~
    $n -~~~
    -~~~ -~~~ $percntTIMESINCE{ -~~~ \"$expand(createdate)\" -~~~ format=\"$time ago\" -~~~ null=\"about now\" -~~~ }$percnt -~~~ -~~~ $percntFORMATLIST{\"$formfield(SubjectCategory)\" -~~~ sort=\"on\" -~~~ header=\"in \" -~~~ format=\"$1\" -~~~ footer=\"\" -~~~ }$percnt -~~~ -~~~ by [[$web.$formfield(BlogAuthor)][$formfield(BlogAuthor)]] -~~~ -~~~
    -~~~
    %STARTALIASAREA% -~~~
    $n -~~~ $n -~~~ $formfield(Teaser) -~~~
    …  -*~~ $topic\">more -~~~
    -~~~
    $n -~~~
    -~~~ %STOPALIASAREA% -~~~
    -~~~
    -%ENDSECTION{"format"}% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="TestBlogEntry0"}% -
    - - - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a teaser for a BlogEntry"}% diff --git a/data/_BlogPlugin/RenderCategories.txt b/data/_BlogPlugin/RenderCategories.txt deleted file mode 100644 index 29986e3..0000000 --- a/data/_BlogPlugin/RenderCategories.txt +++ /dev/null @@ -1,43 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1138883148" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters -NONE - ----++ Implementation -%STARTINCLUDE% -*~~ -%~~ DBSTATS{"TopicType=~'\bBlogEntry\b' AND State='published'" -~~~ field="SubjectCategory" -~~~ header=" -~~~
    -~~~

    Categories$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt

    -~~~ -~~~ " -~~~ format=" -*~~ -~~~ " -~~~ footer="
    -~~~ $count -~~~
    " -~~~ }% -*~~ -%STOPINCLUDE% - - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render the list of SubjectCategories in the sidebar"}% diff --git a/data/_BlogPlugin/RenderDataFormList.txt b/data/_BlogPlugin/RenderDataFormList.txt deleted file mode 100644 index 1440886..0000000 --- a/data/_BlogPlugin/RenderDataFormList.txt +++ /dev/null @@ -1,39 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1155026036" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * ATTR - ----++ Implementation - -%STARTINCLUDE% ----++ List of DataForms that use the '%ATTR%' attribute -| *Name* | *Description* | -%~~ DBQUERY{"TopicType=~'\bDataForm\b' AND text=~'\n\| *(..)?%ATTR% * \|'" -~~~ format="| $topic | $formfield(TopicDescription) |" -~~~ }% -%STOPINCLUDE% - - ----++ Test -
    -%DBCALL{"RenderDataFormList" ATTR="Headline"}% -
    -
    -%DBCALL{"RenderDataFormList" ATTR="BaseRef"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Renders a list of DataForms that use a given DataFormAttribute"}% diff --git a/data/_BlogPlugin/RenderDocNavigation.txt b/data/_BlogPlugin/RenderDocNavigation.txt deleted file mode 100644 index 98d0d48..0000000 --- a/data/_BlogPlugin/RenderDocNavigation.txt +++ /dev/null @@ -1,131 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139169536" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * NAME: topic name of a BlogComment, BlogEntry or BlogLink - to which the prev-next doc navigation is displayed - * WHERE: search parameter to restrict the linked documents - * ORDER: criterion how to sort set of documents (created, name, ...) - * REVERSE: invert the sorting order (on, off) - * PARAMS: additional url parameters (optional) - - ----++ Implementation - -%STARTINCLUDE% -*~~ -
    - - - - - - - - -
    -*~~ -%~~ PREVDOC{"%NAME%" web="%WEB%" -~~~ where="%WHERE%" -~~~ order="%IFDEFINED{"%ORDER%" then="%ORDER%"}%" -~~~ reverse="%IFDEFINED{"%REVERSE%" then="%REVERSE%"}%" -~~~ format="«" -~~~ }% -*~~ - -~~~ -%~~ PREVDOC{"%NAME%" web="%WEB%" -~~~ where="%WHERE%" -~~~ order="%IFDEFINED{"%ORDER%" then="%ORDER%"}%" -~~~ reverse="%IFDEFINED{"%REVERSE%" then="%REVERSE%"}%" -~~~ format="$expand(Name or Headline)\" -~~~ }$percnt" -~~~ }% -~~~ - -~~~ -%~~ NEXTDOC{"%NAME%" web="%WEB%" -~~~ where="%WHERE%" -~~~ order="%IFDEFINED{"%ORDER%" then="%ORDER%"}%" -~~~ reverse="%IFDEFINED{"%REVERSE%" then="%REVERSE%"}%" -~~~ format="$expand(Name or Headline)\" -~~~ }$percnt" -~~~ }% -~~~ - -*~~ -%~~ NEXTDOC{"%NAME%" web="%WEB%" -~~~ where="%WHERE%" -~~~ order="%IFDEFINED{"%ORDER%" then="%ORDER%"}%" -~~~ reverse="%IFDEFINED{"%REVERSE%" then="%REVERSE%"}%" -~~~ format="»" -~~~ }% -*~~ -
    -
    -*~~ -%STOPINCLUDE% -
    - - - ----++ Test ----+++ BlogEntries -
    -%~~ DBCALL{"%TOPIC%" -~~~ NAME="BlogEntry0" -~~~ WHERE="TopicType=~'\bBlogEntry\b' AND State='published'" -~~~ }% -
    - ----+++ BlogLinks -
    -%~~ DBCALL{"%TOPIC%" -~~~ NAME="BlogLink0" -~~~ WHERE="TopicType=~'\bBlogLink\b'" -~~~ ORDER="Name" -~~~ }% -
    - ----+++ BlogLinks (reverse) -
    -%~~ DBCALL{"%TOPIC%" -~~~ NAME="BlogLink0" -~~~ WHERE="TopicType=~'\bBlogLink\b'" -~~~ ORDER="Name" -~~~ REVERSE="on" -~~~ }% -
    - ----+++ BlogComments -
    -%~~ DBCALL{"%TOPIC%" -~~~ NAME="BlogComment1" -~~~ WHERE="BlogRef='%DBQUERY{topic="BlogComment1" format="$formfield(BlogRef)"}%'" -~~~ ORDER="created" -~~~ }% - -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a double linked list to previous and next documents"}% diff --git a/data/_BlogPlugin/RenderFrontPage.txt b/data/_BlogPlugin/RenderFrontPage.txt deleted file mode 100644 index b2bb616..0000000 --- a/data/_BlogPlugin/RenderFrontPage.txt +++ /dev/null @@ -1,59 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1149319253" format="1.1" reprev="1.18" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -see: RenderFullTeaser, RenderBlogTeaser, RenderFrontTeaser, RenderPageNavigation - ----++ Parameters - * SKIP: offset into the archive - * LIMIT: number of postings to show maximal - * CAT: categories to extract (optional) - * TAG: tagged entries to be extracted (optional) - * AUTHOR: extract postings of this author (optional) - ----++ Implementation - -%STARTINCLUDE% -~~~ -%~~ DBQUERY{ -~~~ "TopicType=~'\bBlogEntry\b' AND State='published' -~~~ %IFDEFINED{"%CAT%" then="AND SubjectCategory=~'\b%CAT%\b'" glue="off"}% -~~~ %IFDEFINED{"%TAG%" then="AND BlogTag=~'\b%TAG%\b'" glue="off"}% -~~~ %IFDEFINED{"%AUTHOR%" then="AND BlogAuthor=~'\b%AUTHOR%\b'" glue="off"}% -~~~ " -~~~ limit="%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="5"}%" -~~~ skip="%IFDEFINED{"%SKIP%" then="%SKIP%" else="0"}%" -~~~ order="created" reverse="on" web="%WEB%" -~~~ format="%DBCALL{"RenderFullTeaser" section="format" -~~~ NAME="$topic" -~~~ PARAMS="%IFDEFINED{"%CAT%" then="cat=%CAT%"}%"}%" -~~~ footer=" -*~~ $percntDBCALL{\"$web.RenderPageNavigation\" -~~~ LIMIT=\"%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="5"}%\" -~~~ SKIP=\"%IFDEFINED{"%SKIP%" then="%SKIP%" else="0 "}%\" -~~~ MAX=\"$count\" -~~~ }$percnt -*~~ " -~~~ }% -~~~ %DBCALL{"RenderGoogleAdsense" TYPE="text_image"}% -%STOPINCLUDE% - - ----++ Test -
    -%DBCALL{"%TOPIC%" SKIP="%URLPARAM{"skip"}%" CAT="BlogDev" LIMIT="1"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Render a set of postings to leaf through"}% diff --git a/data/_BlogPlugin/RenderFrontTeaser.txt b/data/_BlogPlugin/RenderFrontTeaser.txt deleted file mode 100644 index f4ba4d5..0000000 --- a/data/_BlogPlugin/RenderFrontTeaser.txt +++ /dev/null @@ -1,48 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1149319048" format="1.1" reprev="1.3" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -see: RenderFullTeaser, RenderBlogTeaser, RenderFrontPage - ----++ Parameters - * LIMIT: number of teasers, defaults to 5 - * CAT: categories to extract (optional) - * TAG: tag to extract (optional) - * AUTHOR: extract postings of this author (optional) - ----++ Implementation - -%STARTINCLUDE% - -%~~ DBQUERY{ -~~~ "TopicType=~'\bBlogEntry\b' AND State='published' -~~~ %IFDEFINED{"%CAT%" then="AND SubjectCategory=~'\b%CAT%\b'" glue="off"}% -~~~ %IFDEFINED{"%TAG%" then="AND BlogTag=~'\b%TAG%\b'" glue="off"}% -~~~ %IFDEFINED{"%AUTHOR%" then="AND BlogAuthor='%AUTHOR%'" glue="off"}% -~~~ " -~~~ web="%WEB%" -~~~ limit="%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="5"}%" -~~~ order="created" reverse="on" hidenull="on" -~~~ format="%DBCALL{"RenderBlogTeaser" section="format" NAME="$topic"}%" -~~~ }% -%STOPINCLUDE% - - ----++ Test -
    -%DBCALL{"%TOPIC%" LIMIT="3" CAT="BlogDev"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Render a set of teasers"}% diff --git a/data/_BlogPlugin/RenderFullTeaser.txt b/data/_BlogPlugin/RenderFullTeaser.txt deleted file mode 100644 index 9f39ce4..0000000 --- a/data/_BlogPlugin/RenderFullTeaser.txt +++ /dev/null @@ -1,103 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142179127" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -see also: RenderBlogTeaser - ----++ Parameters - * NAME: BlogEntry topic name - * PARAMS: additional urlparams that are added to the permalinks (optional) - ----++ Implementation ----+++ Main - -%STARTINCLUDE% -~~~ -%~~ DBQUERY{topic="%NAME%" -~~~ format="%DBCALL{"%TOPIC%" section="format"}%" -~~~ }% -~~~ -%STOPINCLUDE% - - ----+++ Format - -%STARTSECTION{"format"}% -*~~
    $n -~~~ %STOPALIASAREA% -~~~ -~~~ -~~~ -~~~ -~~~
    -~~~

    -~~~ $topic\"> -~~~ $formfield(Headline) -*~~ $percntREDDOT{\"$web.$topic\"}$percnt -~~~

    $n -~~~
    -~~~ $percntCOUNTCOMMENTS{\"$web.$topic\" hidenull=\"on\" -~~~ format=\"$topic\\">$dollarcount\" -~~~ }$percnt -~~~
    $n -~~~
    -~~~
    -~~~ -~~~ $percntTIMESINCE{ -~~~ \"$expand(Date)\" -~~~ format=\"$time ago\" -~~~ null=\"about now\" -~~~ }$percnt -~~~ -~~~ -~~~ $percntFORMATLIST{\"$formfield(SubjectCategory)\" sort=\"on\" -~~~ header=\"in \" -~~~ format=\"$1\" -~~~ footer=\"\" -~~~ }$percnt -~~~ -~~~ by [[$web.$formfield(BlogAuthor)][$formfield(BlogAuthor)]] -~~~ -~~~
    $n -~~~ $n -~~~ %STARTALIASAREA% -~~~
    -~~~
    -~~~ $formfield(Teaser) -~~~
    -~~~ $formfield(Text) -~~~
    …  -*~~ $topic\">reply -~~~
    -~~~
    $n -~~~ %STOPALIASAREA% -~~~
    -~~~
    -~~~
    -%ENDSECTION{"format"}% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="TestBlogEntry0"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a BlogEntry for a FrontPage"}% diff --git a/data/_BlogPlugin/RenderFunctionCallers.txt b/data/_BlogPlugin/RenderFunctionCallers.txt deleted file mode 100644 index 3314d30..0000000 --- a/data/_BlogPlugin/RenderFunctionCallers.txt +++ /dev/null @@ -1,33 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1129746261" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters -NONE - ----++ Implementation - -%STARTINCLUDE% ----++ Calls to '%INCLUDINGTOPIC%' -%~~ DBQUERY{"text=~'\b%INCLUDINGTOPIC%\b'" -~~~ exclude="%INCLUDINGTOPIC%" -~~~ format=" * [[$web.$topic][$topic]]" -~~~ }% -*~~ -%STOPINCLUDE% - - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a list of topics that use a given TopicFunction"}% -%META:TOPICMOVED{by="MichaelDaum" date="1124209889" from="Blog.RenderFunctionInvokers" to="Blog.RenderFunctionCallers"}% diff --git a/data/_BlogPlugin/RenderGoogleAdsense.txt b/data/_BlogPlugin/RenderGoogleAdsense.txt deleted file mode 100644 index ddb07ac..0000000 --- a/data/_BlogPlugin/RenderGoogleAdsense.txt +++ /dev/null @@ -1,71 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1143538677" format="1.1" reprev="1.2" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -Note, that you must set your client code in the WebPreferences in -the variable GOOGLEADSENECODE. It will be used on the complete blog. If no -client code is set this TopicFunction will return an empty string. - -See [[https://www.google.com/support/adsense][google help center]] for -an explanation of the parameters. - ----++ Parameters - * WIDTH: width of banner, defaults to 468 - * HEIGHT: height of banner, defaults to 60 - * FORMAT: ad format, defaults to 468x60_as - * TYPE: ad type, defaults to text_image - * CHANNEL: optional ad channel - * BORDERCOLOR: border color, optional - * TEXTCOLOR: text color, optional - * BGCOLOR: background color, optional - * LINKCOLOR: link color, optional - * URLCOLOR: url colur, optional - -All optional colors can be set globally in the WebPreferences. - - ----++ Implementation - -%STARTINCLUDE% -%IFDEFINEDTHEN{"%GOOGLEADSENSECODE%"}% -
    - - -
    -%FIDEFINED% -%STOPINCLUDE% -
    - - ----++ Test -
    -%DBCALL{"%TOPIC%" TYPE="text"}% -
    - - -%DBCALL{"RenderFunctionCallers"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render google adsense banner"}% diff --git a/data/_BlogPlugin/RenderHttpEquivs.txt b/data/_BlogPlugin/RenderHttpEquivs.txt deleted file mode 100644 index 4182436..0000000 --- a/data/_BlogPlugin/RenderHttpEquivs.txt +++ /dev/null @@ -1,92 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139175338" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -This TopicFunction is used to set the HTTP_EQUIV_ON_VIEW variable which is added -to the html header section of a page in the %WEB% web. - ----++ Parameters -NONE - ----++ Implementation - -%STARTINCLUDE% - - - - - - - - -%IFDEFINEDTHEN{"$percntFORMFIELD{\"Headline\"}$percnt" glue="off"}% - -%ELSIFDEFINED{"$percntFORMFIELD{\"TopicDescription\"}$percnt" glue="off"}% - -%FIDEFINED% -%IFDEFINEDTHEN{"$percntFORMFIELD{\"BlogAuthor\"}$percnt" glue="off"}% - -%ELSIFDEFINED{"%METAAUTHOR%"}% -%ELSEDEFINED% - -%FIDEFINED% -%~~ FORMATLIST{" -~~~ $percntFORMFIELD{\"Tag\"}$percnt -~~~ $percntFORMFIELD{\"BlogTag\"}$percnt -~~~ $percntFORMFIELD{\"SubjectCategory\"}$percnt" -~~~ header="" -~~~ unique="on" -~~~ sort="on" -~~~ }% -%~~ FORMATLIST{" -~~~ $percntFORMFIELD{\"Tag\"}$percnt -~~~ $percntFORMFIELD{\"BlogTag\"}$percnt -~~~ $percntFORMFIELD{\"SubjectCategory\"}$percnt" -~~~ header="" -~~~ unique="on" -~~~ sort="on" -~~~ }% -%STOPINCLUDE% - - - - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a set of links to alternative formats for the current html page"}% diff --git a/data/_BlogPlugin/RenderImageTools.txt b/data/_BlogPlugin/RenderImageTools.txt deleted file mode 100644 index 3c66481..0000000 --- a/data/_BlogPlugin/RenderImageTools.txt +++ /dev/null @@ -1,94 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1149347294" format="1.1" reprev="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% -Only BlogAuthors will get to see them. See the access rights below. - ----++ Parameters - * MODE: either manage or gallery, defaults to gallery - ----++ Implementation - -%STARTINCLUDE% ----++ Upload -
    - -
    - - - - - - - - - - - -
    - Local file: - - -
    - Comment: - - -
      - -%IFDEFINEDTHEN{"%MODE%" as="manage" glue="off"}% - -%ELSEDEFINED% - -%FIDEFINED% -
    -
    -
    -%STOPALIASAREA% -%IFDEFINEDTHEN{"%MODE%" as="manage" glue="off"}% ----++ Manage -%$nopMETA{"attachments" all="on"}% - -%ELSEDEFINED% - ----++ Gallery -%$nopIMAGEGALLERY{columns="3"}% - ----++ Tips - - * =Set BLOGIMAGES = %PUBURLPATH%/%WEB%/BlogImages= in WebPreferences - * Add to your posting text - =<img class="alignright border" src="%BLOGIMAGES%/SomeImage.gif" />=, - use classes =alignright=, =alignleft=, =border= - * If you've installed the Foswiki:Extensions/ImagePlugin use - =%IMAGE{"SomeImage.gif|frame|left|200px"}%= to create a framed image floating - left whose geometry does not exceed 200px, - use =right=, =left=, =center= to position the image. - - See the %SYSTEMWEB%.ImagePlugin documentation for more information. - - -%FIDEFINED% -%STOPINCLUDE% -
    - - - ----++ Test -See BlogImages - -%DBCALL{"RenderFunctionCallers"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Render management tools for the BlogImages"}% diff --git a/data/_BlogPlugin/RenderImageUtilisation.txt b/data/_BlogPlugin/RenderImageUtilisation.txt deleted file mode 100644 index 52cfab7..0000000 --- a/data/_BlogPlugin/RenderImageUtilisation.txt +++ /dev/null @@ -1,44 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1149348063" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters -NONE - ----++ Implementation - -%STARTINCLUDE% -
    -%~~ DBQUERY{ -~~~ "TopicType=~'\bBlogEntry\b' -~~~ AND State='published' -~~~ AND (Teaser=~' -%STOPINCLUDE% - - - - ----++ Test -
    -%DBCALL{"%TOPIC%"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Render list of backlings to the BlogImages"}% diff --git a/data/_BlogPlugin/RenderLastFMRecentTracks.txt b/data/_BlogPlugin/RenderLastFMRecentTracks.txt deleted file mode 100644 index 0249e51..0000000 --- a/data/_BlogPlugin/RenderLastFMRecentTracks.txt +++ /dev/null @@ -1,55 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1149450158" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters -Uses your LASTFMNICK in the WebPreferences, displays nothing if you didn't define -it. - ----++ Implementation - -%STARTINCLUDE% -%IFDEFINEDTHEN{"%LASTFMNICK%"}% -
    -~~~

    Listening -*~~ %REDDOT{"%WEB%.RenderLastFMRecentTracks"}% -*~~

    -~~~ -%~~ HEADLINES{ -~~~ "http://ws.audioscrobbler.com/1.0/user/%LASTFMNICK%/recenttracks.rss" refresh="10" -~~~ limit="1" -~~~ header="" -~~~ format=" -~~~ $percntTIMESINCE{from=\"$date\" to=\"%GMTIME%\" format=\"$time ago\"}$percnt -~~~ " -~~~ }% -~~~ -%~~ HEADLINES{ -~~~ "http://ws.audioscrobbler.com/1.0/user/%LASTFMNICK%/recenttracks.rss" refresh="10" -~~~ header="" -~~~ format=" * $title" -~~~ }% -~~~
    -%FIDEFINED% -%STOPINCLUDE% -
    - - - ----++ Test -
    -%DBCALL{"%TOPIC%"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Render a list of tracks you currently listen to"}% diff --git a/data/_BlogPlugin/RenderLicense.txt b/data/_BlogPlugin/RenderLicense.txt deleted file mode 100644 index ba32ccf..0000000 --- a/data/_BlogPlugin/RenderLicense.txt +++ /dev/null @@ -1,69 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148983690" format="1.1" reprev="1.2" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -See also http://creativecommons.org/license. -Please configure to your needs. - ----++ Parameters -NONE - ----++ Implementation - -%STARTINCLUDE% -~~~
    -~~~ -~~~ -~~~ Creative Commons License -~~~ -~~~ -~~~ -~~~
    -%STOPINCLUDE% -
    - - - ----++ Test -
    -%DBCALL{"%TOPIC%"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="TopicFunction to display your blog's license."}% diff --git a/data/_BlogPlugin/RenderNewBlogEntryButton.txt b/data/_BlogPlugin/RenderNewBlogEntryButton.txt deleted file mode 100644 index 449dbfd..0000000 --- a/data/_BlogPlugin/RenderNewBlogEntryButton.txt +++ /dev/null @@ -1,48 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148406161" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -Note, that this button has view access for the %MAINWEB%.BlogAuthorGroup only. -So this button will only be displayed for users in this group. - -See also: RenderNewBlogLinkButton, RenderNewCategoryButton, -RenderNewBlogPageButton, RenderNewWikiTopicButton - ----++ Parameters - * TEXT: text to be displayed on the button - ----++ Implementation -%STARTINCLUDE% -*~~ -
    - - - - - - - - - - - -
    -*~~ -%STOPINCLUDE% - -%DBCALL{"RenderFunctionCallers"}% - -See also: BlogEntryTemplate, BlogEntryForm - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Renders button to create a new BlogEntry"}% diff --git a/data/_BlogPlugin/RenderNewBlogLinkButton.txt b/data/_BlogPlugin/RenderNewBlogLinkButton.txt deleted file mode 100644 index 92df4f3..0000000 --- a/data/_BlogPlugin/RenderNewBlogLinkButton.txt +++ /dev/null @@ -1,43 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130169940" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -Note, that this button has view access for the %MAINWEB%.BlogAuthorGroup only. -So this button will only be displayed for users in this group. - -See also: BlogLink, RenderNewBlogEntryButton, BlogLinkForm, BlogLinkTemplate - ----++ Parameters - * TEXT: text to be displayed on the button - ----++ Implementation -%STARTINCLUDE% -*~~ -
    - - - - - - - - - -
    -*~~ -%STOPINCLUDE% - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Renders button to create a new BlogLink"}% diff --git a/data/_BlogPlugin/RenderNewBlogPageButton.txt b/data/_BlogPlugin/RenderNewBlogPageButton.txt deleted file mode 100644 index 8bf65d1..0000000 --- a/data/_BlogPlugin/RenderNewBlogPageButton.txt +++ /dev/null @@ -1,49 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148406223" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -Note, that this button has view access for the %MAINWEB%.BlogAuthorGroup only. -So this button will only be displayed for users in this group. - -See also: RenderNewBlogLinkButton, RenderNewCategoryButton, -RenderNewBlogEntryButton, RenderNewWikiTopicButton - ----++ Parameters - * TEXT: text to be displayed on the button - ----++ Implementation - -%STARTINCLUDE% -*~~ - -
    - - - - - - - - - -
    -
    -*~~ -%STOPINCLUDE% - - - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Renders a button to create a new BlogPage"}% diff --git a/data/_BlogPlugin/RenderNewCategoryButton.txt b/data/_BlogPlugin/RenderNewCategoryButton.txt deleted file mode 100644 index 5dee6a5..0000000 --- a/data/_BlogPlugin/RenderNewCategoryButton.txt +++ /dev/null @@ -1,32 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130169817" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -see also: RenderNewBlogEntryButton, RenderNewBlogLinkButton - ----++ Parameters - * TEXT text to be displayed on the button - ----++ Implementation -%STARTINCLUDE% -*~~ -
    - -
    -*~~ -%STOPINCLUDE% - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Renders button to create a new SubjectCategory"}% diff --git a/data/_BlogPlugin/RenderNewTopicTypeForm.txt b/data/_BlogPlugin/RenderNewTopicTypeForm.txt deleted file mode 100644 index d2e7223..0000000 --- a/data/_BlogPlugin/RenderNewTopicTypeForm.txt +++ /dev/null @@ -1,52 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130149189" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * NAME: name of TopicType which we render a button for - * FORM: DataForm to be used when creating a topic - * TEMPLATE: TopicTemplate to be used - ----++ Implementation - -%STARTINCLUDE% -~~~ -
    -
    - -%IFDEFINEDTHEN{"%TEMPLATE%"}% - -%FIDEFINED% -%IFDEFINEDTHEN{"%FORM%"}% - -%FIDEFINED% - - - - - -
    -
    -~~~ -%STOPINCLUDE% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="TopicType"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Renders a form that allows generate a new topic of the given type"}% diff --git a/data/_BlogPlugin/RenderNewWikiTopicButton.txt b/data/_BlogPlugin/RenderNewWikiTopicButton.txt deleted file mode 100644 index af17484..0000000 --- a/data/_BlogPlugin/RenderNewWikiTopicButton.txt +++ /dev/null @@ -1,44 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148406290" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -Note, that this button has view access for the %MAINWEB%.BlogAuthorGroup only. -So this button will only be displayed for users in this group. - -See also: RenderNewBlogLinkButton, RenderNewCategoryButton, RenderNewBlogEntryButton, RenderNewBlogPageButton - ----++ Parameters - * TEXT: text to be displayed on the button - ----++ Implementation - -%STARTINCLUDE% -*~~ -
    - -
    -*~~ -%STOPINCLUDE% -
    - - ----++ Test -
    -%DBCALL{"%TOPIC%" TEXT="New BlogPage" NAME="BlogPageXXXXXXXXXX"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Renders a button to create a new WikiTopic"}% -%META:TOPICMOVED{by="MichaelDaum" date="1138890491" from="Blog.RenderNewBlogPageButton" to="Blog.RenderNewWikiTopicButton"}% diff --git a/data/_BlogPlugin/RenderNextCommentNr.txt b/data/_BlogPlugin/RenderNextCommentNr.txt deleted file mode 100644 index 3c5f085..0000000 --- a/data/_BlogPlugin/RenderNextCommentNr.txt +++ /dev/null @@ -1,46 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1129816887" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * NAME: topic name of a BlogComment or BlogEntry - ----++ Implementation - -%STARTINCLUDE% -*~~ -%~~ DBQUERY{topics="%NAME%" separator="none" -~~~ format="$expand(Nr and '.')" -~~~ }% -*~~ -%~~ DBQUERY{"TopicType='BlogComment' AND BlogRef='%NAME%'" -~~~ format="none" separator="none" -~~~ header="$percntCALC{\"$EVAL($count+1)\"}$percnt$n*~~" -~~~ }% -*~~ -%STOPINCLUDE% - - ----++ Test -
    -<%DBCALL{"%TOPIC%" NAME="TestBlogEntry0"}%> -
    - -
    -<%DBCALL{"%TOPIC%" NAME="BlogComment18"}%> -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Compute the next comment nr given a current BlogEntry or BlogComment"}% -%META:TOPICMOVED{by="MichaelDaum" date="1127748248" from="Blog.RenderCommentNr" to="Blog.RenderNextCommentNr"}% diff --git a/data/_BlogPlugin/RenderPageNavigation.txt b/data/_BlogPlugin/RenderPageNavigation.txt deleted file mode 100644 index 98d54f4..0000000 --- a/data/_BlogPlugin/RenderPageNavigation.txt +++ /dev/null @@ -1,59 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1133291260" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * SKIP: initial offset - * LIMIT: number of items per page - * MAX: maximum number of items - * PARAMS: additional url parameters (optional) - ----++ Implementation - -%STARTINCLUDE% -~~~ - - -*~~ -%STOPINCLUDE% - - ----++ Test -
    -%DBCALL{"%TOPIC%" SKIP="%URLPARAM{"skip" default=" 0"}%" LIMIT="10" MAX="200"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a navigation to previous/next blog entries on the FrontPage"}% diff --git a/data/_BlogPlugin/RenderPageTitle.txt b/data/_BlogPlugin/RenderPageTitle.txt deleted file mode 100644 index 935f062..0000000 --- a/data/_BlogPlugin/RenderPageTitle.txt +++ /dev/null @@ -1,41 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1155635677" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -This will render the pagetitle of the BASETOPIC. - ----++ Parameters -NONE - ----++ Implementation - -%STARTINCLUDE% -%IFDEFINEDTHEN{"%DBQUERY{topic="%BASETOPIC%" format="$expand(Headline)"}%"}% - $test -%ELSIFDEFINED{"%DBQUERY{topic="%BASETOPIC%" format="$expand(TopicDescription)"}%"}% - %BASETOPIC% - $test -%ELSEDEFINED% - %BASETOPIC% -%FIDEFINED% -%STOPINCLUDE% - - - - ----++ Test -
    -%DBCALL{"%TOPIC%"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Render the PAGETITLE for items in this application"}% diff --git a/data/_BlogPlugin/RenderPages.txt b/data/_BlogPlugin/RenderPages.txt deleted file mode 100644 index 58f4e7f..0000000 --- a/data/_BlogPlugin/RenderPages.txt +++ /dev/null @@ -1,47 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142177377" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * AUTHOR: restrict list to pages done by this author (optional) - ----++ Implementation - -%STARTINCLUDE% -~~~ %STOPALIASAREA% -%~~ DBQUERY{"TopicType=~'\bBlogPage\b' AND (form!='Blog(Page|Entry)Form' OR State='published') -~~~ %IFDEFINED{"%AUTHOR%" then="AND BlogAuthor=~'\b%AUTHOR%\b'" glue="off"}%" -~~~ hidenull="on" -~~~ header="
    $n -~~~

    Pages$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt

    " -~~~ }% -~~~ %STARTALIASAREA% -~~~ -%STOPINCLUDE% -
    - - - ----++ Test -
    -%DBCALL{"%TOPIC%"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Renders a list of BlogPages put into the sidebar"}% diff --git a/data/_BlogPlugin/RenderRecentComments.txt b/data/_BlogPlugin/RenderRecentComments.txt deleted file mode 100644 index d199a7f..0000000 --- a/data/_BlogPlugin/RenderRecentComments.txt +++ /dev/null @@ -1,86 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142178144" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -The maximum age of a BlogComment to be displayed is configurable by the COMMENTSAGE -variable in the WebPreferences. Current value is %COMMENTSAGE% epoch seconds. -Customize it to - - 1 month: 2592000 - 2 months: 5184000 - 3 months: ... - -as you like. The reason for that is to fade out old comments and even don't display -the comments section in the sidebar at all if your blog grows lonely. It is no good -advertisement to display very old comments in this prominent position with obiously -no newer comments than that. - ----++ Parameters - * LIMIT: maximal number of comments to list - * CAT: restrict scope to the given category (optional) - * AUTHOR: restrict scope to the given author (optional) - ----++ Implementation - -%STARTINCLUDE% -*~~ -%~~ RECENTCOMMENTS{ -~~~ %IFDEFINED{"%CAT%" then="category=\"%CAT%\"" glue="off"}% -~~~ %IFDEFINED{"%AUTHOR%" then="author=\"%AUTHOR%\"" glue="off"}% -~~~ header="$n$n -*~~
    -~~~
    -~~~ -~~~ -*~~
    -*~~

    -*~~ Comments$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt -*~~

    -*~~
    -*~~ RSS -*~~
    -~~~
    $n -~~~ " -~~~ format=" -~~~ -~~~ " -~~~ limit="%LIMIT%" age="%COMMENTSAGE%" -~~~ footer="
      -~~~
    • $topic\">$headline
      -~~~ -~~~ $percntTIMESINCE{\"$date\" format=\"$time ago\"}$percnt -~~~ $commenter replied -~~~
    -~~~
    -~~~ $topic\"> -*~~ $percntCOUNTCOMMENTS{\"$web.$topic\" hidenull=\"on\"}$percnt -*~~ -~~~
    $n
    " -~~~ }% -*~~ -%STOPINCLUDE% -
    - - ----++ Test -
    -%DBCALL{"%TOPIC%" LIMIT="10"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render the list of recent comments in the WebSideBar"}% diff --git a/data/_BlogPlugin/RenderRecentPostings.txt b/data/_BlogPlugin/RenderRecentPostings.txt deleted file mode 100644 index 18d0d72..0000000 --- a/data/_BlogPlugin/RenderRecentPostings.txt +++ /dev/null @@ -1,66 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142176497" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * LIMIT: maximal number of BlogEntries to list - * CAT: optionally render restrict list to this category - * AUTHOR: optionally restrict list to this author - ----++ Implementation - -%STARTINCLUDE% -~~~ %STOPALIASAREA% -%~~ DBQUERY{"TopicType=~'\bBlogEntry\b' AND -~~~ State='published' -~~~ %IFDEFINED{"%CAT%" then="AND SubjectCategory=~'\b%CAT%\b'"}% -~~~ %IFDEFINED{"%AUTHOR%" then="AND BlogAuthor=~'\b%AUTHOR%\b'"}%" -~~~ order="createdate" reverse="on" limit="%LIMIT%" -~~~ hidenull="on" -~~~ header="
    -~~~
    -~~~ -~~~ -*~~
    -~~~

    -*~~ Latest$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt -*~~

    -*~~
    -*~~ RSS -*~~
    -~~~
    " -~~~ }% -~~~ %STARTALIASAREA% -~~~ -%STOPINCLUDE% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" LIMIT="1" CAT="BlogDev"}% -
    - -
    -%DBCALL{"%TOPIC%" LIMIT="10"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render the list of recent postings in the WebSideBar"}% -%META:TOPICMOVED{by="MichaelDaum" date="1127297546" from="Blog.RenderLatestEntries" to="Blog.RenderRecentPostings"}% diff --git a/data/_BlogPlugin/RenderRelatedEntries.txt b/data/_BlogPlugin/RenderRelatedEntries.txt deleted file mode 100644 index f4efb8b..0000000 --- a/data/_BlogPlugin/RenderRelatedEntries.txt +++ /dev/null @@ -1,46 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1131636192" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * NAME: topic to collect related once - ----++ Implementation - -%STARTINCLUDE% -~~~ -%STOPALIASAREA% -%~~ RELATEDTOPICS{"%NAME%" -~~~ depth="2" -~~~ filter="State='published'" -~~~ header=" -~~~
    -~~~

    Related$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt

      " -~~~ format="
    • -*~~ $headline
    • " -~~~ footer="
    " -~~~ }% -%STARTALIASAREA% -~~~ -%STOPINCLUDE% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="BlogEntry6"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a list of related BlogEntries for the BlogEntry sidebar"}% diff --git a/data/_BlogPlugin/RenderRss.txt b/data/_BlogPlugin/RenderRss.txt deleted file mode 100644 index a9dcf19..0000000 --- a/data/_BlogPlugin/RenderRss.txt +++ /dev/null @@ -1,107 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139409973" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -See also: RenderAtom, WebSyndication - ----++ Parameters - * SEARCH: expression used to extract the items - * LIMIT: number of items to include - * TITLE: channel title - * TEASEONLY: if defined only the Teaser will be shown, otherwise the full Text also - ----++ Implementation - -%STARTINCLUDE% -*~~ - - %TITLE% - %SCRIPTURL{"view"}%/%WEB% - %SITEMAPWHAT% - - en-us - %WEBRSSCOPYRIGHT% - %WIKIWEBMASTERNAME% [%WIKIWEBMASTER%] - %WIKIWEBMASTERNAME% [%WIKIWEBMASTER%] - %WIKITOOLNAME% - - -%~~ DBQUERY{"%SEARCH%" -~~~ web="%INCLUDINGWEB%" -~~~ order="created" -~~~ reverse="on" limit="%LIMIT%" -~~~ format=" " -~~~ }% - - - - - Foswiki/NatSkin - %SCRIPTURL{"view"}%/%INCLUDINGWEB% - %IFDEFINED{"%WEBLOGOIMG%" then="%WEBLOGOIMG%" else="%WIKILOGOIMG%"}% - -%~~ DBQUERY{"%SEARCH%" -~~~ web="%INCLUDINGWEB%" -~~~ order="created" -~~~ reverse="on" -~~~ limit="%LIMIT%" -~~~ separator="$n" -~~~ exclude="BlogAbout|WebHome" -~~~ format=" -*~~ $n -~~~ -*~~ $percntIFDEFINEDTHEN{\"$expand(TopicType)\" as=\"BlogComment\" glue=\"off\"}$percnt -~~~ $expand(Name) replies on -~~~ \"<a href=\"%SCRIPTURL{"view"}%/view/$web/$expand(BaseRef)\"> -*~~ $expand(@BaseRef.Headline) -*~~ </a>\" -~~~ $percntELSEDEFINED$percnt -~~~ $expand(Headline or Name or name) -~~~ $percntFIDEFINED$percnt -*~~ $n -~~~ %SCRIPTURL{"view"}%/$web/$topic$n -~~~ -*~~ $percntIFDEFINEDTHEN{\"$expand(TopicType)\" as=\"BlogComment\" glue=\"off\"}$percnt -~~~ $expand('<b>' and Headline and '</b>') -~~~ $percntFIDEFINED$percnt -~~~ $encode( -~~~ $percntIFDEFINEDTHEN{\"$expand(TopicType)\" as=\"WikiTopic\" glue=\"off\"}$percnt -~~~ $expand(TopicDescription) -~~~ $percntFIDEFINED$percnt -~~~ $expand(Teaser) -~~~ %IFDEFINED{"%TEASEONLY%" then=" " else="

    $expand(Text)"}% -~~~ $percntIFDEFINEDTHEN{\"$expand(BlogTag)\" glue=\"off\"}$percnt -~~~

    Tags: -~~~ $percntFORMATLIST{\"$test\" sort=\"on\" -~~~ format=\"$1\" -~~~ }$percnt -~~~ $percntFIDEFINED$percnt) -~~~ $n -~~~ $expand(BlogAuthor or Name)$n -~~~ $formatTime(createdate, '$year-$mo-$dayT$hour:$minute:$secondZ')$n -~~~ $expand(SubjectCategory) -~~~ $n -~~~ $n -~~~ $expand(info.author)$n -~~~ $n -~~~ $n -~~~ -~~~ "}% -*~~ -%STOPINCLUDE% - - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render an RSS feed"}% diff --git a/data/_BlogPlugin/RenderSideBar.txt b/data/_BlogPlugin/RenderSideBar.txt deleted file mode 100644 index 21b5d64..0000000 --- a/data/_BlogPlugin/RenderSideBar.txt +++ /dev/null @@ -1,191 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1149450214" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - -See also BlogHelpText - -%TOC% - - ----++ Parameters - * SIDEBAR: kind of sidebar to display - * SIDEBARARG: extra parameter for the admin sidebar - ----++ Implementation - -%STARTINCLUDE%

    -
    -

    About%REDDOT{"%WEB%.BlogAbout"}%

    -%IFDEFINEDTHEN{"%SIDEBAR%"}% -%IFDEFINEDTHEN{"%SIDEBAR%" as="Author"}% -%$nopDBQUERY{topic="%BASETOPIC%" format="$formfield(About)"}% -%ELSEDEFINED% -%$nopDBCALL{"BlogHelpText" section="%SIDEBAR%"}% -%FIDEFINED% -%ELSEDEFINED% -%$nopDBCALL{"BlogHelpText" section="Default"}% -%FIDEFINED% -
    -%IFDEFINEDTHEN{"%SKIN%" as="pattern"}% -%ELSEDEFINED% -%IFSKINSTATETHEN{searchbox="pos2"}% -
    -%$nopTMPL:P{"searchbox"}% -

    -

    -%FISKINSTATE% -%FIDEFINED% - -%IFDEFINEDTHEN{"%SIDEBAR%"}% -%$nopDBCALL{"%TOPIC%" section="%SIDEBAR%"}% -%ELSEDEFINED% -%$nopDBCALL{"%TOPIC%" section="Default"}% -%FIDEFINED% -
    -%STOPINCLUDE% -
    - ----++ Default sidebar - -%STARTSECTION{"Default"}% -*~~ -%DBCALL{"RenderAuthorTools" warn="off"}% -%DBCALL{"RenderAdminTools" warn="off"}% -%DBCALL{"RenderRecentComments" LIMIT="5"}% -%DBCALL{"RenderRecentPostings" LIMIT="10"}% -%DBCALL{"RenderCategories"}% -%DBCALL{"RenderArchives"}% -%DBCALL{"RenderAuthors"}% -%DBCALL{"RenderBlogRoll" NOCAT="BlogUp"}% -%DBCALL{"RenderBlogRoll" CAT="BlogUp" TITLE="BlogUp Ring"}% -%DBCALL{"RenderPages"}% -%DBCALL{"RenderLastFMRecentTracks"}% - -%DBCALL{"RenderTechnorati"}% -%DBCALL{"RenderAffiliation"}% -%ENDSECTION{"Default"}% - - - -%STARTSECTION{"Author"}% -*~~ -%DBCALL{"RenderAuthorTools" warn="off" AUTHOR="%BASETOPIC%"}% -%DBCALL{"RenderAdminTools" warn="off"}% -%DBCALL{"RenderRecentComments" LIMIT="5" AUTHOR="%BASETOPIC%"}% -%DBCALL{"RenderRecentPostings" LIMIT="10" AUTHOR="%BASETOPIC%"}% -%DBCALL{"RenderCategories"}% -%DBCALL{"RenderArchives" AUTHOR="%BASETOPIC%"}% -%DBCALL{"RenderBlogRoll" AUTHOR="%BASETOPIC%" NOCAT="BlogUp"}% -%DBCALL{"RenderBlogRoll" CAT="BlogUp" TITLE="BlogUp Ring"}% -%DBCALL{"RenderPages" AUTHOR="%BASETOPIC%"}% -%DBCALL{"RenderLastFMRecentTracks"}% - -%DBCALL{"RenderTechnorati"}% -%ENDSECTION{"Author"}% - - ----++ Page sidebar - -%STARTSECTION{"Page"}% -*~~ -%DBCALL{"RenderAuthorTools" warn="off"}% -%DBCALL{"RenderAdminTools" warn="off"}% -%DBCALL{"RenderRelatedEntries" NAME="%BASETOPIC%"}% -%ENDSECTION{"Page"}% - - ----++ Admin sidebar - -%STARTSECTION{"Admin"}% -*~~ -%DBCALL{"RenderNewTopicTypeForm" - NAME="%IFDEFINED{"%SIDEBARARG%" then="%SIDEBARARG%" else="%INCLUDINGTOPIC%"}%" - TEMPLATE="%IFDEFINED{"%SIDEBARARG%" then="%SIDEBARARG%Template" else="%INCLUDINGTOPIC%Template"}%" - warn="off"}% -%DBCALL{"RenderValidateButton" TEXT="Validate Html" warn="off"}% -%DBCALL{"RenderTopicTypes" - NAME="%IFDEFINED{"%SIDEBARARG%" then="%SIDEBARARG%" else="%INCLUDINGTOPIC%"}%"}% -%ENDSECTION{"Admin"}% - - ----++ Entry sidebar - -%STARTSECTION{"Entry"}% -*~~ -%DBCALL{"RenderAuthorTools" warn="off"}% -%DBCALL{"RenderAdminTools" warn="off"}% -%DBCALL{"RenderRelatedEntries" NAME="%BASETOPIC%"}% -%DBCALL{"RenderRecentPostings" LIMIT="10"}% -%ENDSECTION{"Entry"}% - - ----++ Aggregation sidebar - -%STARTSECTION{"Aggregation"}% -*~~ -%DBCALL{"RenderAuthorTools" warn="off"}% -%DBCALL{"RenderAdminTools" warn="off"}% -%IFDEFINEDTHEN{"%URLPARAM{"cat"}%"}% -%$nopDBCALL{"RenderBlogRoll" CAT="%URLPARAM{"cat"}%"}% -%ELSEDEFINED% -%$nopDBCALL{"RenderBlogRoll" NOCAT="BlogUp"}% -%$nopDBCALL{"RenderBlogRoll" CAT="BlogUp" TITLE="BlogUp Ring"}% -%FIDEFINED% -%ENDSECTION{"Aggregation"}% - - ----++ Archive sidebar - -%STARTSECTION{"Archive"}% -*~~ -%DBCALL{"RenderAuthorTools" warn="off"}% -%DBCALL{"RenderAdminTools" warn="off"}% -%DBCALL{"BlogHelpText" section="Archive2"}% -%ENDSECTION{"Archive"}% - - ----++ Category sidebar - -%STARTSECTION{"Category"}% -*~~ -%DBCALL{"RenderAuthorTools" warn="off"}% -%DBCALL{"RenderAdminTools" warn="off"}% -%DBCALL{"RenderRecentComments" LIMIT="10" CAT="%BASETOPIC%"}% -%DBCALL{"RenderRecentPostings" LIMIT="10" CAT="%BASETOPIC%"}% -%DBCALL{"RenderCategories"}% -%DBCALL{"RenderArchives" CAT="%BASETOPIC%"}% -%DBCALL{"RenderBlogRoll" CAT="%BASETOPIC%"}% -%ENDSECTION{"Category"}% - - ----++ Image sidebar - -%STARTSECTION{"Image"}% -*~~ -%DBCALL{"RenderAuthorTools" warn="off"}% -%DBCALL{"RenderAdminTools" warn="off"}% -%DBCALL{"RenderImageUtilisation"}% -%ENDSECTION{"Image"}% - - - ----++ Nosidebar sidebar - -%STARTSECTION{"Nosidebar"}% -*~~ -%ENDSECTION{"Nosidebar"}% - - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Render the sidebar navigation"}% diff --git a/data/_BlogPlugin/RenderSubComments.txt b/data/_BlogPlugin/RenderSubComments.txt deleted file mode 100644 index ccad47c..0000000 --- a/data/_BlogPlugin/RenderSubComments.txt +++ /dev/null @@ -1,74 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1133282569" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * NAME: topic name whose comments are rendered - ----++ Implementation - -%STARTINCLUDE% -%~~ DBQUERY{"BlogRef='%NAME%'" order="createdate" -~~~ format=" -*~~
    -~~~ -~~~ $formfield(Nr) -~~~ $percntIFDEFINEDTHEN{\"$expand(Url)\"}$percnt -~~~ [[$test][$expand(Name)]] -~~~ $percntELSEDEFINED$percnt -~~~ $percntCALC{ -~~~ \"$dollarIF($dollarEXISTS(%MAINWEB%.$expand(Name)), -~~~ [[%MAINWEB%.$expand(Name)][$expand(Name)]], -~~~ $expand(Name))\" -~~~ }$percnt -~~~ $percntFIDEFINED$percnt, -~~~ $percntTWISTY{id=\"twist$topic\" -~~~ buttonmode=\"span\" mode=\"div\" remember=\"on\" -~~~ link=\" -~~~ -~~~ $percntTIMESINCE{ -~~~ from=\"$formatTime(@BlogRef.createdate)\" -~~~ to=\"$formatTime(createdate)\" -~~~ null=\"immediately\" -~~~ format=\"$time later\" -~~~ }$percnt -*~~ -*~~ $expand(': ' and Headline) -~~~ \" -~~~ showimg=\"$percntICONURLPATH{\"toggleopenleft\"}$percnt\" -~~~ hideimg=\"$percntICONURLPATH{\"toggleclose\"}$percnt\" -~~~ }$percnt$n -~~~ -~~~
    -~~~ $formfield(Text) -~~~ … $topic\"> -*~~ reply -~~~
    $n -~~~
    -~~~ $percntENDTWISTY$percnt -~~~ $percntDBCALL{\"RenderSubComments\" NAME=\"$topic\"}$percnt -*~~
    " -~~~ }% -*~~ -%STOPINCLUDE% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="TestBlogEntry0"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render all BlogComments recursively"}% diff --git a/data/_BlogPlugin/RenderTechnorati.txt b/data/_BlogPlugin/RenderTechnorati.txt deleted file mode 100644 index f522201..0000000 --- a/data/_BlogPlugin/RenderTechnorati.txt +++ /dev/null @@ -1,39 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1149352158" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters -Uses TECHNORATICODE preference variable in the WebPreferences. -This function will return nothing if that value is not set - ----++ Implementation - -%STARTINCLUDE% -%IFDEFINEDTHEN{"%TECHNORATICODE%"}% -
    -

    Technorati

    - -
    -%FIDEFINED% -%STOPINCLUDE% -
    - - - ----++ Test -
    -%DBCALL{"%TOPIC%"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Render a technorati include "}% diff --git a/data/_BlogPlugin/RenderTopicList.txt b/data/_BlogPlugin/RenderTopicList.txt deleted file mode 100644 index 6be6405..0000000 --- a/data/_BlogPlugin/RenderTopicList.txt +++ /dev/null @@ -1,46 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1138882812" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * NAME: TopicType to lookup - ----++ Implementation - -%STARTINCLUDE% ----++ List of all topics of type '%NAME%' -
    -| *Name* | *Description* | -%~~ DBQUERY{"TopicType=~'\b%NAME%\b'" -~~~ web="%WEB%" -~~~ order="Name or name" -~~~ format="| [[$web.$topic][$expand(Name or name)]] -~~~ | $expand(TopicDescription or Headline) |" -~~~ }% -
    -~~~ -%STOPINCLUDE% -
    - - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="TopicFunction"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Implements a formatted metadatasearch"}% -%META:TOPICMOVED{by="MichaelDaum" date="1124115742" from="Blog.FuncTopicList" to="Blog.RenderTopicList"}% diff --git a/data/_BlogPlugin/RenderTopicSummary.txt b/data/_BlogPlugin/RenderTopicSummary.txt deleted file mode 100644 index b4b729f..0000000 --- a/data/_BlogPlugin/RenderTopicSummary.txt +++ /dev/null @@ -1,38 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1135112682" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * THISWEB: name of the web - * THISTOPIC: name of the topic - ----++ Implementation - -%STARTINCLUDE% - -%~~ DBQUERY{topic="%THISTOPIC%" web="%THISWEB%" -~~~ format="$expand(Teaser or Text)" -~~~ }% - -%STOPINCLUDE% - - ----++ Test -
    -%DBCALL{"%TOPIC%" THISTOPIC="TestBlogEntry0" THISWEB="%WEB%"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a topic summary for a search hit"}% -%META:TOPICMOVED{by="MichaelDaum" date="1130235147" from="Blog.RenderSearchHit" to="Blog.RenderTopicSummary"}% diff --git a/data/_BlogPlugin/RenderTopicTypes.txt b/data/_BlogPlugin/RenderTopicTypes.txt deleted file mode 100644 index 027c46e..0000000 --- a/data/_BlogPlugin/RenderTopicTypes.txt +++ /dev/null @@ -1,49 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1129746624" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * NAME: TopicType name - ----++ Implementation - -%STARTINCLUDE% -*~~
    -~~~

    %NAME%%REDDOT{"%WEB%.%TOPIC%"}%

    -~~~ -~~~
      -%~~ DBQUERY{"TopicType=~'\b%NAME%\b'" -~~~ separator=" " -~~~ format="
    1. -~~~ -~~~ $topic -~~~
    2. " -~~~ }% -~~~
    -~~~
    -~~~
    -*~~ -%STOPINCLUDE% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" NAME="TopicFunction"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render list of TopicTypes"}% -%META:TOPICMOVED{by="MichaelDaum" date="1129737144" from="Blog.RenderRecentTopicTypes" to="Blog.RenderTopicTypes"}% diff --git a/data/_BlogPlugin/RenderUnpublishedBlogEntries.txt b/data/_BlogPlugin/RenderUnpublishedBlogEntries.txt deleted file mode 100644 index e05e247..0000000 --- a/data/_BlogPlugin/RenderUnpublishedBlogEntries.txt +++ /dev/null @@ -1,51 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142177586" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * AUTHOR: only list unpublished stuff by the given author (optional) - ----++ Implementation - -%STARTINCLUDE% -*~~ -%~~ DBQUERY{"TopicType=~'\bBlogEntry\b' AND State='unpublished' AND name=~'^\bBlog' -~~~ %IFDEFINED{"%AUTHOR%" then="AND BlogAuthor=~'\b%AUTHOR%\b'" glue="off"}%" -~~~ order="created" reverse="on" -~~~ hidenull="on" -~~~ header=" -~~~
    -~~~

    Unpublished$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt

    -~~~
    " -~~~ }% -*~~ -%STOPINCLUDE% -
    - - - ----++ Test -
    -%DBCALL{"%TOPIC%"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a list of BlogEntries that are not yet published"}% diff --git a/data/_BlogPlugin/RenderUploadImageButton.txt b/data/_BlogPlugin/RenderUploadImageButton.txt deleted file mode 100644 index 0820fd8..0000000 --- a/data/_BlogPlugin/RenderUploadImageButton.txt +++ /dev/null @@ -1,30 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130169817" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * TEXT text to be displayed on the button - ----++ Implementation -%STARTINCLUDE% -*~~ -
    - -
    -*~~ -%STOPINCLUDE% - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Renders a button upload BlogImages"}% diff --git a/data/_BlogPlugin/RenderValidateButton.txt b/data/_BlogPlugin/RenderValidateButton.txt deleted file mode 100644 index bdf7c6b..0000000 --- a/data/_BlogPlugin/RenderValidateButton.txt +++ /dev/null @@ -1,37 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1138287657" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Implementation -%STARTINCLUDE% -~~~ -
    -
    - - -
    -
    -~~~ -%STOPINCLUDE% - - - ----++ Test -
    -%DBCALL{"%TOPIC%" TEXT="Validate Html"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render a button to validate the html of the page that it is on"}% diff --git a/data/_BlogPlugin/RenderVisitors.txt b/data/_BlogPlugin/RenderVisitors.txt deleted file mode 100644 index d1ad0b9..0000000 --- a/data/_BlogPlugin/RenderVisitors.txt +++ /dev/null @@ -1,34 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1143536037" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters -NONE - ----++ Implementation -%STARTINCLUDE% -*~~ -%~~ LASTVISITORS{ -~~~ days="7" -~~~ header="
    -~~~

    Visitors$percntREDDOT{\"%WEB%.%TOPIC%\"}$percnt

    " -~~~ }% -*~~ -%STOPINCLUDE% - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Render the visitors for the sidebar"}% diff --git a/data/_BlogPlugin/RenderWebChanges.txt b/data/_BlogPlugin/RenderWebChanges.txt deleted file mode 100644 index 602ab2c..0000000 --- a/data/_BlogPlugin/RenderWebChanges.txt +++ /dev/null @@ -1,54 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1135113209" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+ Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * SKIP: topic offset - * LIMIT: number of hits per page - ----++ Implementation - -%STARTINCLUDE% -*~~ -%~~ DBQUERY{ -~~~ order="modified" -~~~ limit="%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="10"}%" -~~~ reverse="on" -~~~ skip="%SKIP%" -~~~ header="$n -~~~ | * * | *Topic* | *Type* | *Changed* | *Author* |" -~~~ format=" -~~~ | $index -~~~ | [[$web.$topic][$topic]] -~~~ | $percntFORMATLIST{\"$formfield(TopicType)\" sort=\"on\" format=\"[[$web.$1][$1]]\"}$percnt -~~~ | $formatTime(info.date) | [[%MAINWEB%.$expand(info.author)][$expand(info.author)]] |$n -~~~ |   |
    $flatten($expand(Teaser or Headline or TopicDescription or Text or 'no description'))
    ||||" -~~~ footer="$percntCALC{\"$dollarSET(nrTopics,$count)\"}$percnt$n
    " -~~~ }% -%~~ DBCALL{"RenderPageNavigation" -~~~ SKIP="%SKIP%" -~~~ MAX="%CALC{"$GET(nrTopics)"}%" -~~~ LIMIT="%IFDEFINED{"%LIMIT%" then="%LIMIT%" else="10"}%" -~~~ }% -*~~ -%STOPINCLUDE% -
    - ----++ Test -
    -%DBCALL{"%TOPIC%" SKIP="%URLPARAM{"skip" default=" 0"}%" LIMIT="5"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Replacement for Foswiki's default WebChanges"}% diff --git a/data/_BlogPlugin/RenderWebTools.txt b/data/_BlogPlugin/RenderWebTools.txt deleted file mode 100644 index 4fee19f..0000000 --- a/data/_BlogPlugin/RenderWebTools.txt +++ /dev/null @@ -1,35 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1153496266" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicFunction"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * - ----++ Implementation -%STARTINCLUDE% -
    -

    [[WebHome][%WEB%]]%REDDOT{"%WEB%.%TOPIC%"}%

    -
    %SITEMAPUSETO%
    - * [[WebHome][Home]] - * [[BlogAbout][About]] - * [[BlogArchive][Archive]] - * [[WebSearch][Search]] - * [[NewsFeeds][Aggregations]] - * [[WebChanges][Changes]] - * [[WebNotify][Notifications]] - * [[WebStatistics][Statistics]] -
    -%STOPINCLUDE% - -%DBCALL{"RenderFunctionCallers"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicFunction"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Render a tools sidebar section displayed when using PatternbSkin"}% diff --git a/data/_BlogPlugin/RssViewTemplate.txt b/data/_BlogPlugin/RssViewTemplate.txt deleted file mode 100644 index b98efe9..0000000 --- a/data/_BlogPlugin/RssViewTemplate.txt +++ /dev/null @@ -1,15 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142931519" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% - - -%DBCALL{"%WEB%.%TOPIC%" warn="off"}% -%{ - -}% -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="View for the rss feeds"}% diff --git a/data/_BlogPlugin/SubjectCategory.txt b/data/_BlogPlugin/SubjectCategory.txt deleted file mode 100644 index 57dac97..0000000 --- a/data/_BlogPlugin/SubjectCategory.txt +++ /dev/null @@ -1,38 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139335204" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="DataFormAttribute"}% ----++ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -See also: %TOPIC%Template, FrontPage - - -
    - - - - - - - - - -
    -
    -
    - -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% -%DBCALL{"RenderDataFormList" ATTR="%TOPIC%"}% - - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicType, DataFormAttribute"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType and DataFormAttribute that describes BlogEntry categories"}% diff --git a/data/_BlogPlugin/SubjectCategoryForm.txt b/data/_BlogPlugin/SubjectCategoryForm.txt deleted file mode 100644 index 1456637..0000000 --- a/data/_BlogPlugin/SubjectCategoryForm.txt +++ /dev/null @@ -1,22 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148406023" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="DataForm"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -| *Name:*| *Type:* | *Size:* | *Values:* | *Tooltip message:* | *Attributes:* | -| TopicType | label | 1 | SubjectCategory, FrontPage | document type | M | -| TopicDescription | text | 75 | | short description of the role of this topic | | -| Comment | textarea | 80x4 | | informal description | | - - - -See also: %SYSTEMWEB%.DataForms - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="DataForm"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="DataForm for SubjectCategories"}% diff --git a/data/_BlogPlugin/SubjectCategoryTemplate.txt b/data/_BlogPlugin/SubjectCategoryTemplate.txt deleted file mode 100644 index 6fbdb1b..0000000 --- a/data/_BlogPlugin/SubjectCategoryTemplate.txt +++ /dev/null @@ -1,15 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1131397120" format="1.1" version="1.1"}% - -%STARTSECTION{type="templateonly"}% - -%ENDSECTION{type="templateonly"}% -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create SubjectCategories"}% diff --git a/data/_BlogPlugin/SubjectCategoryViewTemplate.txt b/data/_BlogPlugin/SubjectCategoryViewTemplate.txt deleted file mode 100644 index d24ca24..0000000 --- a/data/_BlogPlugin/SubjectCategoryViewTemplate.txt +++ /dev/null @@ -1,22 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1146300810" format="1.1" reprev="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicView"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"contentheader"}%%TMPL:END% -%TMPL:DEF{"content"}% -%DBCALL{"RenderBlogEntriesInCategory" - CAT="%TOPIC%" - SKIP="%URLPARAM{"skip" default=" 0"}%" - LIMIT="%URLPARAM{"limit" default="5"}%" -}% -%TMPL:END% %{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicView"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicView for SubjectCategories"}% -%META:TOPICMOVED{by="MichaelDaum" date="1146300810" from="Blog.SubjectCategoryView" to="Blog.SubjectCategoryViewTemplate"}% diff --git a/data/_BlogPlugin/TestBlogEntry0.txt b/data/_BlogPlugin/TestBlogEntry0.txt deleted file mode 100644 index cd15a87..0000000 --- a/data/_BlogPlugin/TestBlogEntry0.txt +++ /dev/null @@ -1,18 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142193664" format="1.1" version="1.1"}% - -%META:FORM{name="BlogEntryForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="BlogEntry"}% -%META:FIELD{name="Headline" attributes="M" title="Headline" value="Let's get blogged"}% -%META:FIELD{name="BlogAuthor" attributes="M" title="BlogAuthor" value="MichaelDaum"}% -%META:FIELD{name="SubjectCategory" attributes="M" title="SubjectCategory" value=""}% -%META:FIELD{name="Teaser" attributes="M" title="Teaser" value="This is a test blog entry."}% -%META:FIELD{name="Text" attributes="" title="Text" value="We will use this BlogEntry for testing, especially for all [[TopicFunctions]]. The state of %0d%0athis BlogEntry is 'unpublished' to exclude it from the [[FrontPages]].%0d%0a%0d%0a%0d%0aThis edit isn't on speedy anymore.%0d%0a%0d%0a"}% -%META:FIELD{name="State" attributes="" title="State" value="unpublished"}% -%META:FIELD{name="Related" attributes="" title="Related" value=""}% -%META:FIELD{name="Date" attributes="M" title="Date" value="13 Aug 2005 - 01:42"}% -%META:FIELD{name="BlogTag" attributes="" title="BlogTag" value="archive:2 blogdev:2 navigation plugin release foswiki webdev wordpress"}% diff --git a/data/_BlogPlugin/TopicDescription.txt b/data/_BlogPlugin/TopicDescription.txt deleted file mode 100644 index 43c7a13..0000000 --- a/data/_BlogPlugin/TopicDescription.txt +++ /dev/null @@ -1,16 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1124204963" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="DataFormAttribute"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% -%DBCALL{"RenderDataFormList" ATTR="%TOPIC%"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="" title="TopicType" value="DataFormAttribute"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="describes the function of a topic"}% - diff --git a/data/_BlogPlugin/TopicForm.txt b/data/_BlogPlugin/TopicForm.txt deleted file mode 100644 index 82f7638..0000000 --- a/data/_BlogPlugin/TopicForm.txt +++ /dev/null @@ -1,19 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148406063" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -| *Name:*| *Type:* | *Size:* | *Values:* | *Tooltip message:* | * Attributes:* | -| TopicType | checkbox | 3 |%DBQUERY{"TopicType=~'\bTopicType\b'" separator=", "}% | document type | M | -| TopicDescription | text | 75 | | short description of the role of this topic | | - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="DataForm"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="DataForm attached to general WikiTopics"}% diff --git a/data/_BlogPlugin/TopicFunction.txt b/data/_BlogPlugin/TopicFunction.txt deleted file mode 100644 index f04465e..0000000 --- a/data/_BlogPlugin/TopicFunction.txt +++ /dev/null @@ -1,20 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139335278" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -%DBCALL{"RenderNewTopicTypeForm" NAME="%TOPIC%" TEMPLATE="%TOPIC%Template" warn="off"}% -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% - -See also: %TOPIC%Template - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool, TopicType"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType of topics to be called by a (parameterized) INCLUDE or DBCALL"}% diff --git a/data/_BlogPlugin/TopicFunctionTemplate.txt b/data/_BlogPlugin/TopicFunctionTemplate.txt deleted file mode 100644 index 516a150..0000000 --- a/data/_BlogPlugin/TopicFunctionTemplate.txt +++ /dev/null @@ -1,32 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1127293510" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% ----+!! Function: %TOPIC% -%FORMFIELD{"TopicDescription"}% - ----++ Parameters - * - ----++ Implementation - -%STARTINCLUDE% -%STOPINCLUDE% - - - - ----++ Test -
    -%DBCALL{"%TOPIC%"}% -
    - -%DBCALL{"RenderFunctionCallers"}% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create TopicFunctions"}% diff --git a/data/_BlogPlugin/TopicTemplate.txt b/data/_BlogPlugin/TopicTemplate.txt deleted file mode 100644 index 1bb2008..0000000 --- a/data/_BlogPlugin/TopicTemplate.txt +++ /dev/null @@ -1,17 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1132096812" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicType"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -%DBCALL{"RenderNewTopicTypeForm" NAME="%TOPIC%" TEMPLATE="%TOPIC%Template" warn="off"}% -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool, TopicType"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType used to create topics of the associated type"}% -%META:TOPICMOVED{by="MichaelDaum" date="1124113548" from="Blog.BlogTemplate" to="Blog.TopicTemplate"}% diff --git a/data/_BlogPlugin/TopicTemplateTemplate.txt b/data/_BlogPlugin/TopicTemplateTemplate.txt deleted file mode 100644 index edc0ced..0000000 --- a/data/_BlogPlugin/TopicTemplateTemplate.txt +++ /dev/null @@ -1,26 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1131092027" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% - - - - - - - - - - - - -%STARTSECTION{type="templateonly"}% - -%ENDSECTION{type="templateonly"}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create a TopicTemplate"}% diff --git a/data/_BlogPlugin/TopicType.txt b/data/_BlogPlugin/TopicType.txt deleted file mode 100644 index 6d5416a..0000000 --- a/data/_BlogPlugin/TopicType.txt +++ /dev/null @@ -1,24 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1132096928" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="WebHome"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -%DBCALL{"RenderNewTopicTypeForm" NAME="%TOPIC%" TEMPLATE="%TOPIC%Template" warn="off"}% -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% -%DBCALL{"RenderTopicList" NAME="%TOPIC%, DataFormAttribute"}% -%DBCALL{"RenderDataFormList" ATTR="%TOPIC%"}% - -See also: TopicTypeTemplate - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool, TopicType, DataFormAttribute"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType of all possible TopicTypes in the %25WEB%25 web"}% -%META:TOPICMOVED{by="MichaelDaum" date="1123962566" from="Blog.TopicCategory" to="Blog.TopicType"}% diff --git a/data/_BlogPlugin/TopicTypeTemplate.txt b/data/_BlogPlugin/TopicTypeTemplate.txt deleted file mode 100644 index aa1f10e..0000000 --- a/data/_BlogPlugin/TopicTypeTemplate.txt +++ /dev/null @@ -1,20 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1125047670" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -%DBCALL{"RenderNewTopicTypeForm" NAME="%TOPIC%" TEMPLATE="%TOPIC%Template" warn="off"}% -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% - -See also: %TOPIC%Template, %TOPIC%Form - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create TopicTypes"}% diff --git a/data/_BlogPlugin/TopicView.txt b/data/_BlogPlugin/TopicView.txt deleted file mode 100644 index c66b8dd..0000000 --- a/data/_BlogPlugin/TopicView.txt +++ /dev/null @@ -1,32 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1132096947" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicType"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -
    - - - - - - - - -
    -
    - - -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% - -See also: %TOPIC%Template - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool, TopicType"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType of topics that implement a TMPL template to view topics"}% diff --git a/data/_BlogPlugin/TopicViewTemplate.txt b/data/_BlogPlugin/TopicViewTemplate.txt deleted file mode 100644 index e2c48a6..0000000 --- a/data/_BlogPlugin/TopicViewTemplate.txt +++ /dev/null @@ -1,17 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142931550" format="1.1" version="1.1"}% -%META:TOPICPARENT{name="TopicTemplate"}% -%TMPL:INCLUDE{"view"}% -%TMPL:DEF{"content"}% -%TEXT% -%META{"form"}% -%TMPL:END% %{ - -}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Template to create TopicViews"}% diff --git a/data/_BlogPlugin/WebAggregation.txt b/data/_BlogPlugin/WebAggregation.txt deleted file mode 100644 index 62f0a78..0000000 --- a/data/_BlogPlugin/WebAggregation.txt +++ /dev/null @@ -1,43 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148717191" format="1.1" reprev="1.3" version="1.1"}% -%META:TOPICPARENT{}% ----+!! %TOPIC% -%FORMFIELD{"TopicDescription"}% - -See WebSyndication for a description of the different feeds that are available. - -%TOC% - ----++ %WEB% entry feed -%WEBRSS%%WEBATOM% -
    -%HEADLINES{"%WEB%/WebRss" limit="3"}% -
    - ----++ %WEB% teaser feed -%WEBRSSTEASER%%WEBATOMTEASER% -
    -%HEADLINES{"%WEB%/WebRssTeaser" limit="3"}% -
    - ----++ %WEB% comments feed -%WEBRSSCOMMENTS%%WEBATOMCOMMENTS% -
    -%HEADLINES{"%WEB%/WebRssComments" limit="3"}% -
    - ----++ %WEB% combined feed -%WEBRSSCOMBINED%%WEBATOMCOMBINED% -
    -%HEADLINES{"%WEB%/WebRssCombined" limit="3"}% -
    - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="News Aggregation of this blog"}% -%META:TOPICMOVED{by="MichaelDaum" date="1138903300" from="Blog.BlogSyndication" to="Blog.WebRssAggregation"}% diff --git a/data/_BlogPlugin/WebAliases.txt b/data/_BlogPlugin/WebAliases.txt deleted file mode 100644 index acf58c3..0000000 --- a/data/_BlogPlugin/WebAliases.txt +++ /dev/null @@ -1,43 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1145545696" format="1.1" reprev="1.16" version="1.1"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -see also: %SYSTEMWEB%.WebAliases, %SYSTEMWEB%.AliasPlugin - -%STOPALIASAREA% -%UNALIAS% - - - -%ALIASES% - -%STARTALIASAREA% - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Aliases for the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebAtom.txt b/data/_BlogPlugin/WebAtom.txt deleted file mode 100644 index c53ae76..0000000 --- a/data/_BlogPlugin/WebAtom.txt +++ /dev/null @@ -1,24 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130253048" format="1.1" version="1.1"}% - -%STARTINCLUDE% -*~~ -%STOPALIASAREA% -*~~ -*~~ -%~~ DBCALL{"RenderAtom" -~~~ SEARCH="TopicType=~'\bBlogEntry\b' AND State='published'" -~~~ LIMIT="20" -~~~ TITLE="%WIKITOOLNAME% %WEB%" -~~~ }% -~~~ -*~~ -%STOPINCLUDE% - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Rss feed of the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebAtomCombined.txt b/data/_BlogPlugin/WebAtomCombined.txt deleted file mode 100644 index 27ff8fd..0000000 --- a/data/_BlogPlugin/WebAtomCombined.txt +++ /dev/null @@ -1,25 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130253048" format="1.1" version="1.1"}% - -%STARTINCLUDE% -*~~ -%STOPALIASAREA% -*~~ -*~~ -%~~ DBCALL{"RenderAtom" -~~~ SEARCH="(TopicType=~'\bBlogEntry\b' AND State='published') OR -~~~ TopicType=~'\bBlogComment\b'" -~~~ LIMIT="20" -~~~ TITLE="%WIKITOOLNAME% %WEB% (combined)" -~~~ }% -~~~ -*~~ -%STOPINCLUDE% - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Rss feed of the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebAtomComments.txt b/data/_BlogPlugin/WebAtomComments.txt deleted file mode 100644 index d379ea5..0000000 --- a/data/_BlogPlugin/WebAtomComments.txt +++ /dev/null @@ -1,25 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130253048" format="1.1" version="1.1"}% - -%STARTINCLUDE% -*~~ - %STOPALIASAREA% -*~~ -%~~ DBCALL{"RenderAtom" -~~~ SEARCH="TopicType=~'\bBlogComment\b' -~~~ %IFDEFINEDTHEN{"%URLPARAM{"name"}%"}% -~~~ AND BaseRef='$test' -~~~ %FIDEFINED%" -~~~ LIMIT="20" -~~~ TITLE="%WIKITOOLNAME% %WEB% (comments)" -~~~ }% -*~~ -%STOPINCLUDE% - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Rss feed of the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebAtomTeaser.txt b/data/_BlogPlugin/WebAtomTeaser.txt deleted file mode 100644 index 173208e..0000000 --- a/data/_BlogPlugin/WebAtomTeaser.txt +++ /dev/null @@ -1,25 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130253048" format="1.1" version="1.1"}% - -%STARTINCLUDE% -*~~ -%STOPALIASAREA% -*~~ -*~~ -%~~ DBCALL{"RenderAtom" -~~~ SEARCH="TopicType=~'\bBlogEntry\b' AND State='published'" -~~~ LIMIT="20" -~~~ TITLE="%WIKITOOLNAME% %WEB% (teaser)" -~~~ TEASEONLY="on" -~~~ }% -*~~ -%STOPINCLUDE% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Rss feed of the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebButtons.txt b/data/_BlogPlugin/WebButtons.txt deleted file mode 100644 index a56db6f..0000000 --- a/data/_BlogPlugin/WebButtons.txt +++ /dev/null @@ -1,16 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148256089" format="1.1" version="1.1"}% ----++ %TOPIC% -%STARTINCLUDE% - -%STOPINCLUDE% - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Set the buttons in the horizontal navigation bar"}% diff --git a/data/_BlogPlugin/WebChanges.txt b/data/_BlogPlugin/WebChanges.txt deleted file mode 100644 index fa6444e..0000000 --- a/data/_BlogPlugin/WebChanges.txt +++ /dev/null @@ -1,17 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139651993" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% -%~~ DBCALL{"RenderWebChanges" -~~~ SKIP="%URLPARAM{"skip" default=" 0"}%" -~~~ LIMIT="%URLPARAM{"limit" default="10"}%" -~~~ }% - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Display the most recent changes in this web"}% diff --git a/data/_BlogPlugin/WebCss.txt b/data/_BlogPlugin/WebCss.txt deleted file mode 100644 index 45e23fc..0000000 --- a/data/_BlogPlugin/WebCss.txt +++ /dev/null @@ -1,32 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1148574824" format="1.1" reprev="1.3" version="1.1"}% ----+ %TOPIC% - -Switches off revision info and breadcrumbs. -Switches off authorship information on postings if this blog -is single-authored (or even null-authored). - -Note, this only works with Foswiki:Extensions.NatSkin. - - -%STARTINCLUDE% -~~~ .natMainHeaderContents, -~~~ .natRevision, .natWebLocator, .headlinesLogo -~~~ { display:none; } -%~~ IFDEFINED{" -*~~ -%~~ DBQUERY{"TopicType=~'\bBlogAuthor\b'" web="%WEB%" limit="1" -~~~ header="$count" format="none" separator="none" -~~~ }%" -~~~ as="0|1" -~~~ then=".blogAuthor, .blogAuthorSwitch {display:none;}" -~~~ glue="off" -~~~ }% -%STOPINCLUDE% - - ----++ Test -
    %DBCALL{"%TOPIC%"}%
    - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Additional css for this web"}% diff --git a/data/_BlogPlugin/WebHome.txt b/data/_BlogPlugin/WebHome.txt deleted file mode 100644 index 0d9708b..0000000 --- a/data/_BlogPlugin/WebHome.txt +++ /dev/null @@ -1,21 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1142193717" format="1.1" version="1.1"}% -%STARTINCLUDE% -%~~ DBCALL{"%WEB%.RenderFrontPage" -~~~ SKIP="%URLPARAM{"skip"}%" -~~~ LIMIT="%URLPARAM{"limit"}%" -~~~ CAT="%URLPARAM{"cat"}%" -~~~ AUTHOR="%URLPARAM{"author" default=".*"}%" -~~~ }% -%STOPINCLUDE% - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="BlogComment"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="%25SITEMAPUSETO%25"}% diff --git a/data/_BlogPlugin/WebIndex.txt b/data/_BlogPlugin/WebIndex.txt deleted file mode 100644 index 384c2d7..0000000 --- a/data/_BlogPlugin/WebIndex.txt +++ /dev/null @@ -1,6 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1112002813" format="1.0" version="1.1"}% -%META:TOPICPARENT{name="WebHome"}% -See WebTopicList - diff --git a/data/_BlogPlugin/WebLeftBar.txt b/data/_BlogPlugin/WebLeftBar.txt deleted file mode 100644 index e950ad8..0000000 --- a/data/_BlogPlugin/WebLeftBar.txt +++ /dev/null @@ -1,28 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1133267437" format="1.1" version="1.1"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -See also: RenderAdminTools, RenderSideBar, WebSideBar - -
    -
    -%STARTINCLUDE% -%IFDEFINEDTHEN{"%WIKINAME%" as="WikiGuest"}% -%LOGIN% or [[%SYSTEMWEB%.UserRegistration][Register]] -%ELSEDEFINED% -Hello [[%WIKIUSERNAME%][%SPACEOUT{%WIKINAME%}%]]%BR%%LOGOUT% -%FIDEFINED% -%DBCALL{"RenderWebTools"}% -%DBCALL{"RenderSideBar"}% -%STOPINCLUDE% -
    -
    - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="WebSideBar used by the %SYSTEMWEB%.PatternSkin"}% diff --git a/data/_BlogPlugin/WebNotify.txt b/data/_BlogPlugin/WebNotify.txt deleted file mode 100644 index 3be5f6c..0000000 --- a/data/_BlogPlugin/WebNotify.txt +++ /dev/null @@ -1,28 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1140002934" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ %TOPIC% - -This is a subscription service to be automatically notified by e-mail when topics change in this *%WEB%* 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 %SYSTEMWEB%.WikiName in alphabetical order to this list: - - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Notification list on the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebPreferences.txt b/data/_BlogPlugin/WebPreferences.txt deleted file mode 100644 index cbe1a48..0000000 --- a/data/_BlogPlugin/WebPreferences.txt +++ /dev/null @@ -1,163 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1150295122" format="1.1" version="1.1"}% ----+!! %WEB% Web Preferences -%FORMFIELD{"TopicDescription"}% - -See also the BlogAbout page to write about you and your blog. Use the %SYSTEMWEB%.BlogFactory -to create more blogs. - -%TOC% - ----+++ Naming -Text to be displayed on the sitemap and in the headerbar describing this web -using a kind of tagline: - * Set SITEMAPWHAT = Welcome to BlogUp - * Set SITEMAPUSETO = Welcome to BlogUp - -Name of this blog displayed in the header if you are using the NatSkin: - * Set WEBTOOLNAME = - -Color to be displayed in the sitemap representing this web: - * Set WEBBGCOLOR = #E2DCC8 - -Flag to enable/disable listing this web on the sitemap: - * Set SITEMAPLIST = on - - ----+++ Copyright -Copyright text to appear at the bottom of each page: - * Set WEBCOPYRIGHT = Copyright © 1999-%GMTIME{"$year"}% by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding %WIKITOOLNAME%? Send feedback. - -Copyright text to be added to the syndication feeds of this blog: - * Set WEBRSSCOPYRIGHT = Copyright © %GMTIME{"$year"}% by contributing authors - -See also the TopicFunction RenderLicense to display a content license icon in the sidebar. - ----+++ Search -Flag to include/exclude this web from Foswiki's SEARCH - * Set NOSEARCHALL = - -NatSearch customization for BlogUp (expert settings): - * Set NATSEARCHINCLUDEWEB = _BlogPlugin - * Set NATSEARCHEXCLUDEWEB = - * Set NATSEARCHINCLUDETOPIC = (BlogEntry|BlogComment|BlogPage)\d+.* - * Set NATSEASRCHEXCLUDETOPIC = - -Note this is only relevant if you are using Foswiki:Extensions.NatSkin - -Flag to enable/disable automatic linking of %SYSTEMWEB%.WikiWords - * Set NOAUTOLINK = - ----+++ Technorati -Code of your blog you get if you claim this blog at technorati. If set -technorati will crawl your blog periodically and/or when you ping technorati. -In addition you will get a sidebar section linking to your technorati profile -and tools. Technorati will visit your blog to - * Set TECHNORATICODE = - ----+++ Google -Client code if you apply for Google Adsense. If set you switch on google ads -in your blog at "strategic" points. - * Set GOOGLEADSENSECODE = - -Default adsense colours. Adjust them to match your skin. See also RenderGoogleAdsense. -(TODO: ship colors that match Kubrick) - * Set GOOGLEADS_BGCOLOR = 111111 - * Set GOOGLEADS_TEXTCOLOR = e2e2e2 - * Set GOOGLEADS_BORDERCOLOR = 003366 - * Set GOOGLEADS_LINKCOLOR = FEA900 - * Set GOOGLEADS_URLCOLOR = ffffff - ----+++ TagCloud colors -Default colors for the BlogArchive's tagclouds (startRed,startGreen,startBlue,endRed,endGreen,endBlue). - * Set TAGCLOUDFADE = 124,164,204,40,102,204 - * #Set TAGCLOUDFADE = 0,101,205,153,255,102 - * #Set TAGCLOUDFADE = 153,255,102,254,169,0 - * #Set TAGCLOUDFADE = 40,102,204,254,169,0 - * #Set TAGCLOUDFADE = 40,102,204,153,255,102 - ----+++ Syndication -Default refresh rate for BlogLinks with rss feeds; - * Set RSSREFRESH = 1440 - -Syndication variables (expert settings): - * Set WEBRSS = RSS - * Set WEBRSSTEASER = RSS TEASER - * Set WEBRSSCOMMENTS = RSS COMMENTS - * Set WEBRSSCOMBINED = RSS COMBINED - * Set WEBATOM = ATOM - * Set WEBATOMTEASER = ATOM TEASER - * Set WEBATOMCOMMENTS = ATOM COMMENTS - * Set WEBATOMCOMBINED = ATOM COMBINED - * Set WEBSYNDICATION = [[%WEB%.WebSyndication][Syndicate]] this site %WEBRSS%%WEBRSSCOMMENTS%%WEBATOM%%WEBATOMCOMMENTS% - - ----+++ Last.fm -Nickname you registered at last.fm. If set the 10 most rescent tracks that -you listened to (and submitted to last.fm) will be displayed in the sidebar. - * Set LASTFMNICK = - - ----+++ Sidebar -BlogComment aging. This is the time interval in epoch seconds that comments -are considered "recent" and displayed in the sidebar. See RenderRecentComments. - * Set COMMENTSAGE = 2592000 - ----+++ Skin -Chose the skin to be used for this web: - * #Set SKIN = pattern - -PatternSkin styles for BlogUp: - * Set USERSTYLEURL = %PUBURLPATH%/%SYSTEMWEB%/BlogPlugin/patternstyle.css - -NatSkin variables: - * Set SKINSTYLE = Kubrick - * Set STYLESIDEBAR = right - * Set STYLEBORDER= thin - * Set STYLEBUTTONS = on - * Set STYLEVARIATION = - * Set STYLESEARCHBOX = pos2 - ----+++ Access rights - * Set #DENYWEBVIEW = - * Set #ALLOWWEBVIEW = - * Set DENYWEBCHANGE = %MAINWEB%.WikiGuest - * Set #ALLOWWEBCHANGE = %MAINWEB%.BlogAuthorGroup - * Set DENYWEBRENAME = %MAINWEB%.WikiGuest - * Set ALLOWWEBRENAME = %MAINWEB%.BlogAuthorGroup - * Set ALLOWTOPICCHANGE = %MAINWEB%.AdminGroup - * Set ALLOWTOPICRENAME = %MAINWEB%.AdminGroup - ----+++ Misc -DBCachePlugin settings registering the BlogPlugin's WebDB -implementation for this web (don't change): - * Set WEBDB = Foswiki::Plugins::BlogPlugin::WebDB - -Initialization of WebButtons variables (don't change): - * Set WEBBUTTONSCLASS_HOME = - * Set WEBBUTTONSCLASS_NEWS = - * Set WEBBUTTONSCLASS_ARCHIVE = - * Set WEBBUTTONSCLASS_ABOUT = - -Definition of DataForms (expert settings): - * Set WEBFORMS = BlogEntryForm, TopicForm, BlogCommentForm, BlogLinkForm, BlogPageForm, SubjectCategoryForm, BlogAuthorForm - -TopicFunctions to generate html page header information: - - * Set HTTP_EQUIV_ON_VIEW = %DBCALL{"RenderHttpEquivs"}% - * Set PAGETITLE = $percntDBCALL{\"RenderPageTitle\"}$percnt - * Set DEFAULT_METAKEYWORDS = Foswiki, Blogging, BlogPlugin, BlogUp, BlogUpRing - * Set METAKEYWORDS = %DEFAULT_METAKEYWORDS% - * #Set METAAUTHOR = - * #Set METADESCRIPTION = - - - * Set FINALPREFERENCES = ATTACHFILESIZELIMIT, WIKIWEBMASTER, WEBCOPYRIGHT, WEBTOPICLIST, DENYWEBVIEW, ALLOWWEBVIEW, DENYWEBCHANGE, ALLOWWEBCHANGE, DENYWEBRENAME, ALLOWWEBRENAME, WEBDB - -__Related Topics__: - * [[%LOCALSITEPREFS%]] - * [[%SYSTEMWEB%.DefaultPreferences]] - * [[%USERSWEB%.SitePreferences]] - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="" title="TopicDescription" value="Preferences of the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebRss.txt b/data/_BlogPlugin/WebRss.txt deleted file mode 100644 index 6b499e5..0000000 --- a/data/_BlogPlugin/WebRss.txt +++ /dev/null @@ -1,21 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130253048" format="1.1" version="1.1"}% - -%STARTINCLUDE% -*~~ - %STARTALIASAREA% -*~~ -%~~ DBCALL{"RenderRss" -~~~ SEARCH="TopicType=~'\bBlog(Entry|Page)\b' AND State='published'" -~~~ LIMIT="20" -~~~ TITLE="%WIKITOOLNAME% %WEB%" -~~~ }% %STOPALIASAREA% -*~~ -%STOPINCLUDE% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Rss feed of the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebRssCombined.txt b/data/_BlogPlugin/WebRssCombined.txt deleted file mode 100644 index ccab518..0000000 --- a/data/_BlogPlugin/WebRssCombined.txt +++ /dev/null @@ -1,22 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130253048" format="1.1" version="1.1"}% - -%STARTINCLUDE% -*~~ - %STARTALIASAREA% -*~~ -%~~ DBCALL{"RenderRss" -~~~ SEARCH="(TopicType=~'\bBlog(Entry|Page)\b' AND State='published') OR -~~~ TopicType=~'\bBlogComment\b'" -~~~ LIMIT="20" -~~~ TITLE="%WIKITOOLNAME% %WEB% (combined)" -~~~ }% %STOPALIASAREA% -*~~ -%STOPINCLUDE% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Rss feed of the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebRssComments.txt b/data/_BlogPlugin/WebRssComments.txt deleted file mode 100644 index 387889e..0000000 --- a/data/_BlogPlugin/WebRssComments.txt +++ /dev/null @@ -1,24 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130253048" format="1.1" version="1.1"}% - -%STARTINCLUDE% -*~~ - %STARTALIASAREA% -*~~ -%~~ DBCALL{"RenderRss" -~~~ SEARCH="TopicType=~'\bBlogComment\b' -~~~ %IFDEFINEDTHEN{"%URLPARAM{"name"}%"}% -~~~ AND BaseRef='$test' -~~~ %FIDEFINED%" -~~~ LIMIT="20" -~~~ TITLE="%WIKITOOLNAME% %WEB% (comments)" -~~~ }% %STOPALIASAREA% -*~~ -%STOPINCLUDE% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Rss feed of the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebRssTeaser.txt b/data/_BlogPlugin/WebRssTeaser.txt deleted file mode 100644 index abcb8e4..0000000 --- a/data/_BlogPlugin/WebRssTeaser.txt +++ /dev/null @@ -1,22 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1130253048" format="1.1" version="1.1"}% - -%STARTINCLUDE% -*~~ - %STARTALIASAREA% -*~~ -%~~ DBCALL{"RenderRss" -~~~ SEARCH="TopicType=~'\bBlogEntry\b' AND State='published'" -~~~ LIMIT="20" -~~~ TITLE="%WIKITOOLNAME% %WEB% (teaser)" -~~~ TEASEONLY="on" -~~~ }% %STOPALIASAREA% -*~~ -%STOPINCLUDE% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Rss feed of the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebSearch.txt b/data/_BlogPlugin/WebSearch.txt deleted file mode 100644 index 736c661..0000000 --- a/data/_BlogPlugin/WebSearch.txt +++ /dev/null @@ -1,3 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1111931141" format="1.0" version="1.1"}% -%META:TOPICPARENT{name="WebHome"}% -%INCLUDE{"%SYSTEMWEB%.WebSearch"}% diff --git a/data/_BlogPlugin/WebSearchAdvanced.txt b/data/_BlogPlugin/WebSearchAdvanced.txt deleted file mode 100644 index d0dc0b2..0000000 --- a/data/_BlogPlugin/WebSearchAdvanced.txt +++ /dev/null @@ -1,3 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1111931141" format="1.0" version="1.1"}% -%META:TOPICPARENT{name="WebSearch"}% -%INCLUDE{"%SYSTEMWEB%.WebSearchAdvanced"}% diff --git a/data/_BlogPlugin/WebSideBar.txt b/data/_BlogPlugin/WebSideBar.txt deleted file mode 100644 index eb8fd75..0000000 --- a/data/_BlogPlugin/WebSideBar.txt +++ /dev/null @@ -1,22 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1131566032" format="1.1" version="1.1"}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -See also: RenderAdminTools, RenderSideBar, WebLeftBar - -
    -
    -%STARTINCLUDE%%DBCALL{"RenderSideBar"}%%STOPINCLUDE% -
    -
    - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Sidebar of the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebSyndication.txt b/data/_BlogPlugin/WebSyndication.txt deleted file mode 100644 index 7a55e4e..0000000 --- a/data/_BlogPlugin/WebSyndication.txt +++ /dev/null @@ -1,34 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1140002604" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ News feeds for the %WEB% web - -%STARTINCLUDE% -This blog offers a set of syndication feeds that you might chose from. - - * RSS-1.0 format - * %WEBRSS% all blog entries and pages, full content - * %WEBRSSTEASER% all blog entries showing only the teaser part - * %WEBRSSCOMBINED% all blog entries, pages and comments - * %WEBRSSCOMMENTS% blog comments only - - * ATOM-1.0 format - * %WEBATOM% all blog entries and pages, full content - * %WEBATOMTEASER% all blog entries showing only the teaser part - * %WEBATOMCOMBINED% all blog entries, pages and comments - * %WEBATOMCOMMENTS% blog comments only - -See the WebAggregation for a demonstration of the different feeds. -%STOPINCLUDE% - -Please contact one of your [[%MAINWEB%.BlogAdminGroup][BlogAdmins]] in case that there are any problems. - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool, WikiTopic"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Syndication feeds for the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebTopicEditTemplate.txt b/data/_BlogPlugin/WebTopicEditTemplate.txt deleted file mode 100644 index f4f8bd8..0000000 --- a/data/_BlogPlugin/WebTopicEditTemplate.txt +++ /dev/null @@ -1,22 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1138892223" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - - - - --- %WIKIUSERNAME% - %DATE% - - -%STARTSECTION{type="templateonly"}% - -%ENDSECTION{type="templateonly"}% - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicTemplate"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="Generic template for topics in the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebTopicList.txt b/data/_BlogPlugin/WebTopicList.txt deleted file mode 100644 index f8105f2..0000000 --- a/data/_BlogPlugin/WebTopicList.txt +++ /dev/null @@ -1,10 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139339192" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% -%TOPICLIST{" 1 [[$name]]"}% - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="AdminTool"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="List of all topics in the %25WEB%25 web"}% diff --git a/data/_BlogPlugin/WebTopicViewTemplate.txt b/data/_BlogPlugin/WebTopicViewTemplate.txt deleted file mode 100644 index f4f1853..0000000 --- a/data/_BlogPlugin/WebTopicViewTemplate.txt +++ /dev/null @@ -1,10 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1111929255" format="1.0" version="1.1"}% -%STARTSECTION{name="message"}% ----+ Warning: this page does not exist. - - -Contact %WIKIWEBMASTER% -if you have any questions. - - -%ENDSECTION{name="message"}% diff --git a/data/_BlogPlugin/WikiTopic.txt b/data/_BlogPlugin/WikiTopic.txt deleted file mode 100644 index acc4b59..0000000 --- a/data/_BlogPlugin/WikiTopic.txt +++ /dev/null @@ -1,31 +0,0 @@ -%META:TOPICINFO{author="ProjectContributor" date="1139250099" format="1.1" version="1.1"}% -%META:TOPICPARENT{}% ----+ %TOPIC% -%FORMFIELD{"TopicDescription"}% - -
    -
    - - - - - - - -
    -
    -%DBCALL{"RenderTopicList" NAME="%TOPIC%"}% - -See also: WebTopicEditTemplate, TopicForm - - - - - -%META:FORM{name="TopicForm"}% -%META:FIELD{name="TopicType" attributes="M" title="TopicType" value="TopicType"}% -%META:FIELD{name="TopicDescription" attributes="M" title="TopicDescription" value="TopicType of a normal wiki topic"}% diff --git a/data/_BlogTemplate/BlogEntry.txt b/data/_BlogTemplate/BlogEntry.txt new file mode 100644 index 0000000..f7855ec --- /dev/null +++ b/data/_BlogTemplate/BlogEntry.txt @@ -0,0 +1,11 @@ +%META:TOPICINFO{author="ProjectContributor" comment="" date="1294053750" format="1.1" version="1"}% +%META:TOPICPARENT{name="TopicType"}% + + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications/BlogApp.BlogEntry"}% +%META:PREFERENCE{name="SIDEBAR" title="SIDEBAR" type="Set" value="Admin"}% diff --git a/data/_BlogTemplate/CategorizedTopic.txt b/data/_BlogTemplate/CategorizedTopic.txt new file mode 100644 index 0000000..4e7083c --- /dev/null +++ b/data/_BlogTemplate/CategorizedTopic.txt @@ -0,0 +1,11 @@ +%META:TOPICINFO{author="ProjectContributor" date="1275569487" format="1.1" reprev="1" version="2"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="Categorized Topics"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="ClassificationApp"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications/ClassificationApp.CategorizedTopic"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% +%META:PREFERENCE{name="SIDEBAR" title="SIDEBAR" type="Set" value="Admin"}% diff --git a/data/_BlogTemplate/Category.txt b/data/_BlogTemplate/Category.txt new file mode 100644 index 0000000..46c2d88 --- /dev/null +++ b/data/_BlogTemplate/Category.txt @@ -0,0 +1,11 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1275569671" format="1.1" reprev="2" version="2"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" title="TopicType" value="WebTool, TopicStub, TopicType"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="Category"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="ClassificationApp"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications/ClassificationApp.Category"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% +%META:PREFERENCE{name="SIDEBAR" title="SIDEBAR" type="Set" value="Admin"}% diff --git a/data/_BlogTemplate/ClassifiedTopic.txt b/data/_BlogTemplate/ClassifiedTopic.txt new file mode 100644 index 0000000..3ca41e1 --- /dev/null +++ b/data/_BlogTemplate/ClassifiedTopic.txt @@ -0,0 +1,11 @@ +%META:TOPICINFO{author="ProjectContributor" date="1275569687" format="1.1" reprev="1" version="2"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="Classified Topic"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="ClassificationApp"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications/ClassificationApp.ClassifiedTopic"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% +%META:PREFERENCE{name="SIDEBAR" title="SIDEBAR" type="Set" value="Admin"}% diff --git a/data/_BlogTemplate/TopCategory.txt b/data/_BlogTemplate/TopCategory.txt new file mode 100644 index 0000000..1965ad6 --- /dev/null +++ b/data/_BlogTemplate/TopCategory.txt @@ -0,0 +1,13 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1294233708" format="1.1" reprev="5" version="7"}% +%META:TOPICPARENT{name="WebHome"}% +%DBCALL{"Applications.ClassificationApp.RenderCategory"}% + +%META:FORM{name="Applications.ClassificationApp.Category"}% +%META:FIELD{name="TopicType" title="TopicType" value="Category, CategorizedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="TOP"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value=""}% +%META:FIELD{name="Icon" attributes="" title="Icon" value=""}% +%META:FIELD{name="ImportedCategory" attributes="" title="ImportedCategory" value="Applications.BlogApp.TopCategory"}% +%META:FIELD{name="Order" attributes="" title="Order" value=""}% +%META:PREFERENCE{name="DISPLAYREVISIONINFO" title="DISPLAYREVISIONINFO" type="Local" value="off"}% diff --git a/data/_BlogTemplate/TopicStub.txt b/data/_BlogTemplate/TopicStub.txt new file mode 100644 index 0000000..44d543a --- /dev/null +++ b/data/_BlogTemplate/TopicStub.txt @@ -0,0 +1,11 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1275569737" format="1.1" reprev="2" version="2"}% +%META:TOPICPARENT{name="TopicType"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="TopicStub"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="Placeholder or redirect topics"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.TopicStub"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% +%META:PREFERENCE{name="SIDEBAR" title="SIDEBAR" type="Set" value="Admin"}% diff --git a/data/_BlogTemplate/TopicType.txt b/data/_BlogTemplate/TopicType.txt new file mode 100644 index 0000000..d41ffef --- /dev/null +++ b/data/_BlogTemplate/TopicType.txt @@ -0,0 +1,11 @@ +%META:TOPICINFO{author="ProjectContributor" date="1275569719" format="1.1" reprev="1" version="2"}% +%META:TOPICPARENT{name="WebHome"}% + +%META:FORM{name="Applications.TopicStub"}% +%META:FIELD{name="TopicType" title="TopicType" value="TopicStub, TopicType"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value="TopicType"}% +%META:FIELD{name="Summary" attributes="" title="Summary" value="TopicType of all possible TopicTypes"}% +%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="WikiWorkbench"}% +%META:FIELD{name="Target" attributes="" title="Target" value="Applications.TopicType"}% +%META:FIELD{name="Section" attributes="" title="Section" value=""}% +%META:PREFERENCE{name="SIDEBAR" title="SIDEBAR" type="Set" value="Admin"}% diff --git a/data/_BlogTemplate/WebAtom.txt b/data/_BlogTemplate/WebAtom.txt new file mode 100644 index 0000000..8901807 --- /dev/null +++ b/data/_BlogTemplate/WebAtom.txt @@ -0,0 +1,6 @@ +%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 9914 $"}% +%WIKITOOLNAME%'s <nop>%WEB% web +%MAKETEXT{"The [_1] web of Foswiki, the Free and Open Source Wiki." args="%WEB%"}% +%INCLUDE{"%SYSTEMWEB%.WebAtomBase"}% diff --git a/data/_BlogTemplate/WebChanges.txt b/data/_BlogTemplate/WebChanges.txt new file mode 100644 index 0000000..3d596b3 --- /dev/null +++ b/data/_BlogTemplate/WebChanges.txt @@ -0,0 +1,2 @@ +%META:TOPICINFO{author="ProjectContributor" date="1212998720" format="1.1" version="$Rev: 9914 $"}% +%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}% diff --git a/data/_BlogTemplate/WebHome.txt b/data/_BlogTemplate/WebHome.txt new file mode 100644 index 0000000..68906e7 --- /dev/null +++ b/data/_BlogTemplate/WebHome.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1294050551" format="1.1" reprev="2" version="2"}% + + +%META:PREFERENCE{name="TOPICTITLE" title="TOPICTITLE" type="Local" value="Blog"}% diff --git a/data/_BlogTemplate/WebLeftBar.txt b/data/_BlogTemplate/WebLeftBar.txt new file mode 100644 index 0000000..6db11b4 --- /dev/null +++ b/data/_BlogTemplate/WebLeftBar.txt @@ -0,0 +1,14 @@ +%META:TOPICINFO{author="ProjectContributor" date="1178746198" format="1.1" version="$Rev$"}% +%INCLUDE{"%IF{"context can_login" then="%SYSTEMWEB%.WebLeftBarLogin" else=""}%" warn="off"}% + * [[%INCLUDINGWEB%.%HOMETOPIC%][ %ICON{"home"}% %MAKETEXT{"[_1] Web" args="%INCLUDINGWEB%"}%]] + * [[%SCRIPTURLPATH{"view"}%/%BASEWEB%/WebTopicCreator?parent=%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" }% diff --git a/data/_BlogTemplate/WebNotify.txt b/data/_BlogTemplate/WebNotify.txt new file mode 100644 index 0000000..175083d --- /dev/null +++ b/data/_BlogTemplate/WebNotify.txt @@ -0,0 +1,5 @@ +%META:TOPICINFO{author="ProjectContributor" date="1212998720" format="1.1" version="$Rev: 9914 $"}% +---+!! %TOPIC% +%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="*%WEB%*,%SYSTEMWEB%.WikiName"}% + + * %USERSWEB%.WikiGuest - example@your.company diff --git a/data/_BlogTemplate/WebPreferences.txt b/data/_BlogTemplate/WebPreferences.txt new file mode 100644 index 0000000..efdeff3 --- /dev/null +++ b/data/_BlogTemplate/WebPreferences.txt @@ -0,0 +1,70 @@ +%META:TOPICINFO{author="ProjectContributor" date="1275569295" format="1.1" reprev="2" version="3"}% +%META:TOPICPARENT{name="WebHome"}% +---+!! %WEB% Web Preferences + +%TOC% + +---++ General settings + * Set SITEMAPLIST = on + * Set WEBSUMMARY = + * Set NOSEARCHALL = + * Set WEBBGCOLOR = + * Set NOAUTOLINK = on + +---++ Image settings + * Set BLOGIMAGES = %PUBURLPATH%/%WEB%/BlogImages + * Set IMAGEALBUM = %WEB%/BlogImages + +---++ !WebComponents + * [[WebTopicEditTemplate]]: template for new topics + * [[WebMenu]]: horizontal navitation, overrides [[%USERSWEB%.SiteMenu]], or [[%SYSTEMWEB%.SiteMenu]] + * [[WebLinks]]: sidebar links, overrides [[%USERSWEB%.SiteLinks]], or [[%SYSTEMWEB%.SiteLinks]] + * [[WebSideBar]]: sidebar navigation, overrides [[%USERSWEB%.SiteSideBar]], or [[%SYSTEMWEB%.SiteSideBar]] + * [[WebBottomBar]]: bottom part, overrides [[%USERSWEB%.SiteBottomBar]], or [[%SYSTEMWEB%.SiteBottomBar]] + +---++ Skin settings + * Set NATSKIN_LAYOUT = fixed + * possible values: fixed, bordered, fluid + * #Set NATSKIN_VARIATION = + * Set NATSKIN_SIDEBAR = right + * possible values: left, right, both, off + * #Set NATSKIN_SIDEBARWIDTH = 19.23em + +---++ Comment settings + * Set COMMNENTFORMAT = threaded + * can be threaded, linear, reverse, insidetab + * Set COMMENTMODERATION = on + +---++ !DataForm settings + * Set WEBFORMS = Applications.BlogApp.BlogEntry, Applications.ClassificationApp.ClassifiedTopic, Applications.ClassificationApp.CategorizedTopic, Applications.ClassificationApp.TaggedTopic + +---++ !ClassificationPlugin settings + * Set CLASSIFICATIONPLUGIN_AUTOREPARENT = on + +---++ !AutoTemplatePlugin settings + + * Set VIEW_TEMPLATE_RULES = + .+\..+Category => Applications.BlogApp.CategoryView, + WebSearch.* => Applications.BlogApp.BlogSearchView + +---++ Cache settings + * Set WEBDEPENDENCIES = WebHome, WebTopicList, WebIndex, WebChanges, Category, WebRss, WebAtom, WebSearch + +---++ Access rights +*Web*: + * #Set DENYWEBVIEW = + * Set ALLOWWEBVIEW = %USERSWEB%.AdminGroup + * #Set DENYWEBCHANGE = + * Set ALLOWWEBCHANGE = %USERSWEB%.AdminGroup + * #Set DENYWEBRENAME = + * Set ALLOWWEBRENAME = %USERSWEB%.AdminGroup + * Set ALLOWWEBCOMMENT = + * Set ALLOWWEBMODERATE = %USERSWEB%.BlogAuthorGroup + +*Moderation*: + * #Set ALLOWWEBMODERATE = %USERSWEB%.BlogAuthorGroup + +*Topic*: + * Set ALLOWTOPICCHANGE = %USERSWEB%.AdminGroup + * Set ALLOWTOPICRENAME = %USERSWEB%.AdminGroup + diff --git a/data/_BlogTemplate/WebRss.txt b/data/_BlogTemplate/WebRss.txt new file mode 100644 index 0000000..ac20f68 --- /dev/null +++ b/data/_BlogTemplate/WebRss.txt @@ -0,0 +1,8 @@ +%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 9914 $"}% + +%IF{ "$'URLPARAM{search}'!=''" then="<nop>%WIKITOOLNAME% search results for <nop>%URLPARAM{search}%" else="<nop>%WIKITOOLNAME%'s <nop>%WEB% web"}% + %SCRIPTURL{"view"}%/%WEB% + %MAKETEXT{"The [_1] web of Foswiki, the Free and Open Source Wiki." args="%WEB%"}% +%INCLUDE{"%SYSTEMWEB%.WebRssBase"}% diff --git a/data/_BlogTemplate/WebSearch.txt b/data/_BlogTemplate/WebSearch.txt new file mode 100644 index 0000000..7f48d80 --- /dev/null +++ b/data/_BlogTemplate/WebSearch.txt @@ -0,0 +1,2 @@ +%META:TOPICINFO{author="ProjectContributor" date="1163619832" format="1.0" version="$Rev$"}% +%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}% diff --git a/data/_BlogTemplate/WebSearchAdvanced.txt b/data/_BlogTemplate/WebSearchAdvanced.txt new file mode 100644 index 0000000..c9c8954 --- /dev/null +++ b/data/_BlogTemplate/WebSearchAdvanced.txt @@ -0,0 +1,3 @@ +%META:TOPICINFO{author="ProjectContributor" date="1163619832" format="1.0" version="$Rev$"}% +%META:TOPICPARENT{name="WebSearch"}% +%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}% diff --git a/data/_BlogTemplate/WebSideBar.txt b/data/_BlogTemplate/WebSideBar.txt new file mode 100644 index 0000000..6b226cd --- /dev/null +++ b/data/_BlogTemplate/WebSideBar.txt @@ -0,0 +1,13 @@ +%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1294232210" format="1.1" reprev="2" version="4"}% +%META:TOPICPARENT{name="WebHome"}% + +%STARTINCLUDE%%DBCALL{"Applications.BlogApp.RenderSideBar"}%%STOPINCLUDE% + + +%META:FORM{name="Applications.ClassificationApp.ClassifiedTopic"}% +%META:FIELD{name="TopicType" title="TopicType" value="ClassifiedTopic, CategorizedTopic, TaggedTopic, WikiTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Tag" attributes="" title="Tag" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value=""}% +%META:PREFERENCE{name="SIDEBAR" title="SIDEBAR" type="Set" value="Admin"}% diff --git a/data/_BlogTemplate/WebStatistics.txt b/data/_BlogTemplate/WebStatistics.txt new file mode 100644 index 0000000..69af60d --- /dev/null +++ b/data/_BlogTemplate/WebStatistics.txt @@ -0,0 +1,9 @@ +%META:TOPICINFO{author="ProjectContributor" date="1239871759" format="1.1" version="1.2"}% +%META:TOPICPARENT{name="WebHome"}% +---+ Statistics for %WEB% Web + +| *Month:* | *Topic
    views:* | *Topic
    saves:* | *File
    uploads:* | *Most popular
    topic views:* | *Top contributors for
    topic save and uploads:* | +| | | | | | | + +__Notes:__ + * Do not edit this topic, it is updated automatically. (You can also force an update) \ No newline at end of file diff --git a/data/_BlogTemplate/WebTopicEditTemplate.txt b/data/_BlogTemplate/WebTopicEditTemplate.txt new file mode 100644 index 0000000..5eefcfe --- /dev/null +++ b/data/_BlogTemplate/WebTopicEditTemplate.txt @@ -0,0 +1,10 @@ +%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1299097553" format="1.1" reprev="1" version="1"}% +%META:TOPICPARENT{name="WebHome"}% + + +%META:FORM{name="Applications.BlogApp.BlogEntry"}% +%META:FIELD{name="TopicType" title="TopicType" value="BlogEntry, ClassifiedTopic, CategorizedTopic, TaggedTopic"}% +%META:FIELD{name="TopicTitle" attributes="" title="TopicTitle" value=""}% +%META:FIELD{name="Summary" attributes="" title="Summary" value=""}% +%META:FIELD{name="Tag" attributes="" title="Tag" value=""}% +%META:FIELD{name="Category" attributes="" title="Category" value=""}% diff --git a/data/_BlogTemplate/WebTopicList.txt b/data/_BlogTemplate/WebTopicList.txt new file mode 100644 index 0000000..3d596b3 --- /dev/null +++ b/data/_BlogTemplate/WebTopicList.txt @@ -0,0 +1,2 @@ +%META:TOPICINFO{author="ProjectContributor" date="1212998720" format="1.1" version="$Rev: 9914 $"}% +%INCLUDE{"%SYSTEMWEB%.%TOPIC%"}% diff --git a/lib/Foswiki/Plugins/BlogPlugin.pm b/lib/Foswiki/Plugins/BlogPlugin.pm index 2a09d26..83a2448 100644 --- a/lib/Foswiki/Plugins/BlogPlugin.pm +++ b/lib/Foswiki/Plugins/BlogPlugin.pm @@ -1,6 +1,6 @@ # Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/ # -# Copyright (C) 2005-2006 MichaelDaum@WikiRing.com +# Copyright (C) 2005-2011 http://michaeldaumconsulting.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,112 +17,46 @@ package Foswiki::Plugins::BlogPlugin; use strict; -use vars qw( - $VERSION $RELEASE $NO_PREFS_IN_TOPIC $SHORTDESCRIPTION - $doneHeader $blogCore $blogFactory -); +use warnings; +use Error qw(:try); -use Foswiki::Plugins::BlogPlugin::WebDB; # must be compiled in advance - -$VERSION = '$Rev$'; -$RELEASE = '0.99'; -$NO_PREFS_IN_TOPIC = 1; -$SHORTDESCRIPTION = 'Basic blogging features used to implement the BlogUp WikiApplication'; +our $core; +our $VERSION = '$Rev$'; +our $RELEASE = '2.00'; +our $NO_PREFS_IN_TOPIC = 1; +our $SHORTDESCRIPTION = 'Basic blogging features used to implement the BlogApp WikiApplication'; +our $baseTopic; +our $baseWeb; ############################################################################### sub initPlugin { + ($baseTopic, $baseWeb) = @_; - $doneHeader = 0; - $blogCore = undef; - $blogFactory = undef; + $core = undef; - Foswiki::Func::registerTagHandler('CITEBLOG', \&handleCiteBlog); - Foswiki::Func::registerTagHandler('COUNTCOMMENTS', \&handleCountComments); - Foswiki::Func::registerTagHandler('NEXTDOC', \&handleNextDoc); - Foswiki::Func::registerTagHandler('PREVDOC', \&handlePrevDoc); - Foswiki::Func::registerTagHandler('RECENTCOMMENTS', \&handleRecentComments); - Foswiki::Func::registerTagHandler('RELATEDTOPICS', \&handleRelatedTopics); - Foswiki::Func::registerRESTHandler('createblog', \&handleCreateBlog); + Foswiki::Func::registerRESTHandler('blogconvert', \&handleBlogConvert); return 1; } ############################################################################### -sub handleCiteBlog { - newCore()->handleCiteBlog(@_); -} -sub handleCountComments { - newCore()->handleCountComments(@_); -} -sub handleNextDoc { - newCore()->handleNextDoc(@_); -} -sub handlePrevDoc { - newCore()->handlePrevDoc(@_); -} -sub handleRecentComments { - newCore()->handleRecentComments(@_); -} -sub handleRelatedTopics { - newCore()->handleRelatedTopics(@_); -} -sub handleCreateBlog { - newFactory()->handleCreateBlog(@_); -} - -############################################################################### -sub newFactory { - return $blogFactory if $blogFactory; +sub handleBlogConvert { - eval 'use Foswiki::Plugins::BlogPlugin::Factory;'; - die $@ if $@; + require Foswiki::Plugins::BlogPlugin::Converter; + my $converter = new Foswiki::Plugins::BlogPlugin::Converter; - $blogFactory = new Foswiki::Plugins::BlogPlugin::Factory; - - return $blogFactory; -} + my @params = @_; + try { + $converter->convert(@params); + } catch Error::Simple with { + my $error = shift; -############################################################################### -sub newCore { - return $blogCore if $blogCore; + print STDERR "ERROR: ".$error->{-text}."\n"; + }; - eval 'use Foswiki::Plugins::BlogPlugin::Core;'; - die $@ if $@; - - $blogCore = new Foswiki::Plugins::BlogPlugin::Core; - - return $blogCore; -} - -############################################################################### -sub commonTagsHandler { - - if (!$doneHeader) { - my $link = - '' . "\n" . - ''; - if ($_[0] =~ s/(.*?[\r\n]+)/$1$link\n/o) { - $doneHeader = 1; - } - } + return ""; } -############################################################################### -sub postRenderingHandler { - # remove leftover tags of optional plugins if they are not installed - - $_[0] =~ s/%STARTALIASAREA%//go; - $_[0] =~ s/%STOPALIASAREA%//go; - $_[0] =~ s/%ALIAS{.*?}%//go; -} - - -############################################################################### - 1; diff --git a/lib/Foswiki/Plugins/BlogPlugin/Converter.pm b/lib/Foswiki/Plugins/BlogPlugin/Converter.pm new file mode 100644 index 0000000..1539d8f --- /dev/null +++ b/lib/Foswiki/Plugins/BlogPlugin/Converter.pm @@ -0,0 +1,438 @@ +# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/ +# +# Copyright (C) 2005-2011 Michael Daum http://michaeldaumconsulting.com +# +# 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::Plugins::BlogPlugin::Converter; + +use strict; +use warnings; +use Error qw(:try); +use Foswiki::Func (); +use Foswiki::Meta (); +use Foswiki::Form (); + +############################################################################### +sub new { + my $class = shift; + + return bless({@_}, $class); +} + +############################################################################### +sub convert { + my ($this, $session, $subject, $verb, $response) = @_; + + my $request = $session->{request}; + my $sourceWeb = $request->param("source"); + + $this->{session} = $session || $Foswiki::Plugins::SESSION; + + throw Error::Simple("no source web specified") + unless $sourceWeb; + + throw Error::Simple("no such web $sourceWeb") + unless Foswiki::Func::webExists($sourceWeb); + + $this->{sourceWeb} = $sourceWeb; + + my $targetWeb = $request->param("target"); + throw Error::Simple("no target web specified") + unless $targetWeb; + + throw Error::Simple("target web must be different from source web") + if $sourceWeb eq $targetWeb; + + my $doOverride = Foswiki::Func::isTrue($request->param("override"), 0); + + throw Error::Simple("target web $targetWeb already exists") + if !$doOverride && Foswiki::Func::webExists($targetWeb); + + $this->{targetWeb} = $targetWeb; + + my $templateWeb = $request->param("template") || '_BlogTemplate'; + throw Error::Simple("tempalte web $templateWeb does not exists") + unless Foswiki::Func::webExists($templateWeb); + + $this->{templateWeb} = $templateWeb; + + #print STDERR "### sourceWeb=$sourceWeb\n"; + #print STDERR "### targetWeb=$targetWeb\n"; + + # 1. create the target web + $this->createTargetWeb(); + + # 2. convert SubjectCategory topics + $this->convertCategories; + + # 3. convert BlogEntry topics + $this->convertBlogEntries; + + # 4. convert BlogPage topics +# $this->convertBlogPages; + + # 5. copy the BlogImages topic + $this->copyBlogImages; + + # 6. merge BlogComment topics + $this->convertBlogComments +} + +############################################################################### +sub createTargetWeb { + my $this = shift; + + my $webSummary = + Foswiki::Func::getPreferencesValue("SITEMAPUSETO", $this->{sourceWeb}) || + Foswiki::Func::getPreferencesValue("SITEMAPWHAT", $this->{sourceWeb}) || + Foswiki::Func::getPreferencesValue("WEBSUMMARY", $this->{sourceWeb}) || ''; + + my $targetWebObj = new Foswiki::Meta($this->{session}, $this->{targetWeb}); + $targetWebObj->populateNewWeb($this->{templateWeb}, + { + WEBSUMMARY => $webSummary, + WEBBGCOLOR => Foswiki::Func::getPreferencesValue("WEBBGCOLOR", $this->{sourceWeb}), + BLOGIMAGES => Foswiki::Func::getPreferencesValue("BLOGIMAGES", $this->{sourceWeb}) || '%PUBURLPATH%/%WEB%/BlogImages', + IMAGEALBUM => Foswiki::Func::getPreferencesValue("IMAGEALBUM", $this->{sourceWeb}) || '%WEB%/BlogImages', + NOAUTOLINK => Foswiki::Func::getPreferencesValue("NOAUTOLINK", $this->{sourceWeb}) || 'on', + SITEMAPLIST => Foswiki::Func::getPreferencesValue("SITEMAPLIST", $this->{sourceWeb}) || 'on', + } + ); +} + +############################################################################### +sub convertCategories { + my $this = shift; + + # search all SubjectCategory topics in the source web + my $matches = Foswiki::Func::query('TopicType=~".*SubjectCategory.*"', undef, { + type => 'query', + web => $this->{sourceWeb}, + }); + + my $count = 0; + while ($matches->hasNext) { + my $webTopic = $matches->next; + my ($web, $topic) = Foswiki::Func::normalizeWebTopicName($this->{sourceWeb}, $webTopic); + $this->convertCategory($web, $topic); + $count++; + print STDERR "### $count: $web.$topic\n"; + } + + print STDERR "### converted $count categories\n"; +} + +############################################################################### +sub convertCategory { + my ($this, $web, $topic) = @_; + + my ($oldTopic, $text) = Foswiki::Func::readTopic($web, $topic); + + + my $newTopicTitle = $topic; + $newTopicTitle =~ s/^(.+)(Category)?$/$1/g; + my $newTopicName = $newTopicTitle . 'Category'; + + # remember mapping of old category to new name + $this->{renamedCategories}{$topic} = $newTopicName; + + my $newText = '%DBCALL{"Applications.ClassificationApp.RenderCategory"}%'; + my $newTopic = new Foswiki::Meta($this->{session}, $this->{targetWeb}, $newTopicName, $newText); + + $newTopic->putKeyed('FORM', { name => "Applications.ClassificationApp.Category" } ); + + my @fields = (); + + push @fields, { + name => "TopicType", + title => "TopicType", + value => "Category, CategorizedTopic", + }; + + my $topicTitle = $oldTopic->get("FIELD", "TopicTitle"); + $topicTitle = defined( $topicTitle)?$topicTitle->{value}:$newTopicTitle; + + push @fields, { + name => "TopicTitle", + title => "TopicTitle", + value => $topicTitle, + }; + + push @fields, { + name => "Summary", + title => "Summary", + value => $oldTopic->get("FIELD", "Summary")->{value}, + }; + + $newTopic->putAll("FIELD", @fields); + $newTopic->save; +} + +############################################################################### +sub copyBlogImages { + my $this = shift; + + return unless Foswiki::Func::topicExists($this->{sourceWeb}, "BlogImages"); + my $sourceObj = new Foswiki::Meta($this->{session}, $this->{sourceWeb}, "BlogImages"); + my $targetObj = new Foswiki::Meta($this->{session}, $this->{targetWeb}, "BlogImages", "---+!! %TOPIC%\n"); + $targetObj->save; + + print STDERR "### copying BlogImages from $this->{sourceWeb} to $this->{targetWeb}\n"; + $sourceObj->load(); + + foreach my $attachment ($sourceObj->find('FILEATTACHMENT')) { + print STDERR "### copying attachment $attachment->{name}\n"; + delete $attachment->{autoattached}; + $attachment->{attr} = ''; + $sourceObj->copyAttachment($attachment->{name}, $targetObj); + } + +} + +############################################################################### +sub convertBlogComments { + my $this = shift; + + my $matches = Foswiki::Func::query('TopicType=~".*BlogComment.*"', undef, { + type => 'query', + web => $this->{sourceWeb}, + }); + + my $count = 0; + my @comments = (); + while ($matches->hasNext) { + my $webTopic = $matches->next; + my ($web, $topic) = Foswiki::Func::normalizeWebTopicName($this->{sourceWeb}, $webTopic); + push @comments, { + web => $web, + topic => $topic, + }; + my ($comment) = Foswiki::Func::readTopic($web, $topic); + my $number = $comment->get('FIELD', 'Nr'); + if ($number) { + $this->{nameOfComment}{$topic} = convertCommentNumberToName($number->{value}); + } + } + + foreach my $comment (@comments) { + my $web = $comment->{web}; + my $topic = $comment->{topic}; + if ($this->convertBlogComment($web, $topic)) { + $count++; + print STDERR "### $count: $web.$topic\n"; + } + } + + print STDERR "### converted $count blog comments\n"; +} + +############################################################################### +sub convertBlogComment { + my ($this, $web, $topic) = @_; + + my ($comment) = Foswiki::Func::readTopic($web, $topic); + my $baseRef = $comment->get('FIELD', 'BaseRef'); + + return unless $baseRef; + $baseRef = $baseRef->{value}; + + #return if $baseRef ne "TestBlogEntry0"; + + #### FROM + # | TopicType | label | 1 | BlogComment | classifies this as a blog comment | | + # | TopicTitle | text | 75 | | title of this topic | | + # | Name | text | 78 | | your name | M | + # | Text | textarea | 80x10 | | your comment | M | + # | BlogRef | label | 1 | | refering BlogEntry or BlogComment | | + # | BaseRef | label | 1 | | basic BlogEntry where a thread started | | + # | Nr | label | 1 | | running comment number | | + + ### TO + # %META:COMMENT{name="4.1304698367" author="AdminUser" date="1304698367" modified="1304698367" ref="" state="new, unapproved" text="Amet egestas ultrices, turpis, vut aenean, mattis facilisis natoque, magna, hac integer ac tincidunt! Mauris dis adipiscing, cras, lorem, phasellus dapibus, ridiculus scelerisque natoque cras penatibus? Adipiscing cras. Enim turpis rhoncus diam ut scelerisque porta nisi et pid mattis sit velit duis. Rhoncus montes, natoque elit eros dapibus natoque lorem turpis, vut aliquet urna, nisi augue, dictumst non cras pulvinar, platea hac enim nec, elit sit! Phasellus risus, sagittis purus nec et! Enim sed facilisis velit? Rhoncus! Auctor, penatibus ultrices vut hac mus et, eu enim enim cursus scelerisque mauris scelerisque placerat lectus magna porttitor elementum, parturient! Duis pulvinar turpis nec! Aenean sed nascetur? Velit, eu vut enim? Aliquam egestas etiam scelerisque, rhoncus mus, lundium dapibus eu cum odio dis." title=""}% + #print STDERR "### ...baseRef=$baseRef\n"; + + unless (Foswiki::Func::topicExists($this->{targetWeb}, $baseRef)) { + print STDERR "ERROR: can't find topic for baseRef $baseRef\n"; + return; + } + + my ($baseMeta) = Foswiki::Func::readTopic($this->{targetWeb}, $baseRef); + + my $name = $comment->get('FIELD', 'Nr'); + $name = convertCommentNumberToName($name?$name->{value}:'0'); + + my $title = $comment->get('FIELD', 'TopicTitle'); + $title = $title?$title->{value}:""; + + my $text = $comment->get('FIELD', 'Text'); + $text = $text?$text->{value}:""; + $text =~ s/\%CITEBLOG{\"?(.*?)\"}\%/[[$1]]/g; + + my ($date, $revAuthor) = $comment->getRevisionInfo(); + + my $author => $comment->get('FIELD', 'Name'); + $author = Foswiki::Func::getWikiName($author?$author->{value}:$revAuthor); + + $author = 'WikiGuest' if $author eq 'TWikiGuest'; + $author = 'AdminUser' if $author eq 'TWikiAdmin'; + + my $ref = $comment->get('FIELD', 'BlogRef'); + $ref = $ref?$ref->{value}:''; + + $ref = '' if $ref eq $topic; + if ($this->{nameOfComment}{$ref}) { + $ref = $this->{nameOfComment}{$ref}; + } else { + $ref = ''; + } + + $baseMeta->putKeyed('COMMENT', { + name => $name, + ref => $ref, + author => $author, + date => $date, + text => $text, + title => $title, + state => "approved", #default + }); + + $baseMeta->save(); + + return 1; # success +} + +############################################################################### +sub convertCommentNumberToName { + my $number = shift; + + # name must be numeric, at least a proper float with only one decimal point + my @parts = split(/\./, $number); + my $name = shift(@parts); + $name .= "." . join("", @parts) if @parts; + + return $name; +} + +############################################################################### +sub convertBlogEntries { + my $this = shift; + + # search all BlogEntry topics in the source web + my $matches = Foswiki::Func::query('TopicType=~".*BlogEntry.*"', undef, { + type => 'query', + web => $this->{sourceWeb}, + }); + + my $count = 0; + while ($matches->hasNext) { + my $webTopic = $matches->next; + my ($web, $topic) = Foswiki::Func::normalizeWebTopicName($this->{sourceWeb}, $webTopic); + $this->convertBlogEntry($web, $topic); + $count++; + print STDERR "### $count: $web.$topic\n"; + } + + print STDERR "### converted $count blog entries\n"; +} + +############################################################################### +sub convertBlogEntry { + my ($this, $web, $topic) = @_; + + my ($meta, $text) = Foswiki::Func::readTopic($web, $topic); + + my $newText = $meta->get("FIELD", "Teaser")->{value} . "\n\n" . $meta->get("FIELD", "Text")->{value}; + $newText =~ s/\r//g; + $newText =~ s/\bTWiki\./System\./g; + $newText =~ s/\%CITEBLOG{\"?(.*?)\"}\%/[[$1]]/g; + + my $newTopic = new Foswiki::Meta($this->{session}, $this->{targetWeb}, $topic, $newText); + $newTopic->putKeyed('FORM', { name => "Applications.BlogApp.BlogEntry" } ); + + my @fields = (); + + push @fields, { + name => "TopicType", + title => "TopicType", + value => "BlogEntry, ClassifiedTopic, CategorizedTopic, TaggedTopic", + }; + + push @fields, { + name => "TopicTitle", + title => "TopicTitle", + value => $meta->get("FIELD", "TopicTitle")->{value}, + }; + + my $tags = join(", ", split(/[\s,]+/, $meta->get("FIELD", "BlogTag")->{value})); + print STDERR "### ... tags=$tags\n"; + + push @fields, { + name => "Tag", + title => "Tag", + value => $tags, + }; + + my $categories = join(", ", map($_ = (defined $this->{renamedCategories}{$_})?$this->{renamedCategories}{$_}:$_, split(/\s*,\s*/, $meta->get("FIELD", "SubjectCategory")->{value}))); + + print STDERR "### ... categories = $categories\n"; + + push @fields, { + name => "Category", + title => "Category", + value => $categories, + }; + + my $blogState = $meta->get("FIELD", "State")->{value}; + push @fields, { + name => "State", + title => "State", + value => $blogState, + }; + + if ($blogState ne 'published') { + $newTopic->putAll("PREFERENCE", + { name => "ALLOWTOPICVIEW", title => "ALLOWTOPICVIEW", type => "Set", value => "BlogAuthorGroup" }, + { name => "PERMSET_VIEW", title => "PERMSET_VIEW", type => "Local", value => "details" }, + { name => "PERMSET_VIEW_DETAILS", title => "PERMSET_VIEW_DETAILS", type => "Local", value => "BlogAuthorGroup" }, + ); + } + + $newTopic->putKeyed("PREFERENCE", + { name => "DISPLAYCOMMENTS", title => "DISPLAYCOMMENTS", type => "Local", value => "on" } + ); + + $newTopic->putAll("FIELD", @fields); + + my $author = $meta->get("FIELD", "BlogAuthor")->{value}; + $author =~ s/^.*\.//g; # strip web + $author = Foswiki::Func::getCanonicalUserID($author) || $author; + + #print STDERR "author=$author\n"; + + my $date = $meta->get("FIELD", "Date")->{value}; + $date = Foswiki::Time::parseTime($date); + + # save it once, and then ... + $newTopic->save(forcedate=>$date, author=>$author); + + # ... force a second revision to freeze the create time and author + $newTopic->save(forcedate=>$date, author=>$author, forcenewrevision=>1); + + foreach my $attachment ($meta->find('FILEATTACHMENT')) { + print STDERR "### copying attachment $attachment->{name}\n"; + $meta->copyAttachment($attachment->{name}, $newTopic, user => $author); + } +} + +1; diff --git a/lib/Foswiki/Plugins/BlogPlugin/Core.pm b/lib/Foswiki/Plugins/BlogPlugin/Core.pm index 51eb088..22752ad 100644 --- a/lib/Foswiki/Plugins/BlogPlugin/Core.pm +++ b/lib/Foswiki/Plugins/BlogPlugin/Core.pm @@ -1,6 +1,6 @@ # Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/ # -# Copyright (C) 2005-2006 MichaelDaum@WikiRing.com +# Copyright (C) 2005-2011 Michael Daum http://michaeldaumconsulting.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,534 +17,36 @@ package Foswiki::Plugins::BlogPlugin::Core; use strict; -use vars qw( $debug ); +use warnings; -use Foswiki::Plugins::DBCachePlugin; -use Foswiki::Plugins::BlogPlugin::WebDB; +use Foswiki::Plugins::DBCachePlugin (); -$debug = 0; # toggle me - -############################################################################### -sub new { - my $class = shift; - my $this = bless({}, $class); - - $this->{prevTopicCache} = (); - $this->{nextTopicCache} = (); - $this->{recentCommentsCache} = (); - $this->{countCommentsCache} = (); - - return $this; -} - -############################################################################### -sub handleCiteBlog { - my ($this, $session, $params, $theTopic, $theWeb) = @_; - - $theTopic = $params->{_DEFAULT} || $params->{topic}; - ($theWeb, $theTopic) = &Foswiki::Func::normalizeWebTopicName($theWeb, $theTopic); - - return &inlineError("ERROR: CITEBLOG has no topic argument") - unless $theTopic; - - my $theDB = Foswiki::Plugins::DBCachePlugin::getDB($theWeb); - my $viewUrl = Foswiki::Func::getViewUrl($theWeb, $theTopic); - my $text = "$theTopic\">$theTopic"; - - my $topicObj = $theDB->fastget($theTopic); - return $text unless $topicObj; - - my $form = $topicObj->fastget('form'); - return $text unless $form; - $form = $topicObj->fastget($form); - return $text unless $form; - my $displayText = - $form->fastget('Headline') || - $form->fastget('TopicDescription') || - $form->fastget('Name') || - $theTopic; - my $createDate = Foswiki::Func::formatTime($topicObj->fastget('createdate'), '$day $mon $year'); - return "$theTopic\">$displayText ($createDate)"; -} - -############################################################################### -sub handlePrevDoc { - my ($this, $session, $params, $theTopic, $theWeb) = @_; - - #writeDebug("called handlePrevDoc($theTopic)"); - - $theTopic = $params->{_DEFAULT} || $theTopic; - my $theFormat = $params->{format} || '$topic'; - my $theWhere = $params->{where}; - my $theOrder = $params->{order} || 'created'; - my $theReverse = $params->{reverse} || 'off'; - $theWeb = $params->{web} || $theWeb; - - return &inlineError("ERROR: PREVDOC has no \"where\" argument") unless $theWhere; - - my ($thisWeb, $thisTopic) = &Foswiki::Func::normalizeWebTopicName($theWeb, $theTopic); - - #writeDebug('theFormat='.$theFormat); - #writeDebug('theWhere='. $theWhere) if $theWhere; - - my $theDB = Foswiki::Plugins::DBCachePlugin::getDB($thisWeb); - my ($prevTopic, $nextTopic) = $this->getPrevNextTopic( - $theDB, $thisWeb, $thisTopic, $theWhere, $theOrder, $theReverse); - if ($prevTopic ne '_notfound') { - return &expandVariables($theFormat, topic=>$prevTopic, web=>$thisWeb); - } - return ''; -} - -############################################################################### -sub handleNextDoc { - my ($this, $session, $params, $theTopic, $theWeb) = @_; - - #writeDebug("called handleNextDoc($theTopic)"); - - $theTopic = $params->{_DEFAULT} || $params->{topic} || $theTopic; - my $theFormat = $params->{format} || '$topic'; - my $theWhere = $params->{where}; - my $theOrder = $params->{order} || 'created'; - my $theReverse = $params->{reverse} || 'off'; - $theWeb = $params->{web} || $theWeb; - - return &inlineError("ERROR: NEXTDOC has no \"where\" argument") unless $theWhere; - - my ($thisWeb, $thisTopic) = &Foswiki::Func::normalizeWebTopicName($theWeb, $theTopic); - - #writeDebug('theFormat='.$theFormat); - #writeDebug('theWhere='. $theWhere) if $theWhere; - - my $theDB = Foswiki::Plugins::DBCachePlugin::getDB($thisWeb); - my ($prevTopic, $nextTopic) = $this->getPrevNextTopic( - $theDB, $thisWeb, $thisTopic, $theWhere, $theOrder, $theReverse); - if ($nextTopic ne '_notfound') { - return &expandVariables($theFormat, topic=>$nextTopic, web=>$thisWeb); - return $theFormat; - } - return ''; -} - -############################################################################### -sub getPrevNextTopic { - my ($this, $theDB, $theWeb, $theTopic, $theWhere, $theOrder, $theReverse) = @_; - - #writeDebug("getPrevNextTopic($theWeb, $theTopic, $theWhere) called"); - my $key = $theWeb.'.'.$theTopic.':'.$theWhere.':'.$theOrder.':'.$theReverse; - my $prevTopic = $this->{prevTopicCache}{$key}; - my $nextTopic = $this->{nextTopicCache}{$key}; - - if ($prevTopic && $nextTopic) { - #writeDebug("found in cache: prevTopic=$prevTopic, nextTopic=$nextTopic"); - return ($prevTopic, $nextTopic); - } - - my ($resultList) = $theDB->dbQuery($theWhere, undef, $theOrder, $theReverse); - my $state = 0; - foreach my $t (@$resultList) { - if ($state == 1) { - $state = 2; - $nextTopic = $t; - last; - } - $state = 1 if $t eq $theTopic; - $prevTopic = $t if $state == 0; - #writeDebug("t=$t, state=$state"); - } - $prevTopic = '_notfound' if !$prevTopic || $state == 0; - $nextTopic = '_notfound' if !$nextTopic || !$state == 2; - $this->{prevTopicCache}{$key} = $prevTopic; - $this->{nextTopicCache}{$key} = $nextTopic; - #writeDebug("prevTopic=$prevTopic, nextTopic=$nextTopic"); - - return ($prevTopic, $nextTopic); -} - -############################################################################### -sub handleRecentComments { - my ($this, $session, $params, $theTopic, $theWeb) = @_; - - my $key = "$theTopic.$theWeb" . $params->stringify(); - #writeDebug("handleRecentComments(".$params->stringify().") called"); - - my $cacheEntry = $this->{recentCommentsCache}{$key}; - if ($cacheEntry) { - #writeDebug("found in cache"); - return $cacheEntry; - } - - my $theFormat = $params->{_DEFAULT} || $params->{format}; - my $theSeparator = $params->{separator} || '$n'; - my $theLimit = $params->{limit} || -1; - my $theAge = $params->{age} || 0; # 5184000 are ca 2 months TODO compute TIMESINCE reversely - my $theHeader = $params->{header} || ''; - my $theFooter = $params->{footer} || ''; - my $theCategory = $params->{category} || '.*'; - my $theAuthor = $params->{author} || '.*'; - $theAge =~ s/[^\d]+//go; - $theWeb = $params->{web} || $theWeb; - - return &inlineError("ERROR: RECENTCOMMENTS has no \"format\" argument") - unless $theFormat; - - my $theDB = Foswiki::Plugins::DBCachePlugin::getDB($theWeb); - - my %blogComments; - my %baseRefs; - my $now = time(); - foreach my $topicName ($theDB->getKeys()) { - - # get blog comment - my $topicObj = $theDB->fastget($topicName); - my $topicForm = $topicObj->fastget('form'); - next unless $topicForm; - $topicForm = $topicObj->fastget($topicForm); - my $topicType = $topicForm->fastget('TopicType'); - next unless $topicType; - next unless $topicType =~ /BlogComment/o; - - # check if blog comment is too old - my $topicCreateDate = $topicObj->fastget('createdate'); - if ($theAge) { - my $diff = $now - $topicCreateDate; - if ($diff > $theAge) { - next; - } - } - - # check if referer is enabled and matches the category - my $baseRefName = $topicForm->fastget('BaseRef'); - next unless $baseRefName; - my $baseRefObj = $theDB->fastget($baseRefName); - next unless $baseRefObj; - my $baseRefForm = $baseRefObj->fastget('form'); - next unless $baseRefForm; - $baseRefForm = $baseRefObj->fastget($baseRefForm); - my $state = $baseRefForm->fastget('State'); - next unless $state; - next unless $state eq 'published'; - my $category = $baseRefForm->fastget('SubjectCategory'); - next unless $category =~ /$theCategory/; - my $author = $baseRefForm->fastget('BlogAuthor'); - next unless $author =~ /$theAuthor/; - - # found - $theLimit-- unless $baseRefs{$baseRefName}; - - $blogComments{$topicName}{obj} = $topicObj; - $blogComments{$topicName}{createdate} = $topicCreateDate; - $blogComments{$topicName}{author} = $topicForm->fastget('Name'); - $baseRefs{$baseRefName}{obj} = $baseRefObj; - - if (!$baseRefs{$baseRefName}{latestdate} || - $baseRefs{$baseRefName}{latestdate} < $topicCreateDate) { - $baseRefs{$baseRefName}{latestdate} = $topicCreateDate; - } - $baseRefs{$baseRefName}{createdate} = $baseRefObj->fastget('createdate'); - $baseRefs{$baseRefName}{count}++; - $baseRefs{$baseRefName}{headline} = $baseRefForm->fastget('Headline'); - push @{$baseRefs{$baseRefName}{comments}},$topicName; - - #writeDebug("found comment $topicName on $baseRefName"); - #writeDebug("blogComment createdate=$blogComments{$topicName}{createdate}"); - #writeDebug("blogComment author=$blogComments{$topicName}{author}"); - #writeDebug("baseRef createdate=$baseRefs{$baseRefName}{createdate}"); - #writeDebug("baseRef count=$baseRefs{$baseRefName}{count}"); - #writeDebug("baseRef headline=$baseRefs{$baseRefName}{headline}"); - - last if $theLimit == 0; # zero limit is unlimited - } - - # sort - my @baseRefs = sort { - $baseRefs{$b}{latestdate} <=> $baseRefs{$a}{latestdate} - } keys %baseRefs; - foreach my $baseRefName (@baseRefs) { - @{$baseRefs{$baseRefName}{comments}} = sort { - $blogComments{$b}{createdate} <=> $blogComments{$b}{'createdate'} - } @{$baseRefs{$baseRefName}{comments}}; - } - - # render result - my $result = ''; - my %seen = (); - foreach my $baseRefName (@baseRefs) { # newest postings first - next if $seen{$baseRefName}; - $seen{$baseRefName} = 1; - - my $text = ''; - $text = $theSeparator if $result && $theSeparator ne 'none'; - $text .= $theFormat; - - # get variables - my $headline = $baseRefs{$baseRefName}{headline}; - my $commenter = ''; - - # get commenter - my @commenter; - my %seenAuthor; - my $viewUrl = Foswiki::Func::getViewUrl($theWeb, $baseRefName); - foreach my $blogCommentName (@{$baseRefs{$baseRefName}{comments}}) { - my $author = $blogComments{$blogCommentName}{author}; - next if $seenAuthor{$author}; - $seenAuthor{$author} = 1; - $commenter .= ', ' if $commenter; - $commenter .= "" - . "$author"; - } - $commenter = ''.$commenter.''; - - # render this - $text = expandVariables($text, - topic=>$baseRefName, - web=>$theWeb, - count=>$baseRefs{$baseRefName}{count}>1?$baseRefs{$baseRefName}{count}:'', - headline=>$headline, - commenter=>$commenter, - date=>$baseRefs{$baseRefName}{latestdate} - ); - - $result .= $text; - } - - $result = expandVariables($theHeader.$result.$theFooter) if $result; - $this->{recentCommentsCache}{$key} = $result; - - return $result; -} - -############################################################################### -sub handleCountComments { - my ($this, $session, $params, $theTopic, $theWeb) = @_; - - #writeDebug("called handleCountComments(" . $params->stringify() . ")"); - - my $theBlogRef = $params->{_DEFAULT} || $params->{topic}; - my $theFormat = $params->{format} || '$count'; - my $theHeader = $params->{header} || ''; - my $theFooter = $params->{footer} || ''; - my $theSingle = $params->{single} || $theFormat; - my $theHideNull = $params->{hidenull} || 'off'; - my $theNullString = $params->{null} || '0'; - my $theOffset = $params->{offset} || 0; - $theWeb = $params->{web} || $theWeb; - - return &inlineError("ERROR: COUNTCOMMENTS has no topic argument") - unless $theBlogRef; - - ($theWeb, $theBlogRef) = &Foswiki::Func::normalizeWebTopicName($theWeb, $theBlogRef); - #writeDebug("theBlogRef=$theBlogRef"); - #writeDebug("theWeb=$theWeb"); - - - # query topics - my $key = $theWeb.$theBlogRef; - my $nrTopics = $this->{countCommentsCache}{$key}; - - if (defined $nrTopics) { - #writeDebug("found $nrTopics comments in cache for $theBlogRef"); - } else { - my $theDB = Foswiki::Plugins::DBCachePlugin::getDB($theWeb); - $nrTopics = &countBlogRefs($theDB, $theBlogRef); - $this->{countCommentsCache}{$key} = $nrTopics; - #writeDebug("found $nrTopics comments for $theBlogRef"); - } - - # render result - $nrTopics += $theOffset; - return '' if $theHideNull eq 'on' && $nrTopics == 0; - $nrTopics = $theNullString if $theNullString && $nrTopics == 0; - my $text = ($nrTopics == 1)?$theSingle:$theFormat; - $text = $theHeader.$text.$theFooter; - $text = expandVariables($text,count=>$nrTopics); - - #writeDebug("text=$text"); - - return $text; -} - -############################################################################### -sub handleRelatedTopics { - my ($this, $session, $params, $theTopic, $theWeb) = @_; - - #writeDebug("handleRelatedTopics() called"); - - $theTopic = $params->{_DEFAULT} || $params->{topic}; - my $theFormat = $params->{format} || '$topic'; - my $theHeader = $params->{header} || ''; - my $theFooter = $params->{footer} || ''; - my $theSeparator = $params->{separator} || '$n'; - my $theDepth = $params->{depth} || 2; - my $theFilter = $params->{filter} || ''; - $theWeb = $params->{web} || $theWeb; - - return &inlineError("ERROR: RELATEDTOPICS has no topic argument") - unless $theTopic; - - my $theFilterObj; - if ($theFilter) { - $theFilterObj = new Foswiki::Contrib::DBCacheContrib::Search($theFilter); - return &inlineError("ERROR: can't parse query $theFilter") - unless $theFilterObj; - } - - my $theDB = Foswiki::Plugins::DBCachePlugin::getDB($theWeb); - - # get direct related - my %relatedTopics; - &getRelatedTopics($theDB, $theTopic, $theDepth, $theFilter, $theFilterObj, \%relatedTopics); - delete $relatedTopics{$theTopic}; - foreach my $key (keys %relatedTopics) { - $relatedTopics{$key} = $theDepth - $relatedTopics{$key}; - } - return '' unless scalar(keys %relatedTopics); - my @relatedTopics = sort {$relatedTopics{$a} <=> $relatedTopics{$b}} keys %relatedTopics; - - # rendere result - my $result = $theHeader; - my $isFirst = 1; - foreach my $related (@relatedTopics) { - #writeDebug("found related=$related"); - - my $text = $theFormat; - $text =~ s/\$topic/$related/go; - $text =~ s/\$web/$theWeb/go; - $text =~ s/\$depth/$relatedTopics{$related}/go; - - # render meta data of related topics - if ($text =~ /\$headline/) { - my $headline = $theDB->getFormField($related, 'Headline'); - $text =~ s/\$headline/$headline/g; - } - - if ($isFirst) { - $isFirst = 0; - } else { - $result .= $theSeparator if $theSeparator ne 'none'; - } - $result .= $text; - #writeDebug("result=$result"); - } - $result .= $theFooter; - - # subst standards - $result =~ s/\$n/\n/go; - $result =~ s/\$t\b/\t/go; - $result =~ s/\$percnt/%/go; - $result =~ s/\$dollar/\$/go; - $result =~ s/\$headline//go; - - return $result; -} +our $debug = 0; # toggle me ############################################################################### # static sub inlineError { - return '' . $_[0] . '' ; + return "" . $_[0] . "" ; } ############################################################################### # static sub writeDebug { - #&Foswiki::Func::writeDebug('- BlogPlugin - ' . $_[0]) if $debug; - print STDERR "DEBUG - BlogPlugin - $_[0]\n" if $debug; -} - -############################################################################### -# static -sub expandVariables { - my ($theFormat, %params) = @_; - - return '' unless $theFormat; - - foreach my $key (keys %params) { - if($theFormat =~ s/\$$key/$params{$key}/g) { - #writeDebug("expanding $key->$params{$key}"); - } - } - $theFormat =~ s/\$percnt/\%/go; - $theFormat =~ s/\$dollar/\$/go; - $theFormat =~ s/\$n/\n/go; - $theFormat =~ s/\$t\b/\t/go; - $theFormat =~ s/\$nop//g; - - return $theFormat; + #Foswiki::Func::writeDebug('- BlogPlugin - ' . $_[0]) if $debug; + print STDERR "- BlogPlugin - $_[0]\n" if $debug; } -############################################################################### -# static -sub countBlogRefs { - my ($theDB, $theBlogRef) = @_; - - #writeDebug("called countBlogRefs($theDB, $theBlogRef)"); - my $nrTopics = 0; - if ($theBlogRef) { - my $queryString = - 'TopicType=~\'\bBlogComment\b\' AND BlogRef=\''.$theBlogRef.'\''; - my ($blogRefs, undef, $errMsg) = $theDB->dbQuery($queryString); - - die $errMsg if $errMsg; # never reach - - foreach my $blogRef (@$blogRefs) { - $nrTopics += 1 + &countBlogRefs($theDB, $blogRef); - } - } - - #writeDebug("result is $nrTopics"); - return $nrTopics; -} ############################################################################### -# static -sub getRelatedTopics { - my ($theDB, $theTopic, $theDepth, $theFilter, $theFilterObj, $theRelatedTopics) = @_; +sub new { + my ($class, $baseWeb, $baseTopic) = @_; - writeDebug("getRelatedTopics($theTopic, $theDepth, $theFilter) called"); - $theDepth = 1 unless defined $theDepth; - $theRelatedTopics->{$theTopic} = $theDepth; - return $theRelatedTopics unless $theDepth > 0; - - # get related topics we refer to - my %relatedTopics = (); - my $relatedTopics = $theDB->getFormField($theTopic, 'Related'); - if (!$relatedTopics) { - #writeDebug("ERROR: no relatedTopics in $theTopic"); - } else { - foreach my $related (split(/, /, $relatedTopics)) { - next if $theRelatedTopics && $theRelatedTopics->{$related}; - if ($theFilterObj) { - my $relatedObj = $theDB->fastget($related); - next unless $relatedObj; - next unless $theFilterObj->matches($relatedObj); - } - $relatedTopics{$related} = $theDepth; - #writeDebug("found related $related"); - } - } + my $this = bless({}, $class); - # get related topics that refer to us - my $queryString = 'Related=~\'\b'.$theTopic.'\b\''; - $queryString .= " AND $theFilter" if $theFilter; - writeDebug("queryString=$queryString"); - my ($revRelatedTopics) = $theDB->dbQuery($queryString); - foreach my $related (@$revRelatedTopics) { - next if $theRelatedTopics && $theRelatedTopics->{$related}; - $relatedTopics{$related} = $theDepth; - writeDebug("found rev related $related"); - } + $this->{baseWeb} = $baseWeb; + $this->{baseTopic} = $baseTopic; - # get transitive related - writeDebug("get trans related of $theTopic"); - foreach my $related (keys %relatedTopics) { - next if $theRelatedTopics && $theRelatedTopics->{$related}; - &getRelatedTopics($theDB, $related, $relatedTopics{$related}-1, $theFilter, $theFilterObj, $theRelatedTopics); - } - - writeDebug("theRelatedTopics=" . join(",", sort keys %$theRelatedTopics) . " ... $theTopic in depth $theDepth"); - return $theRelatedTopics; + return $this; } -############################################################################### 1; diff --git a/lib/Foswiki/Plugins/BlogPlugin/DEPENDENCIES b/lib/Foswiki/Plugins/BlogPlugin/DEPENDENCIES index 411a5a6..061862f 100644 --- a/lib/Foswiki/Plugins/BlogPlugin/DEPENDENCIES +++ b/lib/Foswiki/Plugins/BlogPlugin/DEPENDENCIES @@ -1,15 +1,9 @@ -Foswiki::Plugins,>=1.1,perl,TWiki Dakar release. Foswiki::Plugins::AliasPlugin,>=1.2,perl,Optional; download from Foswiki:Extensions/AliasPlugin Foswiki::Plugins::DBCachePlugin,>=1.20,perl,Required; download from Foswiki:Extensions/DBCachePlugin Foswiki::Plugins::FilterPlugin,>=0.94,perl,Required; download from Foswiki:Extensions/FilterPlugin Foswiki::Plugins::GluePlugin,>=1.5,perl,Required; download from Foswiki:Extensions/GluePlugin -Foswiki::Plugins::HeadlinesPlugin,>=1.91,perl,Required; download from Foswiki:Extensions/HeadlinesPlugin -Foswiki::Plugins::IfDefinedPlugin,>0.93,perl,Required; download from Foswiki:Extensions/IfDefinedPlugin Foswiki::Plugins::ImagePlugin,>=0.3,perl,Recommended; download from Foswiki:Extensions/ImagePlugin Foswiki::Plugins::NatSkin,>=2.9998,perl,Recommended; download from Foswiki:Extensions/NatSkin Foswiki::Plugins::RedDotPlugin,>=1.35,perl,Required; download from Foswiki:Extensions/RedDotPlugin -Foswiki::Plugins::SpreadSheetPlugin,>=1.001,perl,Required; download from Foswiki:Extensions/SpreadSheetPlugin Foswiki::Plugins::TagCloudPlugin,>=0.20,perl,Required; download from Foswiki:Extensions/TagCloudPlugin Foswiki::Plugins::TimeSincePlugin,>=0.99,perl,Required; download from Foswiki:Extensions/TimeSincePlugin -Foswiki::Plugins::TwistyPlugin,,perl,Required; download from Foswiki:Extensions/TwistyPlugin -Foswiki::Plugins::UserInfoPlugin,>=1.5,perl,Optional; download from Foswiki:Extensions/UserInfoPlugin diff --git a/lib/Foswiki/Plugins/BlogPlugin/MANIFEST b/lib/Foswiki/Plugins/BlogPlugin/MANIFEST index c6bbf6c..f564fe7 100644 --- a/lib/Foswiki/Plugins/BlogPlugin/MANIFEST +++ b/lib/Foswiki/Plugins/BlogPlugin/MANIFEST @@ -1,177 +1,92 @@ -data/_BlogPlugin/AdminTool.txt 0644 -data/_BlogPlugin/AdminToolTemplate.txt 0644 -data/_BlogPlugin/AtomViewTemplate.txt 0644 -data/_BlogPlugin/BaseRef.txt 0644 -data/_BlogPlugin/BlogAbout.txt 0644 -data/_BlogPlugin/BlogArchive.txt 0644 -data/_BlogPlugin/BlogAuthor.txt 0644 -data/_BlogPlugin/BlogAuthorForm.txt 0644 -data/_BlogPlugin/BlogAuthorTemplate.txt 0644 -data/_BlogPlugin/BlogAuthorViewTemplate.txt 0644 -data/_BlogPlugin/BlogComment.txt 0644 -data/_BlogPlugin/BlogCommentForm.txt 0644 -data/_BlogPlugin/BlogCommentTemplate.txt 0644 -data/_BlogPlugin/BlogCommentViewTemplate.txt 0644 -data/_BlogPlugin/BlogDev.txt 0644 -data/_BlogPlugin/BlogEntry.txt 0644 -data/_BlogPlugin/BlogEntry0.txt 0644 -data/_BlogPlugin/BlogEntryForm.txt 0644 -data/_BlogPlugin/BlogEntryTemplate.txt 0644 -data/_BlogPlugin/BlogEntryViewTemplate.txt 0644 -data/_BlogPlugin/BlogHelpText.txt 0644 -data/_BlogPlugin/BlogImages.txt 0644 -data/_BlogPlugin/BlogLink.txt 0644 -data/_BlogPlugin/BlogLinkForm.txt 0644 -data/_BlogPlugin/BlogLinkTemplate.txt 0644 -data/_BlogPlugin/BlogLinkViewTemplate.txt 0644 -data/_BlogPlugin/BlogPage.txt 0644 -data/_BlogPlugin/BlogPageForm.txt 0644 -data/_BlogPlugin/BlogPageTemplate.txt 0644 -data/_BlogPlugin/BlogRef.txt 0644 -data/_BlogPlugin/BlogTag.txt 0644 -data/_BlogPlugin/DataForm.txt 0644 -data/_BlogPlugin/DataFormAttribute.txt 0644 -data/_BlogPlugin/DataFormAttributeTemplate.txt 0644 -data/_BlogPlugin/DataFormTemplate.txt 0644 -data/_BlogPlugin/FrontPage.txt 0644 -data/_BlogPlugin/HiddenFormViewTemplate.txt 0644 -data/_BlogPlugin/NatSkinSearchViewTemplate.txt 0644 -data/_BlogPlugin/NewsFeeds.txt 0644 -data/_BlogPlugin/PatternSkinBlogAuthorViewTemplate.txt 0644 -data/_BlogPlugin/PatternSkinBlogCommentViewTemplate.txt 0644 -data/_BlogPlugin/PatternSkinBlogEntryViewTemplate.txt 0644 -data/_BlogPlugin/PatternSkinBlogLinkViewTemplate.txt 0644 -data/_BlogPlugin/PatternSkinHiddenFormViewTemplate.txt 0644 -data/_BlogPlugin/PatternSkinSubjectCategoryViewTemplate.txt 0644 -data/_BlogPlugin/RenderAddComment.txt 0644 -data/_BlogPlugin/RenderAdminTools.txt 0644 -data/_BlogPlugin/RenderAffiliation.txt 0644 -data/_BlogPlugin/RenderArchives.txt 0644 -data/_BlogPlugin/RenderAtom.txt 0644 -data/_BlogPlugin/RenderAuthors.txt 0644 -data/_BlogPlugin/RenderAuthorTools.txt 0644 -data/_BlogPlugin/RenderBlogArchive.txt 0644 -data/_BlogPlugin/RenderBlogArchiveCat.txt 0644 -data/_BlogPlugin/RenderBlogArchiveChron.txt 0644 -data/_BlogPlugin/RenderBlogArchiveHitList.txt 0644 -data/_BlogPlugin/RenderBlogArchiveLex.txt 0644 -data/_BlogPlugin/RenderBlogArchiveTag.txt 0644 -data/_BlogPlugin/RenderBlogComment.txt 0644 -data/_BlogPlugin/RenderBlogComments.txt 0644 -data/_BlogPlugin/RenderBlogEntriesInCategory.txt 0644 -data/_BlogPlugin/RenderBlogEntriesOfAuthor.txt 0644 -data/_BlogPlugin/RenderBlogEntry.txt 0644 -data/_BlogPlugin/RenderBlogLink.txt 0644 -data/_BlogPlugin/RenderBlogLinksInCategory.txt 0644 -data/_BlogPlugin/RenderBlogPage.txt 0644 -data/_BlogPlugin/RenderBlogRoll.txt 0644 -data/_BlogPlugin/RenderBlogTeaser.txt 0644 -data/_BlogPlugin/RenderCategories.txt 0644 -data/_BlogPlugin/RenderDataFormList.txt 0644 -data/_BlogPlugin/RenderDocNavigation.txt 0644 -data/_BlogPlugin/RenderFrontPage.txt 0644 -data/_BlogPlugin/RenderFrontTeaser.txt 0644 -data/_BlogPlugin/RenderFullTeaser.txt 0644 -data/_BlogPlugin/RenderFunctionCallers.txt 0644 -data/_BlogPlugin/RenderGoogleAdsense.txt 0644 -data/_BlogPlugin/RenderHttpEquivs.txt 0644 -data/_BlogPlugin/RenderImageTools.txt 0644 -data/_BlogPlugin/RenderImageUtilisation.txt 0644 -data/_BlogPlugin/RenderLastFMRecentTracks.txt 0644 -data/_BlogPlugin/RenderLicense.txt 0644 -data/_BlogPlugin/RenderNewBlogEntryButton.txt 0644 -data/_BlogPlugin/RenderNewBlogLinkButton.txt 0644 -data/_BlogPlugin/RenderNewBlogPageButton.txt 0644 -data/_BlogPlugin/RenderNewCategoryButton.txt 0644 -data/_BlogPlugin/RenderNewTopicTypeForm.txt 0644 -data/_BlogPlugin/RenderNewTWikiTopicButton.txt 0644 -data/_BlogPlugin/RenderNextCommentNr.txt 0644 -data/_BlogPlugin/RenderPageNavigation.txt 0644 -data/_BlogPlugin/RenderPages.txt 0644 -data/_BlogPlugin/RenderPageTitle.txt 0644 -data/_BlogPlugin/RenderRecentComments.txt 0644 -data/_BlogPlugin/RenderRecentPostings.txt 0644 -data/_BlogPlugin/RenderRelatedEntries.txt 0644 -data/_BlogPlugin/RenderRss.txt 0644 -data/_BlogPlugin/RenderSideBar.txt 0644 -data/_BlogPlugin/RenderSubComments.txt 0644 -data/_BlogPlugin/RenderTechnorati.txt 0644 -data/_BlogPlugin/RenderTopicList.txt 0644 -data/_BlogPlugin/RenderTopicSummary.txt 0644 -data/_BlogPlugin/RenderTopicTypes.txt 0644 -data/_BlogPlugin/RenderUnpublishedBlogEntries.txt 0644 -data/_BlogPlugin/RenderUploadImageButton.txt 0644 -data/_BlogPlugin/RenderValidateButton.txt 0644 -data/_BlogPlugin/RenderVisitors.txt 0644 -data/_BlogPlugin/RenderWebChanges.txt 0644 -data/_BlogPlugin/RenderWebTools.txt 0644 -data/_BlogPlugin/RssViewTemplate.txt 0644 -data/_BlogPlugin/SubjectCategory.txt 0644 -data/_BlogPlugin/SubjectCategoryForm.txt 0644 -data/_BlogPlugin/SubjectCategoryTemplate.txt 0644 -data/_BlogPlugin/SubjectCategoryViewTemplate.txt 0644 -data/_BlogPlugin/TestBlogEntry0.txt 0644 -data/_BlogPlugin/TopicDescription.txt 0644 -data/_BlogPlugin/TopicForm.txt 0644 -data/_BlogPlugin/TopicFunction.txt 0644 -data/_BlogPlugin/TopicFunctionTemplate.txt 0644 -data/_BlogPlugin/TopicTemplate.txt 0644 -data/_BlogPlugin/TopicTemplateTemplate.txt 0644 -data/_BlogPlugin/TopicType.txt 0644 -data/_BlogPlugin/TopicTypeTemplate.txt 0644 -data/_BlogPlugin/TopicView.txt 0644 -data/_BlogPlugin/TopicViewTemplate.txt 0644 -data/_BlogPlugin/TWikiTopic.txt 0644 -data/_BlogPlugin/WebAggregation.txt 0644 -data/_BlogPlugin/WebAliases.txt 0644 -data/_BlogPlugin/WebAtom.txt 0644 -data/_BlogPlugin/WebAtomCombined.txt 0644 -data/_BlogPlugin/WebAtomComments.txt 0644 -data/_BlogPlugin/WebAtomTeaser.txt 0644 -data/_BlogPlugin/WebButtons.txt 0644 -data/_BlogPlugin/WebChanges.txt 0644 -data/_BlogPlugin/WebCss.txt 0644 -data/_BlogPlugin/WebHome.txt 0644 -data/_BlogPlugin/WebIndex.txt 0644 -data/_BlogPlugin/WebLeftBar.txt 0644 -data/_BlogPlugin/WebNotify.txt 0644 -data/_BlogPlugin/WebPreferences.txt 0644 -data/_BlogPlugin/WebRss.txt 0644 -data/_BlogPlugin/WebRssCombined.txt 0644 -data/_BlogPlugin/WebRssComments.txt 0644 -data/_BlogPlugin/WebRssTeaser.txt 0644 -data/_BlogPlugin/WebSearch.txt 0644 -data/_BlogPlugin/WebSearchAdvanced.txt 0644 -data/_BlogPlugin/WebSideBar.txt 0644 -data/_BlogPlugin/WebStatistics.txt 0644 -data/_BlogPlugin/WebSyndication.txt 0644 -data/_BlogPlugin/WebTopicEditTemplate.txt 0644 -data/_BlogPlugin/WebTopicList.txt 0644 -data/_BlogPlugin/WebTopicViewTemplate.txt 0644 +data/Applications/BlogApp/ApplicationTopic.txt 0644 +data/Applications/BlogApp/BlogApp.txt 0644 +data/Applications/BlogApp/BlogEntry0.txt 0644 +data/Applications/BlogApp/BlogEntryEditTemplate.txt 0644 +data/Applications/BlogApp/BlogEntryRenderSolrSearchItem.txt 0644 +data/Applications/BlogApp/BlogEntry.txt 0644 +data/Applications/BlogApp/BlogEntryViewTemplate.txt 0644 +data/Applications/BlogApp/BlogSearchViewTemplate.txt 0644 +data/Applications/BlogApp/CategorizedTopic.txt 0644 +data/Applications/BlogApp/Category.txt 0644 +data/Applications/BlogApp/CategoryViewTemplate.txt 0644 +data/Applications/BlogApp/ClassifiedTopic.txt 0644 +data/Applications/BlogApp/DataFormAttribute.txt 0644 +data/Applications/BlogApp/DataForm.txt 0644 +data/Applications/BlogApp/DocuTopic.txt 0644 +data/Applications/BlogApp/FrontPageViewTemplate.txt 0644 +data/Applications/BlogApp/HumorCategory.txt 0644 +data/Applications/BlogApp/NewsCategory.txt 0644 +data/Applications/BlogApp/RenderArchives.txt 0644 +data/Applications/BlogApp/RenderAuthorTools.txt 0644 +data/Applications/BlogApp/RenderBlogEntries.txt 0644 +data/Applications/BlogApp/RenderBlogEntryBottom.txt 0644 +data/Applications/BlogApp/RenderBlogEntryPagination.txt 0644 +data/Applications/BlogApp/RenderBlogEntryTitle.txt 0644 +data/Applications/BlogApp/RenderCategories.txt 0644 +data/Applications/BlogApp/RenderHelpText.txt 0644 +data/Applications/BlogApp/RenderRecentBlogEntries.txt 0644 +data/Applications/BlogApp/RenderRecentComments.txt 0644 +data/Applications/BlogApp/RenderSideBar.txt 0644 +data/Applications/BlogApp/RenderSimilarBlogEntries.txt 0644 +data/Applications/BlogApp/ReviewCategory.txt 0644 +data/Applications/BlogApp/SoftwareCategory.txt 0644 +data/Applications/BlogApp/TaggedTopic.txt 0644 +data/Applications/BlogApp/TechnologyCategory.txt 0644 +data/Applications/BlogApp/ThisIsATest.txt 0644 +data/Applications/BlogApp/TopCategory.txt 0644 +data/Applications/BlogApp/TopicFunction.txt 0644 +data/Applications/BlogApp/TopicStub.txt 0644 +data/Applications/BlogApp/TopicTemplate.txt 0644 +data/Applications/BlogApp/TopicType.txt 0644 +data/Applications/BlogApp/TopicView.txt 0644 +data/Applications/BlogApp/WebAtom.txt 0644 +data/Applications/BlogApp/WebChanges.txt 0644 +data/Applications/BlogApp/WebHome.txt 0644 +data/Applications/BlogApp/WebLinks.txt 0644 +data/Applications/BlogApp/WebNotify.txt 0644 +data/Applications/BlogApp/WebPreferences.txt 0644 +data/Applications/BlogApp/WebRss.txt 0644 +data/Applications/BlogApp/WebSearchAdvanced.txt 0644 +data/Applications/BlogApp/WebSearch.txt 0644 +data/Applications/BlogApp/WebStatistics.txt 0644 +data/Applications/BlogApp/WebTool.txt 0644 +data/Applications/BlogApp/WebTopicList.txt 0644 +data/Applications/BlogApp/WebTopicViewTemplate.txt 0644 +data/Applications/BlogApp/WikiApplication.txt 0644 +data/Applications/BlogApp/WikiTopic.txt 0644 +data/_BlogTemplate/BlogEntry.txt 0644 +data/_BlogTemplate/CategorizedTopic.txt 0644 +data/_BlogTemplate/Category.txt 0644 +data/_BlogTemplate/ClassifiedTopic.txt 0644 +data/_BlogTemplate/TopCategory.txt 0644 +data/_BlogTemplate/TopicStub.txt 0644 +data/_BlogTemplate/TopicType.txt 0644 +data/_BlogTemplate/WebAtom.txt 0644 +data/_BlogTemplate/WebChanges.txt 0644 +data/_BlogTemplate/WebHome.txt 0644 +data/_BlogTemplate/WebLeftBar.txt 0644 +data/_BlogTemplate/WebNotify.txt 0644 +data/_BlogTemplate/WebPreferences.txt 0644 +data/_BlogTemplate/WebRss.txt 0644 +data/_BlogTemplate/WebSearchAdvanced.txt 0644 +data/_BlogTemplate/WebSearch.txt 0644 +data/_BlogTemplate/WebSideBar.txt 0644 +data/_BlogTemplate/WebStatistics.txt 0644 +data/_BlogTemplate/WebTopicEditTemplate.txt 0644 +data/_BlogTemplate/WebTopicList.txt 0644 data/Main/BlogAdminGroup.txt 0644 data/Main/BlogAuthorGroup.txt 0644 -data/TWiki/BlogFactory.txt 0644 -data/TWiki/BlogPlugin.txt 0644 -data/TWiki/BlogUp.txt 0644 -lib/TWiki/Plugins/BlogPlugin.pm 0644 -lib/TWiki/Plugins/BlogPlugin/Core.pm 0644 -lib/TWiki/Plugins/BlogPlugin/Factory.pm 0644 -lib/TWiki/Plugins/BlogPlugin/WebDB.pm 0644 -pub/TWiki/BlogPlugin/blogplugin.js 0644 -pub/TWiki/BlogPlugin/patternstyle.css 0644 -pub/TWiki/BlogPlugin/style.css 0644 -pub/TWiki/BlogUp/BlogPluginSnap1.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap10.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap11.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap12.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap13.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap14.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap15.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap2.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap3.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap4.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap5.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap6.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap7.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap8.jpg 0644 -pub/TWiki/BlogUp/BlogPluginSnap9.jpg 0644 +data/System/BlogFactory.txt 0644 +data/System/BlogPlugin.txt 0644 +lib/Foswiki/Plugins/BlogPlugin/Converter.pm 0644 +lib/Foswiki/Plugins/BlogPlugin/Core.pm 0644 +lib/Foswiki/Plugins/BlogPlugin/Factory.pm 0644 +lib/Foswiki/Plugins/BlogPlugin.pm 0644 +lib/Foswiki/Plugins/BlogPlugin/WebDB.pm 0644 +pub/System/BlogPlugin/blogplugin.css 0644 +pub/System/BlogPlugin/blogplugin.css.gz 0644 +pub/System/BlogPlugin/blogplugin.js 0644 +pub/System/BlogPlugin/blogplugin.js.gz 0644 +pub/System/BlogPlugin/blogplugin.uncompressed.css 0644 +pub/System/BlogPlugin/blogplugin.uncompressed.js 0644 +pub/System/BlogPlugin/Makefile 0644 diff --git a/locale/BlogPlugin/Foswiki.pot b/locale/BlogPlugin/Foswiki.pot new file mode 100644 index 0000000..c3013d9 --- /dev/null +++ b/locale/BlogPlugin/Foswiki.pot @@ -0,0 +1,193 @@ +# BlogPlugin translation base file +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: 1.0\n" +"POT-Creation-Date: 2011-12-18 20:24+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Michael Daum \n" +"Language-Team: Foswiki Translation Team \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: \n" + +#: data/Applications/BlogApp/RenderArchives.txt:28 +msgid "%1 Archive" +msgstr "" + +#: data/_BlogTemplate/WebLeftBar.txt:3 +msgid "%1 Web" +msgstr "" + +#: data/Applications/BlogApp/RenderCategories.txt:26 +msgid "%1 categories" +msgstr "" + +#: data/Applications/BlogApp/RenderSideBar.txt:29 data/Applications/BlogApp/RenderSideBar.txt:43 data/Applications/BlogApp/RenderSideBar.txt:54 data/Applications/BlogApp/RenderSideBar.txt:67 +msgid "About" +msgstr "" + +#: data/Applications/BlogApp/RenderArchives.txt:29 +msgid "Archive" +msgstr "" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:19 +msgid "Author" +msgstr "" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:24 +msgid "BlogEntries" +msgstr "" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:25 data/Applications/BlogApp/RenderCategories.txt:27 +msgid "Categories" +msgstr "" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:16 +msgid "Category" +msgstr "" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:27 data/_BlogTemplate/WebLeftBar.txt:7 +msgid "Changes" +msgstr "" + +#: data/Applications/BlogApp/RenderRecentComments.txt:32 +msgid "Comments" +msgstr "" + +#: data/Applications/BlogApp/RenderRecentComments.txt:31 +msgid "Comments in %1" +msgstr "" + +#: data/_BlogTemplate/WebLeftBar.txt:4 +msgid "Create New Topic" +msgstr "" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:32 +msgid "Create date" +msgstr "" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:18 +msgid "Date" +msgstr "" + +#: data/Applications/BlogApp/BlogEntry.txt:37 +msgid "Get description from content." +msgstr "" + +#: data/Applications/BlogApp/BlogEntry.txt:38 +msgid "Get from classification." +msgstr "" + +#: data/Applications/BlogApp/BlogEntry.txt:36 +msgid "Get from topic title." +msgstr "" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:26 data/_BlogTemplate/WebLeftBar.txt:5 +msgid "Index" +msgstr "" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:31 +msgid "Last changed" +msgstr "" + +#: data/Applications/BlogApp/RenderRecentBlogEntries.txt:29 +msgid "Latest" +msgstr "" + +#: data/Applications/BlogApp/BlogEntryEditTemplate.txt:37 +msgid "Meta desciption" +msgstr "" + +#: data/Applications/BlogApp/BlogEntryEditTemplate.txt:36 +msgid "Meta keywords" +msgstr "" + +#: data/Applications/BlogApp/BlogEntryEditTemplate.txt:35 +msgid "Meta title" +msgstr "" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:33 +msgid "Name" +msgstr "" + +#: data/_BlogTemplate/WebLeftBar.txt:8 +msgid "Notifications" +msgstr "" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:30 data/_BlogTemplate/WebLeftBar.txt:11 +msgid "Preferences" +msgstr "" + +#: data/_BlogTemplate/WebLeftBar.txt:9 +msgid "RSS Feed" +msgstr "" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:30 +msgid "Relevance" +msgstr "" + +#: data/Applications/BlogApp/BlogEntryEditTemplate.txt:30 +msgid "SEO" +msgstr "" + +#: data/_BlogTemplate/WebLeftBar.txt:6 +msgid "Search" +msgstr "" + +#: data/Applications/BlogApp/RenderSimilarBlogEntries.txt:23 +msgid "Similar" +msgstr "" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:27 +msgid "Sort by" +msgstr "" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:29 data/_BlogTemplate/WebLeftBar.txt:10 +msgid "Statistics" +msgstr "" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:28 +msgid "Subscriptions" +msgstr "" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:17 +msgid "Tags" +msgstr "" + +#: data/Applications/BlogApp/WebAtom.txt:3 data/Applications/BlogApp/WebRss.txt:5 data/_BlogTemplate/WebAtom.txt:3 data/_BlogTemplate/WebRss.txt:5 +msgid "The %1 web of Foswiki, the Free and Open Source Wiki." +msgstr "" + +#: data/_BlogTemplate/WebNotify.txt:3 +msgid "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:" +msgstr "" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:23 +msgid "Tools" +msgstr "" + +#: lib/Foswiki/Plugins/BlogPlugin/Factory.pm:86 +msgid "access not allowed on web" +msgstr "" + +#: data/Applications/BlogApp/BlogEntryEditTemplate.txt:8 +msgid "blog entry" +msgstr "" + +#: data/Applications/BlogApp/RenderBlogEntries.txt:125 +msgid "next page" +msgstr "" + +#: data/Applications/BlogApp/RenderBlogEntries.txt:122 +msgid "previous page" +msgstr "" + +#: data/Applications/BlogApp/RenderBlogEntries.txt:91 +msgid "reply" +msgstr "" + +#: data/Applications/BlogApp/BlogEntryViewTemplate.txt:40 data/Applications/BlogApp/RenderBlogEntries.txt:67 +msgid "unpublished" +msgstr "" diff --git a/locale/BlogPlugin/de.po b/locale/BlogPlugin/de.po new file mode 100644 index 0000000..4cad4c6 --- /dev/null +++ b/locale/BlogPlugin/de.po @@ -0,0 +1,212 @@ +# BlogPlugin translation base file +msgid "" +msgstr "" +"Project-Id-Version: 1.0\n" +"POT-Creation-Date: 2011-12-18 14:25+000\n" +"PO-Revision-Date: 2011-12-18 20:24+0000\n" +"Last-Translator: Michael Daum \n" +"Language-Team: Foswiki Translation Team \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: \n" + +#: data/Applications/BlogApp/RenderArchives.txt:28 +msgid "%1 Archive" +msgstr "%1 Archiv" + +#: data/_BlogTemplate/WebLeftBar.txt:3 +msgid "%1 Web" +msgstr "%1 Web" + +#: data/Applications/BlogApp/RenderCategories.txt:26 +msgid "%1 categories" +msgstr "%1 Kategorien" + +#: data/Applications/BlogApp/RenderSideBar.txt:29 +#: data/Applications/BlogApp/RenderSideBar.txt:43 +#: data/Applications/BlogApp/RenderSideBar.txt:54 +#: data/Applications/BlogApp/RenderSideBar.txt:67 +msgid "About" +msgstr "Über" + +#: data/Applications/BlogApp/RenderArchives.txt:29 +msgid "Archive" +msgstr "Archiv" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:19 +msgid "Author" +msgstr "Author" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:24 +msgid "BlogEntries" +msgstr "Blog-Einträge" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:25 +#: data/Applications/BlogApp/RenderCategories.txt:27 +msgid "Categories" +msgstr "Kategorien" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:16 +msgid "Category" +msgstr "Kategorien" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:27 +#: data/_BlogTemplate/WebLeftBar.txt:7 +msgid "Changes" +msgstr "Änderungen" + +#: data/Applications/BlogApp/RenderRecentComments.txt:32 +msgid "Comments" +msgstr "Kommentare" + +#: data/Applications/BlogApp/RenderRecentComments.txt:31 +msgid "Comments in %1" +msgstr "Kommentare zu %1" + +#: data/_BlogTemplate/WebLeftBar.txt:4 +msgid "Create New Topic" +msgstr "Neues Topic anlegen" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:32 +msgid "Create date" +msgstr "Erstellungsdatum" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:18 +msgid "Date" +msgstr "Datum" + +#: data/Applications/BlogApp/BlogEntry.txt:37 +msgid "Get description from content." +msgstr "Beschreibung vom Text extrahieren." + +#: data/Applications/BlogApp/BlogEntry.txt:38 +msgid "Get from classification." +msgstr "Extrahiere von Klassifikation" + +#: data/Applications/BlogApp/BlogEntry.txt:36 +msgid "Get from topic title." +msgstr "Vom Topic-Titel extrahieren" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:26 +#: data/_BlogTemplate/WebLeftBar.txt:5 +msgid "Index" +msgstr "Index" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:31 +msgid "Last changed" +msgstr "Zuletzt geändert" + +#: data/Applications/BlogApp/RenderRecentBlogEntries.txt:29 +msgid "Latest" +msgstr "Neuestes" + +#: data/Applications/BlogApp/BlogEntryEditTemplate.txt:37 +msgid "Meta desciption" +msgstr "Meta Beschreibung" + +#: data/Applications/BlogApp/BlogEntryEditTemplate.txt:36 +msgid "Meta keywords" +msgstr "Meta Schlüsselworte" + +#: data/Applications/BlogApp/BlogEntryEditTemplate.txt:35 +msgid "Meta title" +msgstr "Meta Titel" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:33 +msgid "Name" +msgstr "Name" + +#: data/_BlogTemplate/WebLeftBar.txt:8 +msgid "Notifications" +msgstr "Benachrichtigungen" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:30 +#: data/_BlogTemplate/WebLeftBar.txt:11 +msgid "Preferences" +msgstr "Einstellungen" + +#: data/_BlogTemplate/WebLeftBar.txt:9 +msgid "RSS Feed" +msgstr "RSS Feed" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:30 +msgid "Relevance" +msgstr "Relevanz" + +#: data/Applications/BlogApp/BlogEntryEditTemplate.txt:30 +msgid "SEO" +msgstr "SEO" + +#: data/_BlogTemplate/WebLeftBar.txt:6 +msgid "Search" +msgstr "Suchen" + +#: data/Applications/BlogApp/RenderSimilarBlogEntries.txt:23 +msgid "Similar" +msgstr "Ähnliches" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:27 +msgid "Sort by" +msgstr "Sortieren nach" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:29 +#: data/_BlogTemplate/WebLeftBar.txt:10 +msgid "Statistics" +msgstr "Statistiken" + +#: data/Applications/BlogApp/RenderAuthorTools.txt:28 +msgid "Subscriptions" +msgstr "Abonnements" + +#: data/Applications/BlogApp/BlogSearchViewTemplate.txt:17 +msgid "Tags" +msgstr "Schlüsselworte" + +#: data/Applications/BlogApp/WebAtom.txt:3 +#: data/Applications/BlogApp/WebRss.txt:5 data/_BlogTemplate/WebAtom.txt:3 +#: data/_BlogTemplate/WebRss.txt:5 +msgid "The %1 web of Foswiki, the Free and Open Source Wiki." +msgstr "Das %1 Web von Foswiki, dem Freien Open Source Wiki." + +#: data/_BlogTemplate/WebNotify.txt:3 +msgid "" +"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:" +msgstr "" +"Dies ist ein Abonnement-Service, um automatisch per E-Mail benachrichtigt zu " +"werden, wenn ein Topic im %1 Web sich geändert hat. Um sich für diesen " +"Service anzumelden fügen Sie einfach ihren %2 in alphabetischer Reihenfolge " +"zu dieser Liste hinzu." + +#: data/Applications/BlogApp/RenderAuthorTools.txt:23 +msgid "Tools" +msgstr "Werkzeuge" + +#: lib/Foswiki/Plugins/BlogPlugin/Factory.pm:86 +msgid "access not allowed on web" +msgstr "Zugriff zu diesem Web nicht gestattet" + +#: data/Applications/BlogApp/BlogEntryEditTemplate.txt:8 +msgid "blog entry" +msgstr "Blog-Eintag" + +#: data/Applications/BlogApp/RenderBlogEntries.txt:125 +msgid "next page" +msgstr "nächste Seite" + +#: data/Applications/BlogApp/RenderBlogEntries.txt:122 +msgid "previous page" +msgstr "vorherige Seite" + +#: data/Applications/BlogApp/RenderBlogEntries.txt:91 +msgid "reply" +msgstr "antworten" + +#: data/Applications/BlogApp/BlogEntryViewTemplate.txt:40 +#: data/Applications/BlogApp/RenderBlogEntries.txt:67 +msgid "unpublished" +msgstr "unveröffentlicht" diff --git a/pub/System/BlogPlugin/Makefile b/pub/System/BlogPlugin/Makefile new file mode 100644 index 0000000..2d712ca --- /dev/null +++ b/pub/System/BlogPlugin/Makefile @@ -0,0 +1,4 @@ +FOSWIKI_ROOT?=~/foswiki/trunk/core +TARGET=blogplugin.css blogplugin.js + +-include $(FOSWIKI_ROOT)/pub/System/JQueryPlugin/Makefile.include diff --git a/pub/System/BlogPlugin/blogplugin.uncompressed.css b/pub/System/BlogPlugin/blogplugin.uncompressed.css new file mode 100644 index 0000000..08ece26 --- /dev/null +++ b/pub/System/BlogPlugin/blogplugin.uncompressed.css @@ -0,0 +1,54 @@ +.blogInfo { + text-align:left; +} +.blogEntry { + text-align:justify; +} +.blogEntry .foswikiTopicInfo { + text-align:left; +} +.blogEntriesSticky { + margin-bottom:2.7692em; /* 36px 36px */ + padding:1em; +} +.blogEntriesSticky h2 { + margin-top:0px; +} +.blogEntriesSticky .blogEntry:last-child { + margin-bottom:0px; +} +.blogEntries .blogEntry { + margin-bottom:2.7692em; +} +.blogEntryInfo { + margin:1em 0em; +} +.blogPrev a, +.blogNext a { + text-decoration:none; +} +.blogEntryPagination, +.blogBottomPagination { + margin-top:1em; +} +.blogTopPagination { + margin:0em 0em 1em; +} +.blogSideBarSection strong { + color:inherit; +} +.blogEntry .imagePlain_right { + margin-left:1em; + margin-bottom:1em; +} +.blogEntry .imagePlain_left { + margin-right:1em; + margin-bottom:1em; +} +.blogCategoryTitle { + border:0px; + float:left; +} +.blogCategoryTitle h1 { + margin-top:0px; +} diff --git a/pub/System/BlogPlugin/blogplugin.uncompressed.js b/pub/System/BlogPlugin/blogplugin.uncompressed.js new file mode 100644 index 0000000..c152579 --- /dev/null +++ b/pub/System/BlogPlugin/blogplugin.uncompressed.js @@ -0,0 +1,40 @@ +jQuery(function($) { + $("#blogFetchTitle").live("click", function() { + var $field = $(this).parents(".foswikiFormStep:first").find("input"), + title = $("input[name=TopicTitle]").val(); + + if (!title) { + title = foswiki.getPreference("TOPIC"); + } + + $field.val(title.substr(0, 60)); + return false; + }); + + $("#blogFetchDescription").live("click", function() { + var $field = $(this).parents(".foswikiFormStep:first").find("textarea"), + description = $("input[name=Summary]").val(); + + if (!description) { + description = $("#topic").val(); + } + + $field.val(description.replace(/<[^>]*>/g, "").replace(/\n\s*\n/g, "").substr(0, 160)); + return false; + }); + + $("#blogFetchKeywords").live("click", function() { + var $field = $(this).parents(".foswikiFormStep:first").find("input"), + keywords = []; + + $("input[name=Tag]").each(function() { + var val = $(this).val(); + if (val) { + keywords = keywords.concat(val.split(/\s*,\s*/)); + } + }); + + $field.val(keywords.join(", ")); + return false; + }); +}); diff --git a/pub/TWiki/BlogPlugin/blogplugin.js b/pub/TWiki/BlogPlugin/blogplugin.js index b84d3e6..c221799 100644 --- a/pub/TWiki/BlogPlugin/blogplugin.js +++ b/pub/TWiki/BlogPlugin/blogplugin.js @@ -2,29 +2,56 @@ // theID: name of the input field // theTag: the tag function toggleTag(fieldName, theTag) { - var inputField = document.EditFormular[fieldName]; - if (inputField) { - var fieldValue = inputField.value; - fieldValue = fieldValue.replace(/,/g,""); - var tags = fieldValue.split(" "); - var newTags = new Array(); - var found = false; - for (var i = 0; i < tags.length; i++) { - var tag = tags[i]; - if (tag == theTag) { - found = true; - } else { - newTags.push(tag); - } - } - if (!found) { - newTags.push(theTag) - } - newTags.sort(); - inputField.value = newTags.join(" "); - /* + var inputField = document.getElementsByName(fieldName); + if (!inputField) { + /*window.alert("Warning: field '"+fieldName+"' not found in form");*/ + return; + } + inputField = inputField[0]; + var fieldValue = inputField.value; + fieldValue = fieldValue.replace(/,/g,""); + var tags = fieldValue.split(" "); + var newTags = new Array(); + var found = false; + for (var i = 0; i < tags.length; i++) { + var tag = tags[i]; + var tagElem = document.getElementById(tag); + if (tagElem) { + tagElem.className = ''; + } + if (tag == theTag) { + found = true; } else { - window.alert("Warning: field '"+fieldName+"' not found in the edit formular"); - */ + newTags.push(tag); + } + } + if (!found) { + newTags.push(theTag) + } + newTags.sort(); + inputField.value = newTags.join(" "); + + for (var i = 0; i < newTags.length; i++) { + var tagElem = document.getElementById(newTags[i]); + if (tagElem) { + tagElem.className = 'current'; + } + } +} +var prevHiliteElements = new Array(); +function hiliteTagCloud (elems, name) { + for (var i = 0; i < prevHiliteElements.length; i++) { + var elem = document.getElementById(prevHiliteElements[i]); + if (elem) { + elem.className = ''; + } + } + elems = elems.split(/[, ]+/); + prevHiliteElements = elems; + for (var i = 0; i < elems.length; i++) { + var elem = document.getElementById(elems[i]); + if (elem) { + elem.className = name; } + } } diff --git a/pub/TWiki/BlogPlugin/style.css b/pub/TWiki/BlogPlugin/style.css index eb35d91..784e628 100644 --- a/pub/TWiki/BlogPlugin/style.css +++ b/pub/TWiki/BlogPlugin/style.css @@ -1,18 +1,5 @@ /* blogging */ -/* debug -.blogEntryButton, .blogCategoryButton, .blogPageButton, .blogTopicButton, -.blogAbout, .blogSideBar, .blogSideBarCommenter, .blogSideBarSection, -.blogEntry, .blogHeadline, .blogInfo, .blogDate, .blogText, .blogMore, -.blogComments, .blogComment, .blogCommentOdd, .blogCommentEven, -.blogAddComment, .blogCommentCount, .blogCommentNr, .blogCommentDate, -.blogSubComments, .blogSubComment, .blogRef, .blogNavigation, .blogRelated1, -.blogRelated2, .blogRelated3, .blogNext, .blogPrev, .blogCommentText, -.blogSubmitButton, .blogFeedCategory, .blogSideBarHeader { -{ - border:1px solid red; -} -*/ .blogAbout { /*text-align:justify; */ font-size:95%; @@ -29,14 +16,24 @@ margin-bottom:0px; } -.blogInfo { - padding-bottom:5px; -} - .blogText { text-align:justify; width:100%; } +.blogText .alt, +.blogText h1, +.blogText h2, +.blogText h3, +.blogText h4, +.blogText h5, +.blogText h6, +.blogText li { + text-align:left; +} +.blogText p { + margin:0px; + margin-top:0.7em; +} .blogText cite { text-align:left; } @@ -50,7 +47,7 @@ } .blogNavigation { - font-size:0.8em; + font-size:95%; margin-bottom:10px; padding:0px; } @@ -94,9 +91,6 @@ .blogCommentEven { margin-top:20px; } -.blogCommentCount { - margin-left:10px; -} .blogHeadline .blogCommentCount { font-size:2em; text-align:right; @@ -104,12 +98,13 @@ .blogEntryCount { text-align:right; } +.natSideBar .blogSideBarHeader h1 { + margin-bottom:0px; + padding-bottom:0px; +} .blogSideBarHeader { margin-bottom:2px; } -.blogSideBar .blogEntryCount, -.blogSideBar .blogCommentCount { -} .blogComment { padding:5px; } @@ -147,7 +142,7 @@ } .blogSideBarCommenter { - font-size:0.9em; + font-size:95%; } .blogSideBar form { @@ -185,10 +180,6 @@ font-weight:bold; } -.blogSideBarAdmin li { - white-space:nowrap; -} - .blogAdminButtons, .blogAuthorButtons { margin-bottom:10px !important; @@ -221,6 +212,20 @@ text-align:center; margin:1em 0; } + + +.blogEditFormTagCloud a.current, +.blogArchiveModes a.current, +.blogArchiveYear a.current, +.blogArchiveMonth a.current, +.blogArchiveLexMins a.current, +.blogArchiveTagCloud a.current { + background:#f4f4f4; +} +.blogArchiveTagCloud a.hilite { + background:#f4f4f4; +} + .blogArchiveYear, .blogArchiveMonth { margin:10px; @@ -242,14 +247,27 @@ padding:20px 20px 15px 20px; line-height:200%; } +.blogEditFormTagCloud { + text-align:center; + line-height:200%; + padding:5px; + margin:0px 15px 10px 0px; +} .blogArchiveLexMin a { margin:10px 0; font-size:1em; padding:0 5px; } -.blogSideBarLastFM h1 a:after { - display:none; +.blogLastFMInfo { + margin-bottom:0.5em; +} +.blogLastFMRadio { + text-align:center; } .blogGoogleAds { margin:5px auto; } +.blogTechTag { /* don't display but make technorati happy */ + font-size:2px; + color:white !important; +}