Jump to content

drag and drop fields in a template does nothing?


gyaani
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

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

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 

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...