%META:TOPICINFO{author="TWikiContributor" 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
<verbatim>
%STARTINCLUDE%
%IFDEFINEDTHEN{"%DBQUERY{topic="%BASETOPIC%" format="$expand(Headline)"}%"}%
  $test
%ELSIFDEFINED{"%DBQUERY{topic="%BASETOPIC%" format="$expand(TopicDescription)"}%"}%
  %BASETOPIC% - $test
%ELSEDEFINED%
  %BASETOPIC%
%FIDEFINED%
%STOPINCLUDE%
</verbatim>

<!-- interrupt glue -->

---++ Test
<div class="alt">
%DBCALL{"%TOPIC%"}%
</div>

%DBCALL{"RenderFunctionCallers"}%

<!--
   * Set ALLOWTOPICCHANGE = %MAINWEB%.BlogAdminGroup
   * 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="" title="TopicDescription" value="Render the PAGETITLE for items in this application"}%
