boltwood Posted 4 hours ago Share Posted 4 hours ago I'm trying to work out how to use ProcessWire, but seem to have stumbled at the first. I am copying the steps in the 'Hello Worlds' tutorial here: https://processwire.com/docs/tutorials/hello-worlds/ Having done step 3, when I click view, I don't see the html from the template, I just see the same template as the home page with 'Default content'. Link to comment Share on other sites More sharing options...
Christophe Posted 2 hours ago Share Posted 2 hours ago (edited) Hello, And Happy New Year! The tutorial is probably using the direct output strategy. Here are 3 different output strategies among other possible output strategies: https://processwire.com/docs/front-end/output/. The Default profile (beginner edition) and the Classic site profile, for instance, are using the direct output strategy. The official profiles can now be found here: https://processwire.com/download/site-profiles/. You can see Working with site profiles at the end of the page. The Blank site profile is now the only profile already bundled with all current versions of ProcessWire. It uses the Markup regions output strategy. And it has the following parameters in site/config.php: /** @var Config $config */ /*** SITE CONFIG *************************************************************************/ // Let core API vars also be functions? So you can use $page or page(), for example. $config->useFunctionsAPI = true; // Use custom Page classes in /site/classes/ ? (i.e. template "home" => HomePage.php) $config->usePageClasses = true; // Use Markup Regions? (https://processwire.com/docs/front-end/output/markup-regions/) $config->useMarkupRegions = true; // Prepend this file in /site/templates/ to any rendered template files $config->prependTemplateFile = '_init.php'; // Append this file in /site/templates/ to any rendered template files $config->appendTemplateFile = '_main.php'; // Allow template files to be compiled for backwards compatibility? $config->templateCompile = false; Edited 2 hours ago by Christophe Link to comment Share on other sites More sharing options...
Krlos Posted 2 hours ago Share Posted 2 hours ago Hello @boltwood, and welcome to the ProcessWire forum! About your question: it seems like the issue might be related to assigning the correct template to your page. Double-check that under Settings > Template in the page editor, the custom template you’ve created is properly assigned. This ensures that when you click “View,” ProcessWire will render your custom template instead of the default one with “Default content.” Also, I highly recommend visiting PWTuts, a great resource with detailed tutorials about ProcessWire. It’s a fantastic place to find step-by-step guides that will help you better understand the CMS and unlock its full potential. If you have any more questions, feel free to ask here. The community is always happy to help. Good luck, and enjoy your ProcessWire journey! Link to comment Share on other sites More sharing options...
boltwood Posted 2 hours ago Author Share Posted 2 hours ago Ah, thank you! That makes perfect sense. I've packed up for the evening, but I'll check it out tomorrow. Would probably be useful for the tutorial to mention that… Link to comment Share on other sites More sharing options...
boltwood Posted 2 hours ago Author Share Posted 2 hours ago Was replying to Christophe BTW, can't edit my reply. ProcessWire looks great, just need to get my head around how it works. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now