Jump to content

Recommended Posts

Posted

I just started with PW and I've gotten the hang of things quite easily but whenever I make a new field it doesn't not appear on the user side of the template. I can manage the field content in the admin section but nothing appears but the title and body on the user side. 

Is there a permissions/roles function that I have to change?

Is there something in the PHP template files I need to change?

Thanks.

Posted

Thanks ... right now my template looks like this

<?php 

/**
 * Page template
 *
 */

include("./head.inc"); 

echo $page->body;

include("./foot.inc"); 

But I have three custom fields.

I will look in to the documentation you suggested

Posted

It is as simple as this:

<?php
/**
* Page template
*
*/
include("./head.inc");

echo $page->body;

echo $page->your_field_name;

echo $page->another_field_name;

echo $page->third_field_name;

include("./foot.inc");
 

But do finish to those tutorials. You easily get a grasp of all the possibilities.

  • Like 2
Posted

After some research and testing I have come to the conclusion that my issue is not a template issue but rather the fact that the data I am entering doesn't store itself in the database. Every time I refresh the page to edit the data my fields are empty again. Any clue as to why that is?

Posted

You are saving the page? Are you getting any errors? You can enable the debug function in /site/config.php or check the /site/assets/log files.

  • Like 1

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
×
×
  • Create New...