[TYPO3-UG Australia] a little help?
David Cake
dave at difference.com.au
Thu Jun 7 06:20:53 CEST 2007
At 12:05 PM +0800 7/6/07, Bernie Pfister wrote:
>Did you change "pidInList = 60" to be "pidInList = 12"?
Yes.
And I tried uidInList = 12 just for fun, with the same result
- it fills the box with the contents of the current page.
>Rogers version grabs a particular content element. My version grabs the
>content of a particular page (all columns in one). I might have
>misunderstood your question, sorry.
Yes, that is what I thought was going on. And I tried both
methods (and at least yours gets me something - no variation of
Rogers seems to get me anything at all)
I am now more confused than ever as to how typo3 works!
Cheers
David
PS simplied template template included in case there is some problem
in some other part of the template that is causing this.
config.spamProtectEmailAddresses = 1
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/templates/new/index.html
# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
# TD.all = 1
DIV.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/templates/new/
}
# Main menu cObject
temp.mainmenu = HMENU
# First level menu-object, textual
temp.mainmenu.1 = TMENU
temp.mainmenu.1 {
expAll = 1
# Normal state properties
NO = 1
NO.wrapItemAndSub = <li>|</li>
NO.allWrap = <div class="menu1-level1"> | </div>
}
# Second level menu-object, textual
temp.mainmenu.2 = TMENU
temp.mainmenu.2 {
expAll = 1
wrap = <ul>|</ul>
# Normal state properties
NO = 1
NO.allWrap = <li><div class="menu1-level2"> | </div></li>
}
# Third level menu-object, textual
temp.mainmenu.3 = TMENU
temp.mainmenu.3 {
wrap = <ul>|</ul>
# Normal state properties
NO = 1
NO.allWrap = <li><div class="menu1-level3"> | </div></li>
}
temp.newslist = CONTENT
temp.newslist.table = tt_content
temp.newslistselect {
uidInList = 12
orderBy = sorting
}
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
subparts.main-content < styles.content.get
subparts.mainmenu < temp.mainmenu
#nb shares should probably actually substitute for sharebox rather
than share-wrapper
subparts.news-wrapper < temp.newslist
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate
More information about the TYPO3-UG-australia
mailing list