0

I have an include / embed file that is being shared across two templates. However one template is displaying a result of the channel:entries tag in the embed whilst the other refuses to display a result.

I have tried updating the channel:entries tag and the second refuses to load content from any channel at all.

Below is the log information from template debugging:

Template 1:

https://www.dropbox.com/s/1g8dw1npd1ysge1/Screenshot%202014-07-29%2017.50.53.png

Template 2:

https://www.dropbox.com/s/29redguruvjy5am/Screenshot%202014-07-29%2017.50.01.png

2
  • Add the dynamic="no" parameter to the problematic template channel entries tag.
    – Michael P
    Jul 30 '14 at 1:27
  • Now I'm embarrassed, completely slipped my mind about the dynamic="no" parameter. Thanks.
    – KoalaKid
    Jul 30 '14 at 2:04
0

Since you're using the same embed on different templates, I guess their URLs are different from each other. The results of exp:channel:entries tags are influenced by the URL.

If you need to bypass this influence, set the dynamic parameter to no.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.