Blog

Templates

Blog pagelist templates

#list

[[#list]]
(:template defaults group=Blog name=????-??-* order=-ctime:)
(:template each:)
(:div9 class=blogpost:)

!! [[{=$FullName}|+]]
%p bloghead% %blogdate id={=$PageCreatedTime}%{(ftime "%e %B, %Y at %H:%M %Z" "@{=$PageCreatedTime}")}%%

(:include {=$FullName}##jump self=0:)
(:if !equal {=$:jump}:)

%p blogjump%[[{=$FullName}|Continue reading...]](:ifend:)

(:div8 class=blogfoot:)
(:if equal {=$:hidecomments}:)%p commentlink%[[{=$FullName}#comments|(:if2 equal {=$:lockcomments}:)Comment(:else2:)Comments locked(:if2end:) ((:pagelist fmt=count group=Comments name={=$Name}*:))]]
(:ifend:)

{(atomic "{=$TagList}" "\\
")}%blogauthor%by {=$LastModifiedBy}%%
(:div8end:)
(:div9end:)

----
[[#listend]]

#links

[[#links]]
(:template defaults group=Blog name=????-??-* order=-ctime:)
(:template each:)
* [[{=$FullName}|+]] — %blogdate id={=$PageCreatedTime}%{(ftime "%e %B, %Y" "@{=$PageCreatedTime}")}%%
[[#linksend]]

#months

[[#months]]
(:template defaults group=Blog name=????-??-* order=-name:)
(:template first {=$BlogMonth}:)
* [[{$BlogRoot}/{=$BlogMonth}|{(ftime "%Y %B" {=$BlogMonth})}]]
[[#monthsend]]

#comments

[[#comments]]
(:template defaults group=Comments:)
(:template each:)
>>id="comment-{(substr {=$Name} -3)}" class="blogcomment (:if equal {=$BlogeAuthUser}:)anon(:else:)authuser(:ifend:)"<<
%p commentinfo% '''{=$LastModifiedBy}'''\\
%blogdate id={=$PageCreatedTime}%{(ftime "%e %B, %Y\\
at %H:%M" "@{=$PageCreatedTime}")}%%\\
[[#comment{(substr {=$Name} -4)}|#{=$CommentNumber}]]
(:if auth edit {=$FullName}:)\\
[[{=$FullName}?action=edit|edit]](:ifend:)

(:include {=$FullName}:)
>><<
[[#commentsend]]

#commentlinks

[[#commentlinks]]
(:template defaults group=Comments name=????-??-* order=-ctime:)
(:template each:)
* [[Blog.{(substr {=$Name} 0 -4)}#comment-{(substr {=$Name} -3)}|{Blog.{(substr {=$Name} 0 -4)}$Title} #{=$CommentNumber}]] &mdash; %blogdate id={=$PageCreatedTime}%{(ftime "%e %B, %Y" "@{=$PageCreatedTime}")}%%
[[#commentlinksend]]

PmForm comment templates

#commentform

[[#commentform]]
>>blogcomment<<
(:messages:)
(:input pmform target=comments class=commentform:)
(:input default request=1:)
(:if authid:)%p commentinfo%'''{$AuthId}'''(:input hidden author "{$AuthId}":)
(:else:)%p commentinfo%(:input text author "{$Author}":)
(:ifend:)

(:input textarea msg rows=10 cols=40:)(:if ( enabled EnableBlogeCaptcha && ! authid ):)
Enter value: {$Captcha} (:input captcha:)(:ifend:)\\
(:input submit name=post value="$[Add comment]":)
%comment% $[E-mail]: (:input text name=email value='':) %%
(:input end:)
>><<
[[#commentformend]]

#commentpost

[[#commentpost]]
(:template defaults where=new:)
(:template require msg errmsg="$[Message text is required]":)
(:template require author errmsg="$[Author name is required]":)
(:template require author match="{$$users}" errmsg='$[The author name "$Author" is reserved.]':)
(:template require email match='' errmsg='$[Please leave the mail field empty]':)
{$$BlogePostUrl}{$$msg}
[[#commentpostend]]