Re: [TYPO3-english] howto enable tt_content subheader in actual TYPO3 version 4.5

2011-09-12 Thread Josef Florian Glatz

Am 06.09.2011 18:35, schrieb Peter Klein:

http://lists.typo3.org/pipermail/typo3-dev/2011-August/044109.html

--
Peter Klein

On Tue, 06 Sep 2011 14:15:31 +0200, Josef Florian Glatz
ty...@josdesign.at  wrote:


Hello list,


I've found a snippet howto re-enable the subheader for tt_content table
in be.

t3lib_extMgm::addToAllTCAtypes(tt_content, 'subheader;;8', '',
'after:header');

After this, my subheader is positioned at the Extended Tab. Can I
position this new field after the header? The syntax my snippet seems
to be outdated.

thx in advance!


Thx for your support!

I've re-enabled subheader in TYPO3 4-5 with the following snippets. Is 
there an easier way to enable? Or maybe a possiblity to make it 
compatible with future TYPO3 releases without checking if csc has 
changed after a release-upgrade?


extTables.php:
---
# re-enabling Subheaders tt_content
t3lib_div::loadTCA('tt_content');
t3lib_extMgm::addFieldsToPalette(tt_content,'header','subheader;;8','after:header');



TypoScript:
--

//-
// subheader für alle bekannten tt_content elemente re-enablen
lib.subheader = TEXT
lib.subheader {
  field = subheader
  required = 1

  dataWrap = h5 class=subheader subheaderlayout-{field:layout}|/h5
  htmlSpecialChars = 1

  editIcons = tt_content:subheader,layout
  editIcons.beforeLastTag = 1
  editIcons.iconTitle.data = 
LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.subheader


  prefixComment = 2 | Subheader:
}


//-
// lib.subheader mit jeden type mergen
tt_content.header {
  // Typ .header beinhaltet in .20 eine Subheaderkonfiguration)
  20 
  // füllen mit Konfiguration für aktuelles Projekt
  20  lib.subheader
}

tt_content.text {
 15 = TEXT
 15  lib.subheader
}

tt_content.image {
 15 = TEXT
 15  lib.subheader
}

tt_content.textpic {
 10.15 = TEXT
 10.15  lib.subheader
}

tt_content.bullets {
 15 = TEXT
 15  lib.subheader
}

tt_content.table {
 15 = TEXT
 15  lib.subheader
}

tt_content.uploads {
 15 = TEXT
 15  lib.subheader
}

tt_content.table {
 15 = TEXT
 15  lib.subheader
}

tt_content.multimedia {
 15 = TEXT
 15  lib.subheader
}

tt_content.swfobject {
 15 = TEXT
 15  lib.subheader
}

tt_content.qtobject {
 15 = TEXT
 15  lib.subheader
}

tt_content.media {
 15 = TEXT
 15  lib.subheader
}

tt_content.search {
 15 = TEXT
 15  lib.subheader
}

tt_content.login {
 15 = TEXT
 15  lib.subheader
}

tt_content.splash {
 15 = TEXT
 15  lib.subheader
}

tt_content.menu {
 15 = TEXT
 15  lib.subheader
}

tt_content.shortcut {
 15 = TEXT
 15  lib.subheader
}

tt_content.list {
 15 = TEXT
 15  lib.subheader
}


--
Regards,
Josef Florian Glatz
http://typo3blog.at
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] howto enable tt_content subheader in actual TYPO3 version 4.5

2011-09-06 Thread Josef Florian Glatz

Hello list,


I've found a snippet howto re-enable the subheader for tt_content table 
in be.


t3lib_extMgm::addToAllTCAtypes(tt_content, 'subheader;;8', '', 
'after:header');


After this, my subheader is positioned at the Extended Tab. Can I 
position this new field after the header? The syntax my snippet seems 
to be outdated.


thx in advance!

--
Regards,
Josef Florian Glatz
http://typo3blog.at
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] howto enable tt_content subheader in actual TYPO3 version 4.5

2011-09-06 Thread Björn Pedersen
Am 06.09.2011 14:15, schrieb Josef Florian Glatz:
 Hello list,
 
 
 I've found a snippet howto re-enable the subheader for tt_content table
 in be.
 
 t3lib_extMgm::addToAllTCAtypes(tt_content, 'subheader;;8', '',
 'after:header');
 
 After this, my subheader is positioned at the Extended Tab. Can I
 position this new field after the header? The syntax my snippet seems
 to be outdated.
 
 thx in advance!
 
There has been an extensive thread in typo3.german about this:
news://lists.typo3.org:119/mailman.1.1314602427.12960.typo3-ger...@lists.typo3.org

And the forge bugtracker also contains entries for this.

Björn

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] howto enable tt_content subheader in actual TYPO3 version 4.5

2011-09-06 Thread Björn Pedersen
Am 06.09.2011 14:23, schrieb Björn Pedersen:
 Am 06.09.2011 14:15, schrieb Josef Florian Glatz:
 Hello list,


 I've found a snippet howto re-enable the subheader for tt_content table
 in be.

 t3lib_extMgm::addToAllTCAtypes(tt_content, 'subheader;;8', '',
 'after:header');

 After this, my subheader is positioned at the Extended Tab. Can I
 position this new field after the header? The syntax my snippet seems
 to be outdated.

 thx in advance!

 There has been an extensive thread in typo3.german about this:
 news://lists.typo3.org:119/mailman.1.1314602427.12960.typo3-ger...@lists.typo3.org
 
 And the forge bugtracker also contains entries for this.
 
 Björn
 

See also: http://forge.typo3.org/issues/29352

The wildcard (=empty) third argument currently behaves differently.

Björn


___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] howto enable tt_content subheader in actual TYPO3 version 4.5

2011-09-06 Thread Peter Klein
http://lists.typo3.org/pipermail/typo3-dev/2011-August/044109.html

--
Peter Klein

On Tue, 06 Sep 2011 14:15:31 +0200, Josef Florian Glatz
ty...@josdesign.at wrote:

Hello list,


I've found a snippet howto re-enable the subheader for tt_content table 
in be.

t3lib_extMgm::addToAllTCAtypes(tt_content, 'subheader;;8', '', 
'after:header');

After this, my subheader is positioned at the Extended Tab. Can I 
position this new field after the header? The syntax my snippet seems 
to be outdated.

thx in advance!
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english