Jump to content
Sign in to follow this  
fruid

CMS not writing to files

Recommended Posts

Hi,

this is the first time I'm using ProcessWire.

I thought I get how fields, template and pages work, but when I create a template in the CMS, it doesn't generate any file in site/templates/

Then I thought I might need to create a blank file myself manually on the FTP (which already seems odd to me).

Once I did that, I tried to add fields to the template but again, doesn't write to the php file.

When I create a new page and apply said template to it, the page stay blank.

AFAIK the mod_rewrite of the apache is on and I went for the worst case scenario described here https://processwire.com/docs/security/file-permissions/ and set all file-permissions for future files to 0666 and folders to 0777 in the config.php

What am I not getting and what am I doing wrong?

Help is appreciated, stay save everybody,

Fred

Share this post


Link to post
Share on other sites

When you create a template in the CMS , it creates the templates (virtually) and fields that holds the data in the Database, creating a template file in the folder allows you to tie that template with the data of the template in the CMS that was created. You have to explicitly create the template file and refresh  

Share this post


Link to post
Share on other sites

so I need to code the template as php and html after all? I thought it was supposed to be easy to use.
And after coding the template and all I still need to select the fields that I want to add to the template in the admin panel after all? Isn't that redundant?

Share this post


Link to post
Share on other sites
Posted (edited)

OK, I'm getting the hang of it, it's indeed quite flexible the way it is.

Thanks for your help, stay save,

Fred

Edited by fruid

Share this post


Link to post
Share on other sites

Processwire is not a normal CMS as you know it, it is rather a "Content Management Framework".

That's why Processwire gives you much more possibilities than the most other CMS. But you also have to program more.

For the beginning: you can install different examples during the Processwire setup.

Share this post


Link to post
Share on other sites
16 hours ago, fruid said:

so I need to code the template as php and html after all? I thought it was supposed to be easy to use.
And after coding the template and all I still need to select the fields that I want to add to the template in the admin panel after all? Isn't that redundant?

Think of your template as the Presentation view and the fields as properties for a Data Container, the Page gives you all the data you need, then you are in control of the presentation. This is better than how WP works , because the system already exposes the data you need, how you render the template is now up to you.  This gives you room to plan the fields and pages and even have shared templates. 

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By benbyf
      Hello, and welcome to what I though was either my client being silly and changing things, or some evil doer. Turns out its reproducible and therefore something in Proceswire (I checked my templates and modules but couldnt find anything that would be doing this...). So what is it doing? Check out the video for evidence.
      A repeater field is interacting with a page template and another repeater field somehow to swap the fields in the template and repeater over...
      I have a template called team, and a repeater field called team_repeater with label Team. Some how and for some reason, when I change my fields on repeater called main_menu_links my team template gets those fields and when I try and revert the team template fields to the fields it should have, they get given to the repeater main_menu_links. Also this to say HELP!!!!!
      video: https://www.dropbox.com/s/exkdhc6n7x0xpsa/strange-repeater-PW-mega-bug.mov?dl=0
    • By snck
      Hey,
      I want my editors to be able to use the page lister, especially the bookmarks. I added the page-lister permission to the editor role, but Page lister ("Find" menu item) does not show. Is there anything else I have to do? Links to bookmarks work for the editors, but I would be glad to show them the menu item as well.
      Maybe this has something to do with the long history of the site (started with ProcessWire 2.4 and upgraded to 3.0.148 over the years)?
      Thanks,
      Flo 
    • By Aleksey Popov
      Hi! Is it possible to specify explicitly the parent section when creating a new child page with a single template?
      The idea is to save the user from the possibility of mistakenly choosing a section, but not to create unnecessary identical templates
      What I mean:
      Let's say I've got 2 parent categories with names articles & news. Each of them utilized the same admin-template (category) with the category.php file. Also, I have 2 different templates for child pages (article & news).
      Next, I need to add an article page to the articles category with the "create new" button in admin. At that moment, I must choose the category to place (because both categories use the same template). 
      To runaround this (and create a page right into the exact category without the choosing step) I should create 2 templates for each category, and setup parent-children relations for each pair of templates, right?
      But Is any way to use only the one category template and different children templates and at the same time, explicitly specify which section to use for child pages, thereby removing the process of selecting a child section?
       
      articles (category.php) Article page 1 (page-article.php) Article page 2 (page-article.php) Article page 3 (page-article.php) + Add a new article page here without category chooser news (category.php) News page 1 (page-news.php) News page 2 (page-news.php) News page 3 (page-news.php)  Update: found module  but I can't get it work.
       
    • By snck
      Hello,
      for a project I have pages with different “content areas“ that can be edited only by specific user roles. In the past I setup a fieldset (tab) containing all the fields that should be available to only one specific group of users and set the fields' view and edit permissions (in the Access tab) accordingly. The result was as expected: Users assigned to the specific role could see the tab, click on it, edit content, users without the role could not see the tab. After updating this installation to 3.0.148 yesterday I wanted to setup another tab following the same principle, but I have no "Access" tab for the fieldset to limit access to the specific role. I even tried cloning an existing (and still working) fieldset. The existing fieldset has some template overrides (screenshot attached) that lead to the desired behaviour, but I am not able to reproduce these settings because there is not "Access" tab for my fieldset in template context either.
      Is this a bug in 3.0.148? Has the fieldset fieldtype changed? Am I missing anything here?
      I am glad to hear from you guys.
      Cheers,
      Flo

    • By MarkE
      Having just wasted the best part of a day debugging an access issue because I hadn't realised that page-edit-created negated any related page-edit permissions, could I suggest that a note to this effect is included in the default title. I have amended the title on my system to read:
      Edit only pages user has created (IMPORTANT: This will negate any related page-edit permission - including permissions granted to a user by other roles) ..although it may be possible to make it briefer while not losing clarity and impact.
×
×
  • Create New...