Modern Guestbook (ve guestbook)

Aus Wikizone
Version vom 15. Februar 2006, 18:09 Uhr von 84.157.119.54 (Diskussion)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Das Gästebuch

Wichtige Einstellungen

TypoScript Setup

  ########################
  ### Gästebuch Plugin ###
  ########################
  plugin.tx_veguestbook_pi1._CSS_DEFAULT_STYLE >
  plugin.tx_veguestbook_pi1.limit=5

Template für das Frontend des Gästebuch

Klassen

  • guestbookListHead
  • guestbookLeft

Marker für die Listenansicht

Teasing the guestbook
Following markers will be substituted:

###GUESTBOOK_FIRSTNAME### 	Firstname (Entry)
###GUESTBOOK_SURNAME###		Surname (Entry)
###GUESTBOOK_EMAIL_URL### 	E-Mail URL (Entry)
###GUESTBOOK_EMAIL### 		E-Mail including spam protection if activated (Entry)
###GUESTBOOK_HOMEPAGE### 	Website (Entry)
###GUESTBOOK_PLACE### 		Place (Entry)
###GUESTBOOK_ENTRY### 		Message (Entry)

And the field names...

###FORM_FIRSTNAME### 		Firstname
###FORM_SURNAME###		Surname
###FORM_EMAIL### 		E-Mail
###FORM_HOMEPAGE### 		Website
###FORM_PLACE### 		Place
###FORM_ENTRY### 		Message

Marker für keine Einträge gefunden

No entries found :-(
Following markers will be substituted:
###GUESTBOOK_FIRSTNAME### 	Firstname
###GUESTBOOK_SURNAME###		Surname
###GUESTBOOK_EMAIL_URL### 	E-Mail (URL)
###GUESTBOOK_EMAIL### 		E-Mail including spam protection if activated
###GUESTBOOK_HOMEPAGE### 	Website
###GUESTBOOK_PLACE### 		Place
###GUESTBOOK_ENTRY### 		Message

Marker für Teaser

Following markers will be substituted:

###TEASER_HEADLINE###		Headline (from the language file)
###TEASER_MORE###			More (from the language file)
###GUESTBOOK_FIRSTNAME### 	Firstname
###GUESTBOOK_SURNAME###		Surname
###GUESTBOOK_EMAIL_URL### 	E-Mail (URL)
###GUESTBOOK_EMAIL### 		E-Mail including spam protection if activated
###GUESTBOOK_HOMEPAGE### 	Website
###GUESTBOOK_PLACE### 		Place
###GUESTBOOK_ENTRY### 		Message

= Template als Tabelle

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <title>News example template</title>
</head>
<body>
<h3>TEMPLATE_LIST</h3>
<em>Template für die Listenansicht</em>
<br />
<!-- ###TEMPLATE_LIST### begin-->
###BROWSE_LINKS###
<!-- ###CONTENT### begin Beginn der Listenansicht -->
   <!-- ###ENTRY### begin Beginn eines einzelnen Eintrags	-->
      <table cellpadding="0" cellspacing="0" border="0" width="100%">
      <tr>		
      <td> 
         <table class="guestbook-entry" cellpadding="3" cellspacing="0" border="0" width="100%">
         <tr>
         <td valign="top" colspan="2" class="guestbookListHead">
            ###GUESTBOOK_FIRSTNAME### ###GUESTBOOK_SURNAME### ###GUESTBOOK_FROM### ###GUESTBOOK_PLACE###
         </td>
         </tr>
         <tr>
         <td width="30%" height="48" valign="top" class="guestbookLeft"> 
            <!-- ###ENTRY_EMAIL### begin This will be stripped out if empty-->
               <span>
               <a href="###GUESTBOOK_EMAIL_URL###">###GUESTBOOK_EMAIL###</a>
               </span>
            <!-- ###ENTRY_EMAIL###  end -->
            <!-- ###ENTRY_HOMEPAGE### begin This will be stripped out if empty -->
               <br>
               <span>
               <a href="###GUESTBOOK_HOMEPAGE###" target="blank">###FORM_HOMEPAGE###</a>
               </span>
            <!-- ###ENTRY_HOMEPAGE###  end -->
         </td>
         <td valign="top">
            <span class="tx-guestbook-list-small">
               ###GUESTBOOK_DATE###
            </span>
            <br/>
            <span class="content">
               ###GUESTBOOK_ENTRY###
            </span>
               <!-- ###ENTRY_ENTRYCOMMENT### begin This will be stripped out if empty -->		
                  <span>
                     ###FORM_ENTRYCOMMENT###:
                  </span><br>
                  <span>
                     ###GUESTBOOK_ENTRYCOMMENT###
                  </span>
               <!-- ###ENTRY_ENTRYCOMMENT###  end -->
          </td>
          </tr>
          </table>
      </td>
      </tr>
      </table><br/>
   <!-- ###ENTRY### end-->
<!-- ###CONTENT###  end -->
###BROWSE_LINKS###
<!-- ###TEMPLATE_LIST### end -->


<!-- ###TEMPLATE_NO_ENTRIES### begin -->
   <table cellpadding="1" cellspacing="0" border="0" width="100%">
   <tr>
   <td> 
      <table cellpadding="3" cellspacing="0" border="0" width="100%">
      <tr>
      <td valign="top" class="GuestbookListHead">
         ###NO_ENTRIES_HEADLINE###
      </td>
      </tr>
      <tr>
      <td valign="top">
         ###NO_ENTRIES_TEXT###
      </td>
      </tr>
      </table>
   </td>
   </tr>
   </table><br/>
<!-- ###TEMPLATE_NO_ENTRIES### end -->


<!-- ###TEMPLATE_TEASER### begin Showing the guestbook -->
			
<table cellpadding="1" cellspacing="0" border="0" width="100%">
  <tr>
				
    <td> 
      <table cellpadding="3" cellspacing="0" border="0" width="100%">

					<tr>
						<td valign="top" class="tx-guestbook-latest-header"> ###TEASER_HEADLINE###</td>
					</tr>
					<tr>
						<td valign="top" class="tx-guestbook-latest-row">
	<!-- ###CONTENT### begin
		  This is the part of the template substituted with the list of entries: 
	-->
		<!-- ###ENTRY### begin 
			Template for a single item 
		-->						
						<p><span class="tx-guestbook-list-small">###GUESTBOOK_DATE###</span><br/>

							###GUESTBOOK_FIRSTNAME### ###GUESTBOOK_SURNAME###:<br/>###GUESTBOOK_ENTRY###</p>
		<!-- ###ENTRY### end-->		
	<!-- ###CONTENT###  end -->
							<p align="right"><!--###LINK_ITEM###-->###TEASER_MORE###<!--###LINK_ITEM###--></p></td>
					</tr>
					</table>
				</td>
			</tr>

			</table><br/>
		

<!-- ###TEMPLATE_TEASER### end -->




<!-- ###TEMPLATE_FORM### begin

The guestbook form for a new frontend entry

Following markers will be substituted:

###FORM_FIRSTNAME### 	Firstname
###FORM_SURNAME###		Surname
###FORM_EMAIL### 		E-Mail
###FORM_HOMEPAGE### 	Website
###FORM_PLACE### 		Place
###FORM_ENTRY### 		Message

-->
<span class="tx-guestbook-form-error">###FORM_ERROR###</span>###FORM_ERROR_FIELDS###
<table cellpadding="0" cellspacing="0" border="0">
<form name="formular" method="post" action="###ACTION_URL###">
<tr>
	<td valign="top"><table cellpadding="3" cellspacing="3" border="0">
			<tr>

				<td class="content">###FORM_FIRSTNAME### <span class="content">###FORM_FIRSTNAME_OBLIGATION###</span></td>
				<td><input type="text" name="tx_veguestbook_pi1[firstname]" value="###VALUE_FIRSTNAME###" class="content"></td>
			</tr>
			<tr>
				<td class="content">###FORM_SURNAME### <span class="content">###FORM_SURNAME_OBLIGATION###</span></td>
				<td><input type="text" name="tx_veguestbook_pi1[surname]" value="###VALUE_SURNAME###" class="content"></td>
			</tr>

			<tr>
				<td class="content">###FORM_EMAIL### <span class="content">###FORM_EMAIL_OBLIGATION###</span></td>
				<td><input type="text" name="tx_veguestbook_pi1[email]" value="###VALUE_EMAIL###" class="content"></td>
			</tr>
			<tr>
				<td class="content">###FORM_HOMEPAGE### <span class="content">###FORM_HOMEPAGE_OBLIGATION###</span></td>
				<td><input type="text" name="tx_veguestbook_pi1[homepage]" value="###VALUE_HOMEPAGE###" class="content"></td>

			</tr>
			<tr>
				<td class="content">###FORM_PLACE### <span class="content">###FORM_PLACE_OBLIGATION###</span></td>
				<td><input type="text" name="tx_veguestbook_pi1[place]" value="###VALUE_PLACE###" class="content"></td>
			</tr>
			<tr>
				<td class="content"> </td>
				<td><input type="hidden" name="id" value="###PID###"><input type="hidden" name="tx_veguestbook_pi1[submitted]" value="1"><input type="submit" value="###FORM_SUBMIT###"></td>

			</tr>
		</table>
	</td>
	<td valign="top"><table cellpadding="3" cellspacing="3" border="0">
						<tr>
							<td valign="top" class="content">###FORM_ENTRY### <span class="content">###FORM_ENTRY_OBLIGATION###</span></td>
							<td><textarea name="tx_veguestbook_pi1[entry]" class="content" rows="8" cols="25">###VALUE_ENTRY###</textarea></td>

						</tr>
					</table></td>
</tr>
</form>
</table><br>
<!-- ###TEMPLATE_FORM### end -->

 
</body>
</html>