[TYPO3-UG Australia] a little help?
Bernie Pfister
bernie at pixelsound.com
Thu Jun 7 07:05:07 CEST 2007
Just to make sure: did you notice you didn't have a . in this line
"temp.newslistselect".
What if you try to include different page? The same result?
Do you use tt_news? If so you could also use this to display a latest
news in the lefthand column:
### News LATEST in right column
page.10.subparts.latestNews < plugin.tt_news
page.10.subparts.latestNews {
code >
code = LATEST
}
David Cake wrote:
> 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
>
> _______________________________________________
> TYPO3-UG-australia mailing list
> TYPO3-UG-australia at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-australia
--
Bernie Pfister
Web Designer
Pixelsound Web Design Perth
ABN 68 773 244 755
Phone +61 8 9460 4844
Fax +61 8 9460 4899
Email bernie at pixelsound.com
Web www.pixelsound.com
PO Box 1069
West Leederville WA 6901
Office:
Top Floor, 136 Railway Pde,
West Leederville WA 6007
--
Usually I check my emails at 9am, 1pm and 4.30pm.
For urgent matters please call 9460 4844.
More information about the TYPO3-UG-australia
mailing list