Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added teaser sections to blog template * using WikiWorkbench's full-text rss and atom capabilities now * made comment counts pluggable * displaying disqus comment counts if in use * fixed link to posting author(s) * added changes in SeoTopic type to BlogEntry type * using relative urls by default now git-svn-id: http://svn.foswiki.org/trunk/BlogPlugin@16699 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
MichaelDaum
authored and
MichaelDaum
committed
May 5, 2013
1 parent
3d73720
commit 0cf03c6
Showing
9 changed files
with
103 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
%META:TOPICINFO{author="micha" date="1367627921" format="1.1" version="1"}% | ||
%META:TOPICPARENT{name="TopicTemplate"}% | ||
%STARTSECTION{"teaser"}% | ||
|
||
%ENDSECTION{"teaser"}% | ||
|
||
%META:FORM{name="Applications.ApplicationTopic"}% | ||
%META:FIELD{name="TopicType" title="TopicType" value="TopicTemplate"}% | ||
%META:FIELD{name="TopicTitle" attributes="" title="<nop>TopicTitle" value="BlogEntryTemplate"}% | ||
%META:FIELD{name="Summary" attributes="c" title="Summary" value=""}% | ||
%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
%META:TOPICINFO{author="micha" comment="reprev" date="1367740466" format="1.1" reprev="1" version="1"}% | ||
%META:TOPICPARENT{name="TopicFunction"}% | ||
%TOC{depth="2"}% | ||
|
||
---++ Documentation | ||
%STARTSECTION{"documentation"}% | ||
|
||
---+++++ Parameters | ||
* THETOPIC to display the counts for | ||
* COMMENTSYSTEM | ||
|
||
%ENDSECTION{"documentation"}% | ||
|
||
---++ Implementation | ||
<verbatim class="tml"> | ||
%STARTINCLUDE%%DBCALL{ | ||
"Applications.BlogApp.RenderNumberOfComments" | ||
section="%COMMENTSYSTEM{default="metacomment"}%" | ||
THETOPIC="%THETOPIC{default="%BASEWEB%.%BASETOPIC%"}%" | ||
warn="off" | ||
}%%STOPINCLUDE% | ||
</verbatim> | ||
---+++ metacomment | ||
<verbatim class="tml"> | ||
%STARTSECTION{"metacomment"}%%METACOMMENTS{ | ||
topic="$web.$topic" | ||
approval="on" | ||
format="$count" | ||
limit="1" | ||
singular="1" | ||
plural="$count" | ||
}%%ENDSECTION{"metacomment"}% | ||
</verbatim> | ||
|
||
---+++ disqus | ||
<verbatim class="tml"> | ||
%STARTSECTION{"disqus"}%%DISQUS_COUNT{"%THETOPIC%"}%%ENDSECTION{"disqus"}% | ||
</verbatim> | ||
|
||
---++ Test | ||
%DBCALL{"%TOPIC%"}% | ||
|
||
%DBCALL{"Applications.RenderFunctionCallers"}% | ||
|
||
---++ Copyright | ||
© 2005 2013 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="<nop>TopicTitle" value=""}% | ||
%META:FIELD{name="Summary" attributes="c" title="Summary" value=""}% | ||
%META:FIELD{name="WikiApplication" attributes="" title="WikiApplication" value="BlogApp"}% | ||
%META:PREFERENCE{name="EDIT_TEMPLATE" title="EDIT_TEMPLATE" type="Set" value="Applications.WikiTopicEdit"}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 9914 $"}% | ||
<channel rdf:about="%SCRIPTURL{"view"}%/%WEB%"> | ||
%IF{ "$'URLPARAM{search}'!=''" then="<title><nop>%WIKITOOLNAME% search results for <nop>%URLPARAM{search}%</title>" else="<title><nop>%WIKITOOLNAME%'s <nop>%WEB% web</title>"}% | ||
<link>%SCRIPTURL{"view"}%/%WEB%</link> | ||
<description>%MAKETEXT{"The [_1] web of Foswiki, the Free and Open Source Wiki." args="<nop>%WEB%"}%</description> | ||
%INCLUDE{"%SYSTEMWEB%.WebRssBase"}%<!-- | ||
* Set SKIN = rss | ||
--> | ||
* Set VIEW_TEMPLATE = Applications.RssView | ||
* Set FILTER = TopicType=~'\bBlogEntry\b' | ||
* Set LIMIT = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
%META:TOPICINFO{author="ProjectContributor" comment="save topic" date="1299097553" format="1.1" reprev="1" version="1"}% | ||
%META:TOPICINFO{author="micha" comment="save topic" date="1367628007" format="1.1" reprev="1" version="2"}% | ||
%META:TOPICPARENT{name="WebHome"}% | ||
%STARTSECTION{"teaser"}% | ||
|
||
%ENDSECTION{"teaser"}% | ||
|
||
%META:FORM{name="Applications.BlogApp.BlogEntry"}% | ||
%META:FIELD{name="TopicType" title="TopicType" value="BlogEntry, ClassifiedTopic, CategorizedTopic, TaggedTopic"}% | ||
%META:FIELD{name="TopicTitle" attributes="" title="<nop>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:FIELD{name="Author" attributes="" title="Author" value=""}% | ||
%META:FIELD{name="State" attributes="" title="State" value="unpublished"}% | ||
%META:FIELD{name="Sticky" attributes="" title="Sticky" value=""}% | ||
%META:FIELD{name="MetaDescription" attributes="" title="Meta Description" value=""}% | ||
%META:FIELD{name="MetaKeywords" attributes="" title="Meta Keywords" value=""}% | ||
%META:DISQUS{name="21211fec12bb65e87ce0bb936929c2ef"}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters