Jump to content

[Solved] Looping through every field of a page

Marcel Stäheli

Recommended Posts

I have a car template that contains dozens of fields. The collection of cars is growing and now I have different configurations for the same car type. To save work and time I created a "general" car page for every car where I enter data that fits every car configuration. Both the general car page and the car configuration have the same template and identical fields.

The idea is that for every car I start with the general page and if a field is empty I get the data from the corresponding car configuration field.

Is there a way to loop through every field of a page? I don't want to write a compare function for every single field.

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

  • Recently Browsing   0 members

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