[TYPO3-commerce] HOWTO create a 'read more' link at the end of the teaser text

Michiel Roos michiel at netcreators.com
Thu Oct 25 13:05:01 CEST 2007


And also,

I have tried to abuse the relatedpage marker to creat a 'read more' 
link. This works nicely but you no longer have the ability to link to a 
related page then . . . I used the exact same TS to as used for the 
relatedpage for a part in the teaser, this does not seem to work:

plugin.tx_commerce_pi1 {
	listView.products.fields {
		relatedpage = stdWrap
		relatedpage {
			cObject = TEXT
			cObject {
				value = lees meer >>
			}
			typolink.setCommerceValues = 1
			typolink.useCacheHash = 1
			typolink.if.isTrue.current = 1
		}


		teaser.postCObject = COA
		teaser.postCObject.10 = TEXT
		teaser.postCObject.10 {
			value = [
		}


		# Same structure as for relatedpage:

		teaser.postCObject.26  = stdWrap
		teaser.postCObject.26 {
			cObject = TEXT
			cObject {
				value = lees meer >>
			}
			typolink.setCommerceValues = 1
			typolink.useCacheHash = 1
			typolink.if.isTrue.current = 1
		}
		teaser.postCObject.30 = TEXT
		teaser.postCObject.30 {
			value = ]
		}	
	}
}

Kind regards,


Michiel Roos
-- 
Netcreators BV :: creation and innovation
www.netcreators.com

Interesse in werken bij Netcreators?
http://www.netcreators.com/bedrijf/vacatures/


More information about the TYPO3-project-commerce mailing list