[TYPO3-dev] 4.3 PageIncludes

Philipp Gampe phil at philippgampe.info
Fri Oct 30 23:12:37 CET 2009


Am 30.10.2009, 22:55 Uhr, schrieb Sebastian Gebhard  
<sebastian.gebhard at googlemail.com>:
> If a property has content (a file assigned) it is a reference.
> If it has no content, but only subproperties it a reference group.
> The names of the reference groups can be chosen arbitrarily.
> Reference groups can be nested.

this seems too complicated to me :(

I would go for:


page.references {
	styles {
		reset = fileadmin/holds/reset.css
		reset {
			implementation = external
			compression = 1
			priority = 1
			position = top
			
			media = all
		}
		
		base = fileadmin/holds/base.css
		base {
			implementation = external
			compression = 1
			position = top
			
			media = screen
		}
	}
	
	scripts {
		library = fileadmin/holds/library.js
		library {
			implementation = external
			compression = 1
			priority = 1
			position = bottom
		}
		
		base = fileadmin/holds/base.js
		base {
			implementation = external
			compression = 1
			position = bottom
		}
	}
	
	relation {
		fav = fileadmin/icons/favicon.ico
		fav {
			rel = favicon
		}
		
		something = ./index.php?id=5
		something {
			rel = help
			title = Find out how to use this website
		}		
	}	
}


It is always grouped, but you can write
page.references.scripts.foo.compression = 0
anywhere you like in the template like all TS

Best regards
Phil


-- 
Philipp Gampe
http://www.philippgampe.info




More information about the TYPO3-dev mailing list