Zum Inhalt springen

sitemap mit title, subtitle und description

Erstellt am 27. Februar 2007 · 25 Antworten · letzte Antwort am 12. März 2007 · Seite 2 von 2

Tags: SEO, Frage

just2b ·

Hallo,

ja, der 1. Schnippsel ist kein vollständiges Menü!
Das ginge zB so:

temp.sitemap = HMENU
temp.sitemap {
1 = TMENU
1 {
wrap = <ul>|</ul>
NO.wrapItemAndSub = <li>|</li>
}
}

georg

fly4l ·

hm, ich danke dir!! aber jetzt hab ich das so eingegeben und es kommt trotzdem nicht.. o.O

cordman ·
tmp.sitemap = HMENU
tmp.sitemap < tt_content.menu.20.2

...

page = PAGE
page.config < config
page {
	10 = TEMPLATE
	10 {
		template = FILE
		template.file = fileadmin/template/homepage.tmpl.html
		workOnSubpart = DOC
		marks {
			RANDOMPICS < tmp.randomPics
			START_NEWS < tmp.sitemap
		}
	}
}

Listenformatierung ändern:

tt_content.menu.20 {
	# "Sitemap - liststyle"
	2 >
	2 = HMENU
	2 {
		wrap = <div class="sitemap">|</div>
		1 = TMENU
		1 {
			noBlur=1
			expAll=1
			wrap = <ul>|</ul>
			NO {
				stdWrap.htmlSpecialChars = 1
				wrapItemAndSub = <li>|</li>
				ATagTitle.field = description // title
			}
		}
		2<.1
		3<.1
		4<.1
		5<.1
		6<.1
		7<.1
}

Eigentlich sollte das mit den ausführlichen Tips von Georg und ein wenig TSREF lesen aber auch klappen 🙂

fly4l ·

hm, also ich guck ja auch in die TSRef und jetzt habe ich das so eingefügt, dann gibt Typo mir aber einen Error im FE aus: The page is not configured! [type= 0][]

Ohne den letzten Teil erscheint zumindest schonn mal ein <div class="csc-sitemap"...

fly4l ·

Okay, ist aber viel: Es geht um die Seite [treelevel=0]...

includeLibs.helper = fileadmin/template/user_helper.php

plugin.tx_spmpicturegalery_pi1 {
	viewPage = 65
}

plugin.tx_spmtrainingcatalog_pi1.detailspage = 85

tt_content.menu.20.2.entryLevel = 1
tt_content.menu.20.2.includeNotInMenu = 1
tt_content.menu.20.2.excludeUidList = 65,66
tt_content.menu.20.2.3 >
tt_content.menu.20.2.4 >

tt_content.html.prefixComment >

tt_content.stdWrap.dataWrap >
tt_content.stdWrap.prefixComment >

config {
	language = de
	linkVars = L
	locale_all = de_DE
	sys_language_uid = 0
}

[globalVar = GP:L = 0]
config {
	language = de
	linkVars = L
	locale_all = de_DE
	sys_language_uid = 0
}
[end]

[globalVar = GP:L = 2]
config {
	language = en
	linkVars = L
	locale_all = en_EN
	sys_language_uid = 2
}
[end]

[globalVar = GP:L = 4]
config {
	language = es
	linkVars = L
	locale_all = es_ES
	sys_language_uid = 4
}
[end]

[globalVar = GP:L = 5]
config {
	language = pl
	linkVars = L
	locale_all = pl_PL
	sys_language_uid = 5
}
[end]

[globalVar = GP:L = 6]
config {
	language = ru
	linkVars = L
	locale_all = ru_RU
	sys_language_uid = 6
}
[end]

[globalVar = GP:L = 7]
config {
	language = fr
	linkVars = L
	locale_all = fr_FR
	sys_language_uid = 7
}
[end]


tt_content.div.value = <div class="spacer_dotted"></div>

plugin.tt_news {
	sys_language_mode = strict
	displayLatest {
		date_stdWrap.strftime= %d.%m.%Y
		subheader_stdWrap.crop = 400 | ... | 1
	}
	
	displayList {
		date_stdWrap.strftime= %d.%m.%Y
		subheader_stdWrap >
		subheader_stdWrap.field = bodytext
	}
}

tmp.randomPics = USER_INT
tmp.randomPics {
	userFunc = user_helper->user_getHomepageRandomPics
	picDir = fileadmin/img/homepage/randompics/
	tmpl = <li><a href="http://www.spm-2000.de/home0.0.html"><img src="###RANDOMPIC1###" alt="coaching" width="185" height="91" border="0"></a></li><li><a href="http://www.spm-2000.de/home0.0.html"><img src="###RANDOMPIC2###" alt="consulting" width="185" height="91" border="0"></a></li><li><a href="http://www.spm-2000.de/consulting/index.php?page=1&lang=deu"><img src="###RANDOMPIC3###" alt="call center" width="185" height="91" border="0"></a></li><li><a href="http://www.spm-2000.de/consulting/index.php?page=1&lang=deu"><img src="###RANDOMPIC4###" alt="verkauf schulung" width="185" height="91" border="0"></a></li>
	}

tmp.langSwitchLink {
	de = USER_INT
	de {
		userFunc = user_helper->user_getLangSwitchLink
		langID = 0
	}
	en = USER_INT
	en {
		userFunc = user_helper->user_getLangSwitchLink
		langID = 2
	}
	fr = USER_INT
	fr {
		userFunc = user_helper->user_getLangSwitchLink
		langID = 0
		pid = 48
	}
	sp = USER_INT
	sp {
		userFunc = user_helper->user_getLangSwitchLink
		langID = 4
		pid = 48
	}
	pl = USER_INT
	pl {
		userFunc = user_helper->user_getLangSwitchLink
		langID = 5
		pid = 48
	}
	ru = USER_INT
	ru {
		userFunc = user_helper->user_getLangSwitchLink
		langID = 6
		pid = 48
	}
}

lib.langnavi = TEMPLATE
lib.langnavi{
	template = FILE
	template.file = fileadmin/template/langnavi.tmp.html
	workOnSubpart = DOC
		
	marks {
		LANGDE < tmp.langSwitchLink.de
		LANGEN < tmp.langSwitchLink.en
		LANGFRA < tmp.langSwitchLink.fr
		LANGESP < tmp.langSwitchLink.sp
		LANGPOL < tmp.langSwitchLink.pl
		LANGRUS < tmp.langSwitchLink.ru
	}
}


lib.keyvisual = TEXT
lib.keyvisual.override {
	required = 1
	data = levelmedia:2
	wrap = uploads/media/|
	listNum = 0
}

lib.date = TEXT
lib.date.data = date:U
lib.date.strftime = %d. %B %Y

lib.mainmenu = HMENU
lib.mainmenu {
	entryLevel = 1

	1 = TMENU
	1 {
		NO {
			allWrap = <li>|</li>
			beforeImg = uploads/media/deu_about_off.gif
			beforeImg.import = uploads/media/
			beforeImg.import.field = media
			beforeImg.import.listNum = 1
			beforeImgLink = 1
			beforeROImg = uploads/media/deu_about_on.gif
			beforeROImg.import = uploads/media/
			beforeROImg.import.field = media
			beforeROImg.import.listNum = 2
			doNotShowLink = 1
			RO = 1
		}
		
		ACT < lib.mainmenu.1.NO
		ACT = 1
		ACT.beforeImg.import.listNum = 2
		ACT.RO = 0
		
		CUR < lib.mainmenu.1.ACT
		CUR = 1
	}
	
	2 = TMENU
	2 {
		NO {
			allWrap = <li>|</li>
			beforeImg = uploads/media/deu_about_off.gif
			beforeImg.import = uploads/media/
			beforeImg.import.field = media
			beforeImg.import.listNum = 0
			beforeImgLink = 1
			beforeROImg = uploads/media/deu_about_on.gif
			beforeROImg.import = uploads/media/
			beforeROImg.import.field = media
			beforeROImg.import.listNum = 1
			doNotShowLink = 1
			RO = 1
		}
		
		ACT < lib.mainmenu.2.NO
		ACT = 1
		ACT.beforeImg.import.listNum = 1
		ACT.RO = 0
		
		CUR < lib.mainmenu.2.ACT
		CUR = 1

	}
}

lib.extranavi = HMENU
lib.extranavi {
	special = directory
	special.value = 31
	
	1 = TMENU
	1 {
		NO {
			allStdWrap.case = upper
			linkWrap = |&#124;|*| |&#124;|*| |
		}
	}	
}

lib.atoznavi = HTML
lib.atoznavi.value = <td colspan="2" height="26" align="left" valign="middle"><table border="0" height="26" cellpadding="0" cellspacing="0"><form action="151.0.html?&amp;no_cache=1"         id="a00f8302c539b8fb9bfbe53f2ad39eaad" name="a00f8302c539b8fb9bfbe53f2ad39eaad" enctype="multipart/form-data" method="post" target="_self" onsubmit="return validateForm('a00f8302c539b8fb9bfbe53f2ad39eaad','','','','')"><input type="hidden" name="stype" value="L0" /><input type="hidden" name="locationData" value="151:tt_content:2616" /><input type="hidden" name="scols" value="tt_content.header-bodytext-imagecaption" /><tr><td width="11px"></td><td align="left" valign="middle"><input type="text" id="suchfeld" name="sword" size="20" value="Suchbegriff" class="search_sword" onFocus="if(this.value=='Suchbegriff')this.value='';" /></td><td align="left" valign="middle"><input type="image" src="/fileadmin/img/buttons/lupe.gif" alt="Go"></td></tr></form></table></td>
[globalVar = GP:L = 2]
lib.atoznavi = HTML
lib.atoznavi.value = <td colspan="2" height="26" align="left" valign="middle"><table border="0" height="26" cellpadding="0" cellspacing="0"><form action="151.0.html?&amp;no_cache=1&amp;L=2" id="a00f8302c539b8fb9bfbe53f2ad39eaad" name="a00f8302c539b8fb9bfbe53f2ad39eaad" enctype="multipart/form-data" method="post" target="_self" onsubmit="return validateForm('a00f8302c539b8fb9bfbe53f2ad39eaad','','','','')"><input type="hidden" name="stype" value="L2" /><input type="hidden" name="locationData" value="151:tt_content:2618" /><input type="hidden" name="scols" value="tt_content.header-bodytext-imagecaption" /><tr><td width="11px"></td><td align="left" valign="middle"><input type="text" id="suchfeld" name="sword" size="20" value="Search" class="search_sword" onFocus="if(this.value=='Search')this.value='';" /></td><td align="left" valign="middle"><input type="image" src="/fileadmin/img/buttons/lupe.gif" alt="Go"></td></tr></form></table></td>
[end]


lib.picbox < styles.content.getLeft 
lib.picbox {
	select {
	  	pidInList = 1
	  	begin = 0
	  	max = 1
	  	languageField = 0
	}
}

lib.minicart < styles.content.getLeft 
lib.minicart {
	select {
	  	pidInList = 1
	  	begin = 1
	  	max = 1	  	
	  	languageField = 0
	}
}

lib.qaobanner < styles.content.getLeft 
lib.qaobanner {
	select {
	  	pidInList = 1
	  	begin = 2
	  	max = 1	  	
	  	languageField = 0
	}
}

tmp.startnews = CONTENT
tmp.startnews {
	table = tt_content
	select {
		orderBy = sorting
		here = colPos=1
	  	pidInList = 1
	  	begin = 0
	  	max = 1	  	
	  	languageField = sys_language_uid
	}
	rerenderObj = HTML
	rerenderObj.value.field = bodytext
}

lib.footer_txt = TEXT
lib.footer_txt.value = SPM-2000 ist zugelassener Bildungsträger gemäß AZWV und hat ein zertifiziertes Qualitätsmanagement nach DIN EN ISO 9001:2000

[globalVar = GP:L = 2]

lib.footer_txt = TEXT
lib.footer_txt.value = SPM-2000® is an accredited education institute according to AZWV with a certified DIN EN ISO 9001:2000 quality management.

[end]

lib.siegel = HTML
lib.siegel.value = <a href="/fileadmin/img/zertifikate/Zertifikate_HZA_SPM-2000_GbR.gif" rel="lightbox" title="Zertifikat DIN EN ISO 9001:2000"><img src="/fileadmin/img/label/siegel.gif" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

lib.homelink = HTML
lib.homelink.value = http://www.spm-2000.de/


tmp.sitemap = HMENU
tmp.sitemap < tt_content.menu.20.2

tt_content.menu.20 {
        # "Sitemap - liststyle"
        2 >
        2 = HMENU
        2 {
                wrap = <div class="sitemap">|</div>
                1 = TMENU
                1 {
                        noBlur=1
                        expAll=1
                        wrap = <ul>|</ul>
                        NO {
                                stdWrap.htmlSpecialChars = 1
                                wrapItemAndSub = <li>|</li>
                                ATagTitle.field = description // title
                        }
                }
                2<.1
                3<.1
                4<.1
                5<.1
                6<.1
                7<.1
}

[treeLevel = 0]

page = PAGE
page.config < config
page {


	config {
		doctype = xhtml_trans
		xhtml_cleaning = all
		xmlprologue = none
#		locale_all = de_DE
#		language = de
		metaCharset = UTF-8
		renderCharset = UTF-8
		baseURL = http://www.spm-2000.de/
	}
	meta {
		DESCRIPTION = TEXT
		DESCRIPTION.field = abstract

		KEYWORDS = TEXT
		KEYWORDS.field = keywords

		AUTHOR = TEXT
		AUTHOR.field = author
	}
	includeJS {
		file1 = fileadmin/js/spm.js
		file1.type = text/javascript
		file2 = fileadmin/sound/mp3player/ufo.js
		file2.type = text/javascript
	}

	stylesheet = fileadmin/css/spm_neu.css
	shortcutIcon = fileadmin/img/homepage/favicon.ico

	typeNum = 0
        
	bodyTag = <body leftmargin="0" topmargin="0" rightmargin="0" class="bodystart">
	10 = TEMPLATE
	10 {
		template = FILE
		template.file = fileadmin/template/homepage.tmpl.html
		workOnSubpart = DOC
		marks {
			RANDOMPICS < tmp.randomPics
			START_NEWS < tmp.sitemap
		}
	}
	
	headerData {
          1 = HTML
          1.value = <bgSound src="fileadmin/sound/SoundLogo_SPM-2000.mp3" loop="1" />
        }
}

[else]

page = PAGE
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

[end]
just2b ·

Hallo,

ok das ist mal einfach blödsinn:

tmp.sitemap = HMENU
tmp.sitemap < tt_content.menu.20.2
tt_content.menu.20 {

Du willst ja ein ganz normales Menü an einem Marker ausgeben lassen, deswegen reicht das

temp.sitemap =  HMENU
temp.sitemap {
... code siehe vorher von mir
}

und dann
eben

START_NEWS < temp.sitemap

georg

fly4l ·

Hi,

genau das hatte ich ja auch vorhin schon versucht, aber auch jetzt bleibts leider immer noch leer!
hab jetzt die unbenötigten zeile an dieser stelle rausgeschmissen:

includeLibs.helper = fileadmin/template/user_helper.php

config {
	language = de
	linkVars = L
	locale_all = de_DE
	sys_language_uid = 0
}

[globalVar = GP:L = 0]
config {
	language = de
	linkVars = L
	locale_all = de_DE
	sys_language_uid = 0
}
[end]

[globalVar = GP:L = 2]
config {
	language = en
	linkVars = L
	locale_all = en_EN
	sys_language_uid = 2
}
[end]

[globalVar = GP:L = 4]
config {
	language = es
	linkVars = L
	locale_all = es_ES
	sys_language_uid = 4
}
[end]

[globalVar = GP:L = 5]
config {
	language = pl
	linkVars = L
	locale_all = pl_PL
	sys_language_uid = 5
}
[end]

[globalVar = GP:L = 6]
config {
	language = ru
	linkVars = L
	locale_all = ru_RU
	sys_language_uid = 6
}
[end]

[globalVar = GP:L = 7]
config {
	language = fr
	linkVars = L
	locale_all = fr_FR
	sys_language_uid = 7
}
[end]


tt_content.div.value = <div class="spacer_dotted"></div>


tmp.randomPics = USER_INT
tmp.randomPics {
	userFunc = user_helper->user_getHomepageRandomPics
	picDir = fileadmin/img/homepage/randompics/
	tmpl = <li><a href="http://www.spm-2000.de/home0.0.html"><img src="###RANDOMPIC1###" alt="coaching" width="185" height="91" border="0"></a></li><li><a href="http://www.spm-2000.de/home0.0.html"><img src="###RANDOMPIC2###" alt="consulting" width="185" height="91" border="0"></a></li><li><a href="http://www.spm-2000.de/consulting/index.php?page=1&lang=deu"><img src="###RANDOMPIC3###" alt="call center" width="185" height="91" border="0"></a></li><li><a href="http://www.spm-2000.de/consulting/index.php?page=1&lang=deu"><img src="###RANDOMPIC4###" alt="verkauf schulung" width="185" height="91" border="0"></a></li>
	}

tmp.startnews = CONTENT
tmp.startnews {
	table = tt_content
	select {
		orderBy = sorting
		here = colPos=1
	  	pidInList = 1
	  	begin = 0
	  	max = 1	  	
	  	languageField = sys_language_uid
	}
	rerenderObj = HTML
	rerenderObj.value.field = bodytext
}

lib.footer_txt = TEXT
lib.footer_txt.value = SPM-2000 ist zugelassener Bildungsträger gemäß AZWV und hat ein zertifiziertes Qualitätsmanagement nach DIN EN ISO 9001:2000

[globalVar = GP:L = 2]

lib.footer_txt = TEXT
lib.footer_txt.value = SPM-2000® is an accredited education institute according to AZWV with a certified DIN EN ISO 9001:2000 quality management.

[end]

lib.homelink = HTML
lib.homelink.value = http://www.spm-2000.de/

temp.sitemap =  HMENU
temp.sitemap {
	1 = TMENU
	1 {
		wrap = <ul>|</ul>
		NO.wrapItemAndSub = <li>|</li>
	}
}


page = PAGE
page.config < config
page {


	config {
		doctype = xhtml_trans
		xhtml_cleaning = all
		xmlprologue = none
#		locale_all = de_DE
#		language = de
		metaCharset = UTF-8
		renderCharset = UTF-8
		baseURL = http://www.spm-2000.de/
	}
	meta {
		DESCRIPTION = TEXT
		DESCRIPTION.field = abstract

		KEYWORDS = TEXT
		KEYWORDS.field = keywords

		AUTHOR = TEXT
		AUTHOR.field = author
	}
	includeJS {
		file1 = fileadmin/js/spm.js
		file1.type = text/javascript
		file2 = fileadmin/sound/mp3player/ufo.js
		file2.type = text/javascript
	}

	stylesheet = fileadmin/css/spm_neu.css
	shortcutIcon = fileadmin/img/homepage/favicon.ico

	typeNum = 0
        
	bodyTag = <body leftmargin="0" topmargin="0" rightmargin="0" class="bodystart">
	10 = TEMPLATE
	10 {
		template = FILE
		template.file = fileadmin/template/homepage.tmpl.html
		workOnSubpart = DOC
		marks {
			RANDOMPICS < tmp.randomPics
			START_NEWS < temp.sitemap
		}
	}
	
	headerData {
          1 = HTML
          1.value = <bgSound src="fileadmin/sound/SoundLogo_SPM-2000.mp3" loop="1" />
        }
}
cordman ·

Mal so nebenbei:
In dem Thread geht's um ne Sitemap und wir sind jetzt nach 15 Beiträgen und ner Menge hin und her dabei, dass sich die Diskussion eigentlich um ein Menü dreht. (=

Jetzt wieder zum Thema: Wird der Marker denn in der Ausgabe ersetzt?

cordman ·

Strange. Und wenn du das Menu direkt auf den Marker legst?

START_NEWS = HMENU
START_NEWS {
	1 = TMENU {
		...
	}
}