Jump to content

Hello Worlds Tutorial not working


boltwood
 Share

Recommended Posts

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 by Christophe
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...