Renders the guesbook modul
Documentation
This function is separated in three parts
- a header section
- a footer section
- and the default section
The first two are called by the default section or by the
GuestBookViewTemplate.
Parameters
- SOURCE: topic that contains the guestbook, defaults to BASEWEB.BASETOPICGuestBook
Css
- empGuestBook
- empGuestBookCounter
Implementation
%STARTINCLUDE%
~~~
%~~ DBCALL{"Applications.EmployeePortalApp.RenderGuestBook" section="header"}%
~~~
%~~ DBCALL{
~~~ "%IFDEFINED{"%SOURCE%"
~~~ then="%SOURCE%"
~~~ else="%BASEWEB%.%BASETOPIC%GuestBook"
~~~ }%"
~~~ warn="off"
~~~ }%
~~~
%~~ DBCALL{"Applications.EmployeePortalApp.RenderGuestBook" section="footer"}%
~~~
%STOPINCLUDE%
Header section
%STARTSECTION{"header"}%
~~~ <div class="empGuestBook">
~~~ <h3><span id="empGuestBookCounter">0</span> message(s)</h3>
~~~
%ENDSECTION{"header"}%
Footer section
%STARTSECTION{"footer"}%
~~~
%~~ COMMENT{type="guestbook"
~~~ target="%IFDEFINED{"%SOURCE%" then="%SOURCE%" else="%BASEWEB%.%BASETOPIC%GuestBook"}%"
~~~ }%
~~~ </div>
~~~
%ENDSECTION{"footer"}%
Test
see
TestPortalGuestBook
0 message(s)
|
|
1. %HEADLINE%
24 Jul 2010
|
|
test
|
|
|
2. %HEADLINE%
24 Jul 2010
|
|
more more more
|
|
|
3. %HEADLINE%
24 Jul 2010
|
|
test
|
counter = 3
Calls to 'RenderGuestBook'
Copyright
© 2007 Michael Daum
http://wikiring.de
This file 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. For
more details read the
LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.