Zum Inhalt springen

Button wird ohne Text angezeigt

Erstellt am 20. März 2006 · 13 Antworten · letzte Antwort am 13. April 2006

Tags: Frage

cschu ·

hallo

bei all meinen formularen werden die buttons angezeigt, allerdings ohne das der zugehörige text "darauf" angezeigt wird.
also eigentlich nur ein leerer button.
irgendwie kriege ich es nicht hin, den text anzuzeigen.

um hilfe und tipps bin ich sehr froh.
danke, cschu

Sutter ·

Welche Version von Typo3 verwendest du ?
Arbeitest du mit der Extension Mailform oder
mit eingebundenen php Scripten ? Vielleicht
könntest du auch deinen Mailform Code
oder schnell einen Link zur Seite posten damit wir uns das mal schnell ansehen können ?

cschu ·

hallo 😉

ich arbeite mit typo 3.7.1...
hier der von typo3 generierte code des login-teils:

<div class="csc-header csc-header-n2"><h1>Logen Sie sich hier ein, um in die geschützten Bereiche zu gelangen.</h1></div>
		<!--  Header: [end] -->
			<form action="index.php?id=23" name="6dede0e2de177ec67ce7177c55761197" enctype="multipart/form-data" method="post" target="_top" onSubmit="return validateForm('6dede0e2de177ec67ce7177c55761197','user,,pass,','','','')"><input type="hidden" name="logintype" value="login" /><input type="hidden" name="pid" value="24" />
		<!--  Login/Logout form: [begin] -->
			<table border="0" cellspacing="1" cellpadding="1" class="csc-loginform"><tr><td class="csc-form-labelcell"><p class="csc-form-label-req"></p></td><td class="csc-form-fieldcell"><input type="text" name="user" size="20" value="" /></td></tr><tr><td class="csc-form-labelcell"><p class="csc-form-label-req"></p></td><td class="csc-form-fieldcell"><input type="password" name="pass" size="20" value="" /></td></tr><tr><td class="csc-form-labelcell"><p class="csc-form-label"></p></td><td class="csc-form-fieldcell"><input type="submit" name="submit" value="" /></td></tr></table>
		<!--  Login/Logout form: [end] -->
			</form>
	<!--  CONTENT ELEMENT, uid:12/login [end] -->

seltsam finde ich, dass im code selber der button auch schon "leer" ist...
und das, obwohl ich den standard-typ "login" verwende.
ich bin ratlos ;(

liebe grüsse, cschu

cschu ·

hallo 😉

leider besteht mein problem immernoch.
es wäre toll, wenn mir jemand von euch weiterhelfen könnte.
ich habe mittlerweile festgestellt, dass das problem mit meinem template zusammenhänen muss. wende ich ein standardtemplate an, so klappt das darstellen der buttons.
leider habe ich aber keine ahnung, woran das liegen könnte.

der vollständigkeit halber post ich den ganzen code:

zuerst das template:

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/template_1.html

    # Here we define which elements in the HTML that 
    # should be wrapped in subpart-comments:
  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY

    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title

    TD.all = 1
  }

    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/main/
}


# Main TEMPLATE cObject for the BODY

# Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level1-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level1-no"> | </div>
}
  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level2-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level2-no"> | </div>
}
  # Third level menu-object, textual
temp.menu_1.3 = TMENU
temp.menu_1.3 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level3-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level3-no"> | </div>
}
  # Fourth level menu-object, textual
temp.menu_1.4 = TMENU
temp.menu_1.4 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level4-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level4-no"> | </div>
}
 
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY

    # Substitute the ###menu_1### subpart with dynamic menu:
  subparts.menu_1 < temp.menu_1

    # Substitute the ###content### subpart with some example content:
  subparts.content < styles.content.get
}

# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}


# Default PAGE object:
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate
 
# Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level1-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level1-act"> | </div>
}
  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level2-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level2-act"> | </div>
}

  # Third level menu-object, textual
temp.menu_1.3 = TMENU
temp.menu_1.3 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level3-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level3-act"> | </div>
}

  # Fourth level menu-object, textual
temp.menu_1.4 = TMENU
temp.menu_1.4 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level4-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level4-act"> | </div>
}



plugin.tx_newloginbox_pi1._LOCAL_LANG {  

de {

oLabel_header_welcome = 

oLabel_msg_welcome = 

oLabel_header_logout = Sie haben sich abgemeldet

oLabel_msg_logout = 

oLabel_header_error = Anmeldefehler

oLabel_msg_error = Bitte versuchen Sie es erneut

oLabel_header_success = Anmeldung erfolgreich

oLabel_msg_success = Sie sind angemeldet als ###USER###

oLabel_header_status = 

oLabel_msg_status =  

username = Benutzername:

password = Passwort:

login =  Login

logout = Abmelden

send_password = Passwort nochmals senden

your_email = Ihre Email-Adresse:

forgot_password = Passwort vergessen?

}

}

mein css sieht so aus:

/* GENERAL fonts */
P, OL, UL, DIV, H1, H2, H3 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #000000;
	text-decoration: none;
	line-height: 20px;
margin: 0px;
padding: 0px;
}
TD#content {
	padding-left: 15px;
	padding-right: 10px;
	padding-top: 5px;
	vertical-align: top;
	width: 820px;
}
TD#content A {
	color: #486D96;
	text-decoration: none;
}
TD#content A:hover {
	color: #7092B9;
	text-decoration: none;
}
TD#menu_1 {
	vertical-align: top;
	width: 190px;
	background-color: #486D96;
}
TD#menu_1 DIV {
	display: block;
	width: 190px;
	height: 20px;
}
TD#menu_1 DIV A {
	color: #FFFFFF;
	text-decoration: none;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #FFFFFF;
	display: block;
	padding-left: 5px;
}
TD#menu_1 DIV A:hover {
}
TD#menu_1 DIV.menu1-level1-no {
	font-size: 11px;
	line-height: 20px;
}
TD#menu_1 DIV.menu1-level1-act {
}
TD#menu_1 DIV.menu1-level1-act A {
  color:#FFFFFF;
}
TD#menu_1 DIV.menu1-level2-no {
	padding-left:0px;
	background-color: #7092B9;
}
TD#menu_1 DIV.menu1-level2-act {
	padding-left:0px;
	background-color: #7092B9;
	font-weight: bold;
}
TR#menu_2 TD {
  background-color: #333366;
  width: 10%;
  text-align: center;
  padding: 0px 2px 0px 2px;
}
TR#menu_2 TD A {
  color: white;
  font-size: 10px;
  font-family: verdana, arial;
  text-decoration: none;
}
TR#menu_2 TD A:hover {
  text-decoration: underline;
}
TR#menu_2 TD.oddcell {
  background-color: #666699;
}
TR#menu_2 TD.menu2-level1-act {
  background-color: #88292A;
}
TD#menu_1 DIV.menu1-level3-no {
	background-color: #91A8C2;
}
TD#menu_1 DIV.menu1-level3-act {
	padding-left:0px;
	background-color: #7092B9;
	font-weight: bold;
}
TD#menu_1 DIV.menu1-level3-no A:hover {
	background-color: #B3C4D8;
}
TD#menu_1 DIV.menu1-level2-no A:hover {
	background-color: #91A8C2;
}
TD#menu_1 DIV.menu1-level1-no A:hover {
	font-size: 11px;
	line-height: 20px;
	background-color: #7092B9;
}

ausserdem hier noch der code der seite:

<!DOCTYPE html
	PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!-- 
	This website is brought to you by TYPO3 - get.content.right
	TYPO3 is a free open source Content Management Framework created by Kasper Skaarhoj and licensed under GNU/GPL.
	TYPO3 is copyright 1998-2004 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
	Information and contribution at http://www.typo3.com
-->

	<style type="text/css">
		/*<![CDATA[*/
	<!--
	/* default styles for extension "tx_newloginbox_pi3" */
	.tx-newloginbox-pi3-listrow TD { background-color:#eeeeee; padding-left: 3px; padding-right: 3px; }
	.tx-newloginbox-pi3-listrow TR.tx-newloginbox-pi3-listrow-header TD { background-color:#cccccc; }
	.tx-newloginbox-pi3-listrow TR.tx-newloginbox-pi3-listrow-header TD P { font-weight:bold; }
	.tx-newloginbox-pi3-listrow TR.tx-newloginbox-pi3-listrow-odd TD { background-color:#f6f6f6; }
	-->
		/*]]>*/
	</style>

	
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<style type="text/css" id="internalStyle">
		/*<![CDATA[*/
		BODY {
	margin: 0 0 0 0;
	background-color: #FFFFFF;
	background-image: url(fileadmin/template/main/images/bg.gif);
	background-repeat: repeat-y;
}
		/*]]>*/
	</style>
	<link href="fileadmin/template/main/res/stylesheet.css" rel="stylesheet" type="text/css" />

	<title>test: Suche</title>
	<meta name="generator" content="TYPO3 3.7 CMS" />
	<script type="text/javascript">
		/*<![CDATA[*/
	<!--
		browserName = navigator.appName;
		browserVer = parseInt(navigator.appVersion);
		var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
		if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror") {version = "n3";} else {version = "n2";}
			// Blurring links:
		function blurLink(theObject)	{	//
			if (msie4)	{theObject.blur();}
		}
		
	// -->
		/*]]>*/
	</script>
<script type="text/javascript" src="t3lib/jsfunc.validateform.js"></script>

</head>
<body bgcolor="#FFFFFF">

	<table width="965" border="0" cellpadding="0" cellspacing="0">

		<!-- Header image row: -->
	<tr>
		<td height="130" colspan="2" valign="top" bgcolor="#FFFFFF" id="header_1"><!--###header_1### begin --><img src="fileadmin/template/main/images/header.gif" width="965" height="129" alt="" border="0" /><!--###header_1### end --></td>
	</tr>
	<tr>

		<!-- Menu table cell: -->
		<td id="menu_1"><div class="menu1-level1-no"><a href="index.php?id=1" onfocus="blurLink(this);">Startseite</a></div><div class="menu1-level1-no"><a href="index.php?id=50" onfocus="blurLink(this);">Formularpool</a></div><div class="menu1-level1-no"><a href="index.php?id=3" onfocus="blurLink(this);">Ausgabe 01/2006</a></div><div class="menu1-level1-no"><a href="index.php?id=18" onfocus="blurLink(this);">Impressum</a></div><div class="menu1-level1-no"><a href="index.php?id=22" onfocus="blurLink(this);">CUG</a></div><div class="menu1-level1-no"><a href="index.php?id=16" onfocus="blurLink(this);">Suche</a></div><div class="menu1-level1-no"><a href="index.php?id=17" onfocus="blurLink(this);">Newsletter</a></div><div class="menu1-level1-no"><a href="index.php?id=49" onfocus="blurLink(this);">Sitemap</a></div></td>

		<!-- Page Content Area table cell: -->
	  <td id="content">
	<!--  CONTENT ELEMENT, uid:47/search [begin] -->
		<a name="47"></a><form action="index.php?id=16&amp;no_cache=1" name="0e526163dd6653ed9df937fd9679dff6" enctype="multipart/form-data" method="post" target="page" onsubmit="return validateForm('0e526163dd6653ed9df937fd9679dff6','','','','')"><input type="hidden" name="stype" value="L0" /><input type="hidden" name="locationData" value="16:tt_content:47" />
		<!--  Search form inserted: [begin] -->
			<table border="0" cellspacing="1" cellpadding="1" class="csc-searchform"><tr><td class="csc-form-labelcell"><p class="csc-form-label"></p></td><td class="csc-form-fieldcell"><input type="text" name="sword" size="20" value="" /></td></tr><tr><td class="csc-form-labelcell"><p class="csc-form-label"></p></td><td class="csc-form-fieldcell"><select name="scols" size="1"><option value="pages.title-subtitle-keywords-description:tt_content.header"></option><option value="tt_content.header-bodytext-imagecaption"></option></select></td></tr><tr><td class="csc-form-labelcell"><p class="csc-form-label"></p></td><td class="csc-form-fieldcell"><input type="submit" name="submit" value="" /></td></tr></table>
		<!--  Search form inserted: [end] -->
			</form>
	<!--  CONTENT ELEMENT, uid:47/search [end] -->
		</td>
	</tr>
</table>
    <br />
    <br />

</body>
</html>

für tipps und hinweise danke ich euch schon im voraus!
herzliche grüsse, cschu

cschu ·

hallo georg

habe newloginbox bereits in verwendung.
kann ich denn das auch für die suchmaske anwenden?
es ist eben nicht nur ein anmelde-button, der nicht angezeigt wird, sondern z.b. auch auswahllisten.

kann ich die "newsloginbox" auch darauf anwenden?

-> beim normalen Login habe ich das Problem mit newsloginbox lösen können.
Anscheinend liegt aber ein generelles Problem mit dem Anzeigen von Formularinhalten vor.

😉 cschu

just2b ·

nein, newloginbox ist nur für den login.

man sollte natürlich shcon schauen, dass der standardcode richtig funktioniert. Tipp dazu: alles aus constants/setup rausschmeissen was man nicht braucht, css alles weg und schauen ob problem noch existiert.

viel glück!
georg

cschu ·

hallo 😉

habe css gelöscht, alle constants gelöscht, problem existiert aber leider noch immer.

hier nochmals mein setup aus dem template:

### AUTOPARSER ###################################
plugin.tx_automaketemplate_pi1 {
### Read the template file:
content = FILE
content.file = fileadmin/template/main/template_1.html
### Here we define which elements in the HTML that
### should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
TABLE = 0
TR=1
DIV.all=1
}
### Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}



# Main TEMPLATE cObject for the BODY

# Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level1-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level1-no"> | </div>
}
  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level2-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level2-no"> | </div>
}
  # Third level menu-object, textual
temp.menu_1.3 = TMENU
temp.menu_1.3 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level3-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level3-no"> | </div>
}
  # Fourth level menu-object, textual
temp.menu_1.4 = TMENU
temp.menu_1.4 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level4-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level4-no"> | </div>
}
 
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY

    # Substitute the ###menu_1### subpart with dynamic menu:
  subparts.menu_1 < temp.menu_1

    # Substitute the ###content### subpart with some example content:
  subparts.content < styles.content.get
}

# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}


# Default PAGE object:
page = PAGE
page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

der fehler muss wohl im setup liegen, ansonsten würds ja auch mit anderen templates nicht gehen, oder?

liebe grüsse, cschu

just2b ·

Schreib mal sowas ins TS

# Sprach-Einstellung
config.language = de
config.locale_all = de_AT@euro
config.sys_language_uid = 0
config.locale_all = de_DE.ISO8859-1

+ installier mal die Ext ts_language_de + im Ext Manager bei der Ext Try to set as default

cschu ·

alles probiert, leider ohne erfolg ;(...
was könnts denn sonst noch sein?

merci für die prompten antworten bisher 🙂

cschu ·

kann das überhaupt etwas damit zu tun haben, da es ja bei verwendung eines standard-templates funktioniert?

cschu ·

da hast du auch wieder recht 🙂
leider hat auch das deinstallieren der extensions nichts genützt.