Have search the net, but can't find any fix/help.
Im running TYPO3 v.6. Extbase/Fluid im trying to do 2 things.
- Including a php page, and show it in a content element on a page.
- trying to get some data from a MySQL db, and show it in a content element.
I have included a php page in a TS page like.
lib.timmers = USER_INT
lib.timmers {
includeLibs.time = fileadmin/templates/add/php/dates.php
userFunc = custom_class->customfunction
}
And have then installed the Extension tscobj, its working with Return commands in the PHP page, but not with Echo and Print. If i take the includeLibs.time and place it outside the lib.timmer, then it shows the php content, but before the HTML tag..
So i have problems getting included php content inside a content element on a page.
And How can I add a MySQL connection and make some HTML code/layout, so i can get records from a DB inside a content element, i have tryed the extension ViewHelper, but its not working.
Can someone help me.
Edit:
I have tryed this code, but im not getting any data..
lib.GetMainCat = CONTENT
lib.GetMainCat {
wrap = <div class="p_filter"><div class="p_filter_container"><a class="p_cat_filter button" href="#" title="All Categories" data-filter="article.portfolio"><span>All Categories</span></a><ul class="p_filter"><li class="current"><a href="#" title="All Categories" data-filter="article.portfolio">All Categories</a></li>|</ul></div><div class="cl"></div></div>
table = tx_tbpdrills_domain_model_drillcategory
select {
selectFields = *
where = NOT deleted AND NOT hidden
orderBy = categorytitle ASC
}
renderObj >
renderObj = COA_INT
renderObj {
10 = TEXT
10.field = categorytitle
10.wrap = <li><a href="#" title="###" data-filter="article.portfolio[data-category~='###']">|</a></li>
}
}