gyaani Posted March 9, 2014 Share Posted March 9, 2014 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 More sharing options...
adrian Posted March 9, 2014 Share Posted March 9, 2014 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? 1 Link to comment Share on other sites More sharing options...
kongondo Posted March 9, 2014 Share Posted March 9, 2014 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...) 2 Link to comment Share on other sites More sharing options...
gyaani Posted March 9, 2014 Author Share Posted March 9, 2014 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 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