Discussion:
[TYPO3-english] Header Type: menu question
La Farge Douglas
2009-09-04 02:08:50 UTC
Permalink
Is it possible to change the wrapping produced by the various
selections from the Type: menu?

<div class="csc-header csc-header-n2"><h1> | </h1></div>
to something like

<div class="my-class"><span.... > | </span></div>

I swear I ran across this in the Typo3 book but after flipping through
it twice it's not jumping out at me.

regards,
doug

-+-+-+-+-+-+-+-+-+-+-+-+-+
Doug La Farge
GCN Publishing, Inc.
203.665.6211 x209
Internet Software & Services For Today's Media Companies
www.gcnpublishing.com * www.bg2go.com
La Farge Douglas
2009-09-04 02:43:30 UTC
Permalink
I should rephrase this as well as be more clear.

I'd like to add additional selections to the Header Type: menu and
configure my own wrapping for the additional selections.



doug
Post by La Farge Douglas
Is it possible to change the wrapping produced by the various
selections from the Type: menu?
<div class="csc-header csc-header-n2"><h1> | </h1></div>
to something like
<div class="my-class"><span.... > | </span></div>
I swear I ran across this in the Typo3 book but after flipping through
it twice it's not jumping out at me.
regards,
doug
-+-+-+-+-+-+-+-+-+-+-+-+-+
Doug La Farge
GCN Publishing, Inc.
203.665.6211 x209
Internet Software & Services For Today's Media Companies
www.gcnpublishing.com * www.bg2go.com
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
-+-+-+-+-+-+-+-+-+-+-+-+-+
Doug La Farge
GCN Publishing, Inc.
203.665.6211 x209
Internet Software & Services For Today's Media Companies
www.gcnpublishing.com * www.bg2go.com
David Bruchmann
2009-09-04 07:45:00 UTC
Permalink
----- Urspr?ngliche Nachricht -----
Von: La Farge Douglas <doug at gcnpublishing.com>
Gesendet: Freitag, 4. September 2009 04:43:30
An: TYPO3 English <typo3-english at lists.netfielders.de>
CC:
Betreff: Re: [TYPO3-english] Header Type: menu question
Post by La Farge Douglas
I should rephrase this as well as be more clear.
I'd like to add additional selections to the Header Type: menu and
configure my own wrapping for the additional selections.
Hy Doug,

In TypoScript Object Browser you find your Element in
lib.stdheader.stdWrap.dataWrap

Best Regards
David
David Bruchmann
2009-09-04 07:50:27 UTC
Permalink
Post by David Bruchmann
Hy Doug,
In TypoScript Object Browser you find your Element in
lib.stdheader.stdWrap.dataWrap
Best Regards
David
... You can browse the whole tree lib.stdheader to see how headers are
build.
In your template you cen override each setting.

David
Tyler Kraft
2009-09-04 09:02:40 UTC
Permalink
Hi Doug

And if you actually want to add more heading types - say one with an
additional class - you will need to look at TSconfig on how to add they
appropriate pageTs so they appear in the drop down menu. After that then
just configure them, as David says, using the TSOB (typoscript object
browser)

For simplicity I'd suggest just importing one of the existing ones and
then changing it:
lib.stdheader.6 < lib.stdheader.1 (not tested but you get the general idea)
Post by David Bruchmann
Post by David Bruchmann
Hy Doug,
In TypoScript Object Browser you find your Element in
lib.stdheader.stdWrap.dataWrap
Best Regards
David
... You can browse the whole tree lib.stdheader to see how headers are
build.
In your template you cen override each setting.
David
La Farge Douglas
2009-09-04 15:07:07 UTC
Permalink
Thanks for the tip. It turns out late last night I managed to find
this.

tt_content.header.20.dataWrap = <p class="csc-subheader csc-subheader-
{field:layout}">|</p>

The next question though is where do the <h1> through <h5> 's get
wrapped in there?

Ex:
<div class="csc-header1 csc-header-n2"><h1>Pediatric Dermatology</h1></
div>
thanks again,
doug
Post by David Bruchmann
----- Urspr?ngliche Nachricht -----
Von: La Farge Douglas <doug at gcnpublishing.com>
Gesendet: Freitag, 4. September 2009 04:43:30
An: TYPO3 English <typo3-english at lists.netfielders.de>
Betreff: Re: [TYPO3-english] Header Type: menu question
Post by La Farge Douglas
I should rephrase this as well as be more clear.
I'd like to add additional selections to the Header Type: menu and
configure my own wrapping for the additional selections.
Hy Doug,
In TypoScript Object Browser you find your Element in
lib.stdheader.stdWrap.dataWrap
Best Regards
David
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
-+-+-+-+-+-+-+-+-+-+-+-+-+
Doug La Farge
GCN Publishing, Inc.
203.665.6211 x209
Internet Software & Services For Today's Media Companies
www.gcnpublishing.com * www.bg2go.com
Tyler Kraft
2009-09-04 15:17:35 UTC
Permalink
well the h1-h5 get wrapped in the libstdheader.10.1.fontTag (or
something like that)

Then the outer div gets added in the lib.stdheader.stdWrap (or again
something similar)

hth
Thanks for the tip. It turns out late last night I managed to find this.
tt_content.header.20.dataWrap = <p class="csc-subheader
csc-subheader-{field:layout}">|</p>
The next question though is where do the <h1> through <h5> 's get
wrapped in there?
<div class="csc-header1 csc-header-n2"><h1>Pediatric Dermatology</h1></div>
thanks again,
doug
Post by David Bruchmann
----- Urspr?ngliche Nachricht -----
Von: La Farge Douglas <doug at gcnpublishing.com>
Gesendet: Freitag, 4. September 2009 04:43:30
An: TYPO3 English <typo3-english at lists.netfielders.de>
Betreff: Re: [TYPO3-english] Header Type: menu question
Post by La Farge Douglas
I should rephrase this as well as be more clear.
I'd like to add additional selections to the Header Type: menu and
configure my own wrapping for the additional selections.
Hy Doug,
In TypoScript Object Browser you find your Element in
lib.stdheader.stdWrap.dataWrap
Best Regards
David
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
-+-+-+-+-+-+-+-+-+-+-+-+-+
Doug La Farge
GCN Publishing, Inc.
203.665.6211 x209
Internet Software & Services For Today's Media Companies
www.gcnpublishing.com * www.bg2go.com
Peter Klein
2009-09-04 19:09:34 UTC
Permalink
Hi Doug.

The optimal solution would be something like this:

-- cut --
# Put this in Page TSConfig
TCEFORM.tt_content.header_layout {
# Alternate labels for the headings
altLabels.1 = Heading 1
altLabels.2 = Heading 2
altLabels.3 = Heading 3
altLabels.4 = Heading 4
altLabels.5 = Heading 5

# Example of adding and removing header_layout items
removeItems = 100
addItems.6 = Heading 6
addItems.99 = Hidden
}
-- cut --

-- cut --
# Put this in Typoscript Setup
### Simplify headers' markup and add <h6>:
lib.stdheader.10 {
1.fontTag = <h1>|</h1>
2.fontTag = <h2>|</h2>
3.fontTag = <h3>|</h3>
4.fontTag = <h4>|</h4>
5.fontTag = <h5>|</h5>

6 < .1
6.fontTag = <h6>|</h6>
}
-- cut --

--
Peter Klein / Umloud Untd.


"La Farge Douglas" <doug at gcnpublishing.com> wrote in message
news:mailman.7325.1252076842.21281.typo3-english at lists.netfielders.de...
Thanks for the tip. It turns out late last night I managed to find
this.

tt_content.header.20.dataWrap = <p class="csc-subheader csc-subheader-
{field:layout}">|</p>

The next question though is where do the <h1> through <h5> 's get
wrapped in there?

Ex:
<div class="csc-header1 csc-header-n2"><h1>Pediatric Dermatology</h1></
div>
thanks again,
doug
Post by David Bruchmann
----- Urspr?ngliche Nachricht -----
Von: La Farge Douglas <doug at gcnpublishing.com>
Gesendet: Freitag, 4. September 2009 04:43:30
An: TYPO3 English <typo3-english at lists.netfielders.de>
Betreff: Re: [TYPO3-english] Header Type: menu question
Post by La Farge Douglas
I should rephrase this as well as be more clear.
I'd like to add additional selections to the Header Type: menu and
configure my own wrapping for the additional selections.
Hy Doug,
In TypoScript Object Browser you find your Element in
lib.stdheader.stdWrap.dataWrap
Best Regards
David
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
-+-+-+-+-+-+-+-+-+-+-+-+-+
Doug La Farge
GCN Publishing, Inc.
203.665.6211 x209
Internet Software & Services For Today's Media Companies
www.gcnpublishing.com * www.bg2go.com

Samrat Chakraborty
2009-09-04 15:27:33 UTC
Permalink
On adding a flash file using media button in TinyRTE the tags
<object><param><embed> not identified or rndered in the front end...
Please help it a very serious issue. I have to meet deadlines.

I have doe the appropriate Template configs and PG TS configs. Please help.
Tis is Pg TS Config

RTE.default.init {
plugins =
media,style,table,advimage,advlink,inlinepopups,searchreplace,contextmenu,paste,nonbreaking,xhtmlxtras,typo3filemanager,template
theme_advanced_buttons1 =
undo,redo,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,link,unlink,image,|,attribs,anchor,|,template
theme_advanced_buttons2 =tablecontrols
theme_advanced_buttons3 =
styleselect,|,formatselect,|,code,,sub,sup,|,bullist,numlist,|,outdent,indent,|,nonbreaking,blockquote,|,media
theme_advanced_buttons4 =
}

RTE.default.proc {
allowTags (
a, abbr, acronym, address, blockquote, b, br, caption,
cite,
code,
div, em,
h1, h2, h3, h4, h5, h6, hr, i, img, li, link, ol, p, pre,
q,
span, strong, sub, sup, table, tbody, td, th, tr, tt, ul,
object,embed,param
)
}

and this is Template config

DEFINE DEFAULT HEADER
temp.stdheader.10.1.fontTag = <h2>|</h2>

# NO csc-header
temp.stdheader.stdWrap.dataWrap >

temp.parseFunc_RTE {

# COPY ALLOW TAGS FROM PAGETS (WITHOUT b)
allowTags (
a, abbr, acronym, address, blockquote, br, caption, cite, code,
div, em, embed
h1, h2, h3, h4, h5, h6, hr, i, img, li, link, object, ol, p, param,
pre, q,
span, strong, sub, sup, table, tbody, td, th, tr, tt, ul
)

# DO NOT ADD class="bodytext" TO EACH LINE
nonTypoTagStdWrap.encapsLines.addAttributes.P.class >

# DO NOT WRAP THOSE TAGS WITH <p>
nonTypoTagStdWrap.encapsLines.encapsTagList = cite, div, p, pre, hr,
h1, h2, h3, h4, h5, h6,table,tr,td

# avoid unwanted p-elements in th/td on the way to FE
externalBlocks.table.HTMLtableCells.default >
externalBlocks.table.HTMLtableCells.default.stdWrap.parseFunc =<
lib.parseFunc

# DO NOT ADD class="contenttable" TO EVERY TABLE => ALLOW COSTUM class
externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class >

# DO NOT AUTOLINK EVERY STRING THAT STARTS WITH HTTP OR MAILTO
# such strings in the content are assumed to be intentional
makelinks >
externalBlocks.ul.stdWrap.parseFunc.makelinks = 0
externalBlocks.ol.stdWrap.parseFunc.makelinks = 0
}

I am using TinyRTE 1.8.1
Typo3 4.2.6
WAMP and LAMP both

Thanks and Regards

Samrat Chakraborty

Software Engineer
Consulting Group
I Tech. Tower, 6th Floor I
L&T Infotech Ltd. I Powai, Mumbai I
Ph: 022 6776 7327 I Extn:7327 I
Cell:09920563033


Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com

This Document is classified as:

|------|
| [X] |
|------|L&T Infotech Proprietary |------|
| [ ] |
|------|L&T Infotech Confidential |------|
| [ ] |
|------|
L&T Infotech Internal Use Only |------|
| [ ] |
|------|L&T Infotech General Business

This Email may contain confidential or privileged information for the
intended recipient (s) If you are not the intended recipient, please do not
use or disseminate the information, notify the sender and delete it from
your system.


______________________________________________________________________
Continue reading on narkive:
Loading...