Jump to content

Recommended Posts

Posted

This is what I have understood:

Adding a field to a template makes the field 'available' to the template file. Which can then be echo'ed out (Ex: echo $page->summary), if it needs to be..Are there any cases where fields aren't echo'ed ? Just wondering..

Secondly it seems drag and drop on the fields on  Edit Template is just for visual purpose, i.e it doesn't actually do anything. Right ? Not saying that it should, just I expected something on the page to change on using drag and drop and got a lil confused..

Please correct me where I am wrong.

Thanks

Posted

Hi gyanni and welcome to PW!

You can echo out any field that is available in the template that is assigned to the page you are viewing, just like in your example.

Drag and drop sorting of the fields in the template changes the order that the fields will appear in when editing any pages that have that template assigned to them. 

Does that make sense?

  • Like 1
Posted

Welcome gyaani! 

Note that if the field is an array, then echoing it out will not help you much; you will need to loop through the field (e.g. fields such as images where the field accepts multiple images, multiple pages reference fields, etc...)

  • Like 2
Posted

Thanks for the welcome :) 

Drag and drop sorting of the fields in the template changes the order that the fields will appear in when editing any pages that have that template assigned to them. 

Ah in the admin! I see 

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
  • Recently Browsing   0 members

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