gunter Posted February 24, 2023 Share Posted February 24, 2023 I installed a blank site, unfortunately processwire is using markup regions, I don´t like that!! Why is it doing this? I want normal delayed output - with php!!! What is the easiest way to change this? Link to comment Share on other sites More sharing options...
Mats Posted February 24, 2023 Share Posted February 24, 2023 In site/config.php: $config->useMarkupRegions = false; 1 Link to comment Share on other sites More sharing options...
wbmnfktr Posted February 24, 2023 Share Posted February 24, 2023 Disable them in /site/config.php. 1 Link to comment Share on other sites More sharing options...
gunter Posted February 24, 2023 Author Share Posted February 24, 2023 thank you, guys! And where can I find proper basic-template, home-template and _main, that use normal php echo? Link to comment Share on other sites More sharing options...
wbmnfktr Posted February 24, 2023 Share Posted February 24, 2023 Right here: https://processwire.com/download/site-profiles/ But keep in mind: Spoiler Working with site profiles How to install a site profile You must first have a copy of ProcessWire that has not yet gone through the installation process. Extract and copy the site profile files into a /site-name/ directory in your web root (or wherever ProcessWire’s install.php file is located). Replace the name part of site-name with the name of the profile, i.e. site-regular or site-languages, etc. Open the URL where you've copied ProcessWire's files to in your web browser. The installer should start. When it asks you what site profile you want to install, you should see the profile you added available for selection. Select it and continue installation. Link to comment Share on other sites More sharing options...
gunter Posted February 24, 2023 Author Share Posted February 24, 2023 thank you! I will try the Uikit Theme! It´s bad practice, it wasn´t mentioned, that the Blank site profile is using markup regions - would have saved me time to know this before!! Link to comment Share on other sites More sharing options...
szabesz Posted February 25, 2023 Share Posted February 25, 2023 10 hours ago, gunter said: I want normal delayed output - with php!!! You always get normal delayed output out of the box, even if $config->useMarkupRegions is set to true by default. Markup Regions is never enforced, and even though it is turned on by default it just sits there to be used. If you do not need it, you can disable it for performance reasons, of course. 2 Link to comment Share on other sites More sharing options...
bernhard Posted February 25, 2023 Share Posted February 25, 2023 While @gunter's wording is maybe not the nicest (!, !!, !!!) I understand and also think that having markup regions in the blank profile is not a good idea. For someone not familiar with markup regions (or PW in general) that's an additional step to take and an additional thing to understand. It might be obvious for us, but I doubt it's obvious for many newcomers. I've realised that when working on the video about RockFrontend (https://youtu.be/7CoIj--u4ps?t=78). Quote Blank site profile This site profile provides a nearly blank starting point with the minimum amount of fields, templates and modules installed. This site profile is useful to people that are already familiar with ProcessWire, already know what fields/templates they will need to create, and don't want to take the time to removing existing fields/templates they don't need from a site profile. /site-blank/ This profile is already bundled with all current versions of ProcessWire. I'd much more prefer if the blank profile would really be a blank profile. Without markup regions. Just plain PHP. With all the tools waiting for you if you want them, but not forcing you to use them in the beginning. 15 hours ago, gunter said: unfortunately processwire is using markup regions, I don´t like that!! Why is it doing this? You can read about the background here: https://processwire.com/blog/posts/starting-with-the-blank-profile/ 3 Link to comment Share on other sites More sharing options...
gunter Posted February 26, 2023 Author Share Posted February 26, 2023 On 2/25/2023 at 2:54 PM, bernhard said: I'd much more prefer if the blank profile would really be a blank profile. Without markup regions. Just plain PHP. With all the tools waiting for you if you want them, but not forcing you to use them in the beginning. Thank you for your answer and understanding! Yes, you´re right, it made me angry, because it´s totally against Processwire´s promise here https://processwire.com/about/why/ "The current CMS landscape and what’s wrong with it Still other products have APIs that introduce so many new types of tags, bits and scraps to learn, that we find ourselves in a template system that's trying to hide the underlying programming language from us–or worse–bypassing it completely. The perspective of ProcessWire is that PHP is the most familiar and powerful template engine we could ask for, so we enthusiastically embrace it."" 2 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