%META:TOPICINFO{author="TWikiContributor" 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%
*~~
<form action="%SCRIPTURLPATH{"edit"}%/%WEB%/BlogLinkXXXXXXXXXX" method="post">
<input type="hidden" name="onlywikiname" value="off" />
<input type="hidden" name="templatetopic" value="BlogLinkTemplate" />
<input type="hidden" name="formtemplate" value="BlogLinkForm" />
<input type="hidden" name="topicparent" value="WebHome" />
<input type="hidden" name="topic" value="BlogLinkXXXXXXXXXX" />
<input type="hidden" name="TopicType" value="BlogLink" />
<input type="hidden" name="BlogAuthor" value="%WIKINAME%" />
<input type="hidden" name="action" value="form" />
<input type="submit" class="blogSubmitButton" value="%TEXT%" />
</form> 
*~~
%STOPINCLUDE%
<!-- -->
%DBCALL{"RenderFunctionCallers"}%

<!--
   * Set ALLOWTOPICCHANGE = %MAINWEB%.BlogAdminGroup
   * Set ALLOWTOPICVIEW = %MAINWEB%.BlogAuthorGroup
   * Set SIDEBAR = Admin
   * Set SIDEBARARG = TopicFunction
-->


%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"}%
