Note that there are some explanatory texts on larger screens.

plurals
  1. POTYPO3 v6.1 TemplaVoila - add userFunc to specific template part
    text
    copied!<p>how can I replace programmatically via TypoScript the content of {content_left} in a single page via USER_INT with individual PHP content.</p> <pre><code>&lt;div class="container"&gt; &lt;div class="header span-28"&gt; &lt;f:format.raw&gt;{header}&lt;/f:format.raw&gt; &lt;/div&gt; &lt;img class="logo" src="../fileadmin/logo.png" alt="logo"&gt; &lt;a href="./"&gt;&lt;img class="headerimg" src="../fileadmin/header_img.png" alt="headerimg"&gt;&lt;/a&gt; &lt;div class="menu span-28"&gt; &lt;f:format.raw&gt;{main_menu}&lt;/f:format.raw&gt; &lt;/div&gt; &lt;div class="service span-28"&gt; &lt;f:format.raw&gt;{service_menu}&lt;/f:format.raw&gt; &lt;/div&gt; &lt;div class="content span-6 append-1"&gt; &lt;f:format.raw&gt;{content_left}&lt;/f:format.raw&gt; &lt;/div&gt; &lt;div class="content span-22 last"&gt; &lt;f:format.raw&gt;{content_right}&lt;/f:format.raw&gt; &lt;/div&gt; &lt;div class="footer span-28 last"&gt; &lt;f:format.raw&gt;{footer}&lt;/f:format.raw&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>My current TypoScript does look like this:</p> <pre><code># temp.info = USER_INT temp.info { userFunc = user_various-&gt;listContentRecordsOnPage reverseOrder = 1 debugOutput = 1 } page.content_left &lt; temp.info </code></pre> <p>But it does not work. :( No replacement is done.</p> <p>Thanks for any help.</p> <p>Cheers kk3003</p> <hr> <p>gsnerf is absolutety right, it's a FLUIDTEMPLATE element. Unfortunately this TYPOSCRIPT set to the single page where it should appear does not work, any ideas please?</p> <pre><code># Include the PHP file with custom code includeLibs.user_various = fileadmin/php/example_listRecords.php # temp.info = USER_INT temp.info { userFunc = user_various-&gt;listContentRecordsOnPage } page = PAGE page { typeNum = 0 metaCharset = utf-8 includeCSS{ file10 = fileadmin/css/blueprint/screen.css file20 = fileadmin/css/blueprint/print.css file20.media = print file100 = fileadmin/css/main.css file300 = fileadmin/css/service.css file400 = fileadmin/css/mainMenu.css file500 = fileadmin/css/sliding-box.css file600 = fileadmin/css/gridelements.css } includeJS { file10 = fileadmin/js/accordion.js } } [browser = msie] page.includeCSS.file30 = fileadmin/css/blueprint/ie.css page.includeCSS.file30.media = screen [global] page.meta { MSSmartTagsPreventParsing = true imagetoolbar = false } # https_enforcer page.5 &lt; plugin.tx_httpsenforcer_pi1 # Create a Fluid Template page.10 = FLUIDTEMPLATE page.10 { # Set the Template Pathes file = fileadmin/templates/html/template.html partialRootPath = fileadmin/templates/html/partials/ layoutRootPath = fileadmin/templates/html/layouts/ variables { header &lt; lib.header content_left &lt; lib.contentLeft content_right &lt; temp.info main_menu &lt; lib.mainMenu service_menu &lt; lib.serviceMenu footer &lt; lib.footer } } </code></pre> <p>Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload