[TYPO3] Domain Element not working properly

Amir M. amir219 at sbcglobal.net
Tue Aug 1 17:32:03 CEST 2006


> So please tell as much as possible if you have problems.

Sure, here is the typoscript, pagetree, and our RealURL config:

Here is the PAGETREE: 
http://img.photobucket.com/albums/v289/Amirsan/pagetree.jpg

<a href="http://photobucket.com" target="_blank"><img 
src="http://img.photobucket.com/albums/v289/Amirsan/pagetree.jpg" 
border="0" alt="Photobucket - Video and Image Hosting"></a>


Here is the TYPOSCRIPT TEMPLATE which is located in "Index" page (Its 
quite long):

Constants:

content.headerSpace = 0|0
plugin.tt_news.usePagesRelations = 1
plugin.tt_news.showRelatedNewsByCategory = 1
plugin.tt_news.useSubCategories = 1
plugin.tt_news.displaySubCategories = 1
plugin.tt_news.categoryMode = 1

Setup:

plugin.tt_news.useSPidFromCategory = 1

RTE.default.classesImage = img.float-left

plugin.tt_news = USER_INT
# switch to single
plugin.tt_news.code >
plugin.tt_news.code = LIST

config.index_enable = 0

[globalVar = GP:tx_ttnews|tt_news > 0]
plugin.tt_news = USER
plugin.tt_news.code = SINGLE

config.index_enable = 1
[global]




config.simulateStaticDocuments = 0
config.baseURL = http://www.stratcommandcenter.com/redesign4/
config.baseURL = http://civ.stratcommandcenter.com
config.baseURL = http://tw.stratcommandcenter.com

config.tx_realurl_enable = 1

#------------RealURL TTnews Config------------------#
plugin.tt_news {
   dontUseBackPid = 1
   useHRDates = 1
}

config.simulateStaticDocuments = 0
  config.tx_realurl_enable = 1
  # config.absRefPrefix = /

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

page.headerData {
     10 = IMG_RESOURCE
     10 {
         file {
             import = uploads/media/
             import.data = levelmedia:-1, slide
             import.listNum = 0
             width = 900
             height = 99
         }
         stdWrap.required = 1
         stdWrap.wrap (
<style>
     #banner {
         background-image:url(|);
     }
</style>
)
     }
}

lib.stdheader.10.1.fontTag = <h3>|</h3>
lib.tt_content < tt_content

#------------------------------#

# Top Strip Navigation
lib.topnav = HMENU

# First level menu-object, textual
lib.topnav.special = directory
lib.topnav.special.value = 56
lib.topnav.1 = TMENU
lib.topnav.1 {

# Normal state properties
wrap = <UL> | </UL>
NO.allWrap =  <li>  |  </li>
NO.stdWrap.htmlSpecialChars = 1
}

#------------------------------#

# Game Section Navigation
lib.sect_nav = HMENU

# First level menu-object, textual
lib.sect_nav.special = directory
lib.sect_nav.special.value = 81
lib.sect_nav.1 = TMENU
lib.sect_nav.1 {



# Normal state properties
wrap = <UL> | </UL>
NO.allWrap =  <li><h2>  |  </h2></li>
NO.stdWrap.htmlSpecialChars = 1
}


#------------------------------#

# Game Sub-Section Navigation

# Menu 1 cObject
lib.subnav = HMENU
lib.subnav.entryLevel = 1

# First level menu-object, textual
lib.subnav.1 = TMENU
lib.subnav.1 {

# Normal state properties
wrap = <UL> | </UL>
NO.allWrap =  <li>  |  </li>
NO.stdWrap.htmlSpecialChars = 1

# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <li><b> | </b></li>
}

}

//---------------------------- Left Navigation 
--------------------------------------//

# Menu 1 cObject
lib.left_nav = HMENU
lib.left_nav.entryLevel = 1


# First level menu-object, textual
lib.left_nav.1 = TMENU
lib.left_nav.1 {
expAll = 1

NO.doNotLinkIt = 1

# Normal state properties
NO.allWrap = <div class="menu_title"><h3> | </h3></div>


}

# Second level menu-object, textual
lib.left_nav.2 = TMENU
lib.left_nav.2 {

wrap = <UL> | </UL>
NO.allWrap =  <li>  |  </li>
NO.stdWrap.htmlSpecialChars = 1

# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <li><b> | </b></li>

}

//---------------------------- Right Navigation 
--------------------------------------//

lib.right_nav = COA

lib.right_nav {
stdheader.fontTag= <h3> | </h3>

stdWrap.wrap = <div class="rightnav_content">|</div>
     stdWrap.required = 1
     10 < styles.content.get
      10.select.pidInList = 78
      10.select.orderBy = sorting
}


#Footer
lib.footer = RECORDS
lib.footer.source = 101
lib.footer.tables = tt_content
lib.footer.conf.tt_content = TEXT
lib.footer.conf.tt_content.field=bodytext

lib.footer < lib.footer


page.config.doctype = <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
config.htmlTag_setParams =   xmlns="http://www.w3.org/1999/xhtml" 
xml:lang="nl-NL" lang="nl-NL"



# Breadcrumb Navigation
    temp.breadcrumbs = HMENU
    temp.breadcrumbs.special = rootline
    temp.breadcrumbs.excludeUidList = 9
    temp.breadcrumbs.1 = TMENU
    temp.breadcrumbs.1 {
    NO.allWrap = |*| <span class="x">&nbsp;&#187; | </span> |*|
    ACT = 1
    ACT.allWrap = |*| <span class="xx">&nbsp;&#187; | </span> |*|

  }




//---------------------------- tt_news Mumbo Jumbo 
--------------------------------------//

plugin.tt_news.general_stdWrap.parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag 
=

config {
spamProtectEmailAddresses = 2
spamProtectEmailAddresses_atSubst = (at)<span 
style="display:none;">remove-this.</span>
}
plugin.tt_news.templateFile = 
fileadmin/templates/tt_news/tt_news_v2_template2.html
plugin.tt_news.displayList.date_stdWrap.strftime = %D

plugin.tt_news.displaySingle.author_stdWrap.wrap = <p class="none"> | </p>
plugin.tt_news.displaySingle.author_stdWrap.wrap = <div class="none"> | 
</div>
plugin.tt_news.displaySingle.author_stdWrap.wrap = <div class="none"><p 
class="none"> | </p></div>
plugin.tt_news.displaySingle.author_stdWrap.wrap =
plugin.tt_news.displayList.author_stdWrap.wrap.encapsLines.nonWrappedTag =
plugin.tt_news.displayList.author_stdWrap.wrap.encapsLines >
plugin.tt_news.displaySingle.subheader_stdWrap.wrap = <p><b>|</b></p>

# Bullet lists
#
# RTE default
#

tt_content.text.20.parseFunc.tags.typolist.default {
     wrap = <ul> | </ul>
     split.1.wrap = <li> | </li>
}

tt_content.text.20.parseFunc.tags.typolist.1 {
     fontTag = <ul class="layout1"> | </ul>
     split.1.wrap = <li class="layout1"> | </li>
     textStyle >
}

tt_content.text.20.parseFunc.tags.typolist.2 {
     fontTag = <ul class="layout2"> | </ul>
     split.1.wrap = <li class="layout2"> | </li>
     textStyle >
}

tt_content.text.20.parseFunc.tags.typolist.3 {
     fontTag = <ul class="layout3"> | </ul>
     split.1.wrap = <li class="layout3"> | </li>
     textStyle >
}

tt_content.text.20.parseFunc.tags.typolist.4 {
     fontTag = <ul class="layout4"> | </ul>
     split.1.wrap = <li class="layout4"> | </li>
     textStyle >
}

# BULLETS default
#
tt_content.bullets.20.default {
     wrap = <ul> | </ul>
     split.1.wrap = <li> | </li>
}

tt_content.bullets.20.1 {
     fontTag = <ul class="layout1"> | </ul>
     split.1.wrap = <li class="layout1"> | </li>
     split.1.textStyle >
}

tt_content.bullets.20.2 {
     fontTag = <ul class="layout2"> | </ul>
     split.1.wrap = <li class="layout2"> | </li>
     split.1.textStyle >
}

tt_content.bullets.20.3 {
     fontTag = <ul class="layout3"> | </ul>
     split.1.wrap = <li class="layout3"> | </li>
     split.1.textStyle >
}

RTE.default.proc.typolist = 0
lib.tt_content.stdWrap.space = 0|5
lib.tt_content.stdWrap.space = 5|5
tt_content.stdWrap.space = 0|5
tt_content.stdWrap.space = 5|5
lib.tt_content.stdWrap.space = 0|0
tt_content.stdWrap.space = 0|0
tt_content.stdWrap.prefixComment = 0 | CONTENT ELEMENT, 
uid:{field:uid}/{field:CType}
lib.tt_content.header.20.prefixComment = 0 | Subheader:
lib.tt_content.stdWrap.prefixComment = 0 | CONTENT ELEMENT, 
uid:{field:uid}/{field:CType}
lib.stdheader.stdWrap.space = 0|0
lib.tt_content.stdWrap.prefixComment = 1 | CONTENT ELEMENT, 
uid:{field:uid}/{field:CType}
lib.tt_content.header.20.prefixComment = 1 | Subheader:
tt_content.stdWrap.prefixComment = 1 | CONTENT ELEMENT, 
uid:{field:uid}/{field:CType}
lib.tt_content.stdWrap.dataWrap = |
lib.tt_content.stdWrap.dataWrap = <a name="{field:uid}"></a> |
lib.stdheader.stdWrap.prefixComment = 0 | Header:
lib.stdheader.stdWrap.prefixComment = 2 | Header:
lib.stdheader.10.stdWrap.wrap = |
lib.tt_content.stdWrap.space = 1|1
lib.tt_content.stdWrap.space = 0|0
lib.tt_content.image.20.spaceBelowAbove = 0
lib.tt_content.image.20.colSpace = 0
lib.tt_content.image.20.rowSpace = 0
tt_content.image.20.spaceBelowAbove = 0
lib.tt_content.image.20.textMargin = 0
tt_content.image.20.textMargin = 0
tt_content.image.20.rowSpace = 0
tt_content.image.20.colSpace = 0
lib.tt_content.menu.20.1.1.NO.allWrap = <li>|</li>
lib.tt_content.menu.20.1.wrap = <ul>|</ul>
tt_content.menu.20.1.1.NO.allWrap = <li>|</li>
tt_content.menu.20.1.wrap = <ul>|</ul>

lib.stdheader.stdWrap.dataWrap =
lib.tt_content.menu.20.1.1.target = top
lib.tt_content.menu.20.1.1.target = _top
lib.tt_content.menu.20.default.1.target = _top
lib.tt_content.menu.20.4.1.target = _top
lib.tt_content.menu.20.2.4.target = _top
lib.tt_content.menu.20.2.1.target = _top
lib.tt_content.menu.20.2.2.target = _top
lib.tt_content.menu.20.2.3.target = _top
lib.tt_content.menu.20.5.1.target = _top



Finally here is the REALURL CONFIGURATION in LocalConf:
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
	'_DEFAULT' => array(
		'init' => array(
			'enableCHashCache' => 1,
			'appendMissingSlash' => 'ifNotFile',
			'enableUrlDecodeCache' => 1,
			'enableUrlEncodeCache' => 1,
		),
		'redirects' => array(),
		'preVars' => array(
			array(
				'GETvar' => 'no_cache',
				'valueMap' => array(
					'nc' => 1,
				),
				'noMatch' => 'bypass',
			),
			array(
				'GETvar' => 'L',
				'valueMap' => array(
					'dk' => '2',
					'de' => '1',
				),
				'noMatch' => 'bypass',
			),
		),
		'pagePath' => array(
			'type' => 'user',
			'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
			'spaceCharacter' => '-',
			'languageGetVar' => 'L',
			'expireDays' => 7,
###### include your rootpage id here
			'rootpage_id' => 81,
		),
		'fixedPostVars' => array(),
		'postVarSets' => array(
			'_DEFAULT' => array(
				// news archive parameters
				'archive' => array(
					array(
						'GETvar' => 'tx_ttnews[year]' ,
						),
					array(
						'GETvar' => 'tx_ttnews[month]' ,
						'valueMap' => array(
							'january' => '01',
							'february' => '02',
							'march' => '03',
							'april' => '04',
							'may' => '05',
							'june' => '06',
							'july' => '07',
							'august' => '08',
							'september' => '09',
							'october' => '10',
							'november' => '11',
							'december' => '12',
							)
						),
					),
				// news pagebrowser
				'browse' => array(
					array(
						'GETvar' => 'tx_ttnews[pointer]',
						),
					),
				// news categories
				'select_category' => array (
					array(
						'GETvar' => 'tx_ttnews[cat]',
						),
					),
				// news articles and searchwords
				'article' => array(
					array(
						'GETvar' => 'tx_ttnews[tt_news]',
						'lookUpTable' => array(
							'table' => 'tt_news',
							'id_field' => 'uid',
							'alias_field' => 'title',
							'addWhereClause' => ' AND NOT deleted',
							'useUniqueCache' => 1,
							'useUniqueCache_conf' => array(
								'strtolower' => 1,
								'spaceCharacter' => '-',
								),
							),
						),
					array(
						'GETvar' => 'tx_ttnews[swords]',
						),
					),
				),
			),
		// configure filenames for different pagetypes
		'fileName' => array(
			'index' => array(
				'rss.xml' => array(
					'keyValues' => array(
						'type' => 100,
					),
				),
				'rss091.xml' => array(
					'keyValues' => array(
						'type' => 101,
					),
				),
				'rdf.xml' => array(
					'keyValues' => array(
						'type' => 102,
					),
				),
				'atom.xml' => array(
					'keyValues' => array(
						'type' => 103,
					),
				),
			),
		),
	),
);




Please let me know if I should add any more necessary information.  :)



More information about the TYPO3-english mailing list