[TYPO3] possible to create page with dummy content at default

tapio tapio.markula at dnainternet.net
Wed Mar 8 15:41:41 CET 2006


Chris Kievid wrote:
> tapio wrote:
> 
>> Chris Kievid wrote:
>>
>>> Would it be possible to create a new page (via create new record) 
>>> within a certain section of my treeroot, that on creation has already 
>>> a default set of 3 CE's (like image / text / plugin).
>>
>>
>>
>> I just want to ask, why?
>>
> 
> 2 years ago I made a layout concept for my client for his "projects" 
> page. The idea was to have a division of content. SO the first CE would 
> include images, a second with text, a third could be imagegallery or 
> download link, and a fourth would contain the credits.

> The thing is that the editors had/have a habit of putting as much info 
> (i.e. text with images)into a single CE. This is kinda frustrating when 
> designing new layout concepts.

> Hence my question if it would be possible to allready have somesort of 
> 'page template structure' with the always needed CE's there.

you can put shared content to the page - this has several ways

1) just TS fetching certain contens - content is then an object, which 
after/before the other content in the page

temp.getRight1 = CONTENT
temp.getRight1 < styles.content.getRight

temp.getRight2 = CONTENT
temp.getRight2 {
	stdWrap.cObject = CONTENT
	stdWrap.cObject {
	table = tt_content
	select {
		pidInList = 690
		orderBy = sorting
		where = colPos = 2
		languageField = sys_language_uid
		}
	}
}


2) define a page for that and this kind of TS


###########################################################
# Initialise the Shared Content - start
###########################################################

styles.content.getShared < styles.content.get
styles.content.getShared.select {
    pidInList = {$pidSharedContent}
}

styles.content.getLeftShared < styles.content.getLeft
styles.content.getLeftShared.select {
     pidInList = {$pidSharedContent}
}




3) content slide (B. Kraft) - I didn't that newer to work



More information about the TYPO3-english mailing list