[TYPO3-english] Adding new content-column
Kenneth Larsen
kennethbolarsen at gmail.com
Mon Dec 13 16:58:18 CET 2010
Hi,
Im working on a HTML-template, and i would very much like to add a new
content-column.
So far, I have made another column (4) in the backend, by editing the file
"extTables.php" ...so now i looks like this:
$TCA["tt_content"]["columns"]["colPos"]["config"]["items"] = array (
"3" => array ("CONTENT BOTTOM||||||||||","3"), // rename BORDER to
NEWS
"2" => array ("CONTENT RIGHT||||||||||","2"),
"1" => array ("CONTENT LEFT||||||||||","1"),
"0" => array ("MAIN CONTENT 1||||||||||","0"),
"4" => array ("MAIN CONTENT 2||||||||||","4") // add extra column
);
In my "page-properties" i have the this TSconfig to show all columns:
mod.SHARED.colPos_list=1,0,4,2,3
So now all columns are shown in the backend..but the problem
is....whatever I put in this "new" column..there are no outpt in the
frontend !
Im thinking that I need a "MARKER" in my HTML-template for this new column,
as well as I have markers for all the other content-columns:
Existing content marker example: <!-- ###CONTENT_LEFT### START--> <!--
###CONTENT_LEFT### END-->
So I made this new "MARKER" in my template: <!-- ###CONTENT_MAIN2###
START--> <!-- ###CONTENT_MAIN2### END-->
And in my T3 template-setup I have this:
lib.stdheader.10.stdWrap.wrap =
tt_content.stdWrap.dataWrap = <A name="{field:uid}"></a>
page = PAGE
page.typeNum = 0
config.pageTitleFirst = 1
page.stylesheet = fileadmin/templates/wfu/style.css
page.1 = TEMPLATE
page.1.marks.PAGE_UID = TEXT
page.1.marks.PAGE_UID.field = uid
page.1 {
template = FILE
template.file = fileadmin/templates/wfu/wfu_template07_2010_start.html
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT_LEFT < styles.content.getLeft
subparts.CONTENT_RIGHT < styles.content.getRight
subparts.CONTENT_BORDER < styles.content.getBorder
subparts.CONTENT < styles.content.get
So I was hoping that by adding this line: subparts.CONTENT_BOTTOM <
styles.content.getMain2 I would be able to output content from my new
column,..but no luck !
I really hope that this ( rather long ) description makes sense, and that
someone can help me with this :-)
--
Regards
Kenneth Bo Larsen
More information about the TYPO3-english
mailing list