We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Using template includes with blocks
I’m trying to use an include within a perch block, but the included template is not showing up. Is there something obviously wrong with my template?
<perch:blocks> <perch:block type="text" label="Testimonial"> <perch:template path="testimonial.html" /> </perch:block> <perch:block type="text" label="Text"> <perch:content id="text" type="textarea" markdown="true" editor="markitup" size="l" label="Text" /> </perch:block> </perch:blocks>
It shows the Text block available to add but not the testimonial one.
Here is my diagnostic report:
SUMMARY INFORMATION Perch: 2.8.13, PHP: 5.5.17, MySQL: 5.5.38, with PDO Server OS: Darwin, cgi-fcgi Installed apps: content (2.8.13), assets (2.8.13), categories (2.8.13), perch_blog (4.6) App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', ); PERCH_LOGINPATH: /perch PERCH_PATH: /Users/TwoLittleFishes/Dropbox/sites/helenaclayton.co.uk/perch PERCH_CORE: /Users/TwoLittleFishes/Dropbox/sites/helenaclayton.co.uk/perch/core PERCH_RESFILEPATH: /Users/TwoLittleFishes/Dropbox/sites/helenaclayton.co.uk/perch/resources Image manipulation: GD PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M Resource folder writeable: Yes SCRIPT_NAME: /perch/core/settings/diagnostics/index.php REQUEST_URI: /perch/core/settings/diagnostics/ DOCUMENT_ROOT: /Users/TwoLittleFishes/Dropbox/sites/helenaclayton.co.uk HTTP_HOST: helenaclayton.local
Want to reply to this thread?Login with Perch