Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templatitator not working below top level. #20

Open
brennhill opened this issue Nov 5, 2017 · 2 comments
Open

Templatitator not working below top level. #20

brennhill opened this issue Nov 5, 2017 · 2 comments

Comments

@brennhill
Copy link

If you use the following code:

{
    $animal_types_hidden: true,
    animal_types: {
        dog: {
            $animal_type_type: 'title',
            animal_type: 'dog',
            name: '',
            barks: false
        },
        parrot: {
            $animal_type_type: 'title',
            animal_type: 'parrot',
            name: '',
            talks: false
        },
    },
    $animals_templatitator: '@@animal_types',
    animals: [],
}

The templates will work. However, if you change your code to the following:

{
   animal_section: {
    $animal_types_hidden: true,
    animal_types: {
        dog: {
            $animal_type_type: 'title',
            animal_type: 'dog',
            name: '',
            barks: false
        },
        parrot: {
            $animal_type_type: 'title',
            animal_type: 'parrot',
            name: '',
            talks: false
        },
    },
    $animals_templatitator: '@@animal_types',
    animals: []
  }
}

The templates fail.

@rnlambert7
Copy link

Can you share flat db file and location from the cms folder and the hbs files from the pages folder where you are calling the templates for each so we can see how they are being called to troubleshoot?

@brennhill
Copy link
Author

brennhill commented Dec 22, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants