Timeline for No Results Tag Isn't Working
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 29, 2016 at 17:52 | vote | accept | Andrew Currie | ||
Nov 16, 2016 at 18:32 | answer | added | Andrew Currie | timeline score: 2 | |
Nov 16, 2016 at 18:31 | comment | added | Andrew Currie | I just got it working! Turns out it was the result of having the member custom profile data tag, {exp:member:custom_profile_data}, around my channel entries tags. Once I removed that the no results message started working. I hadn't included this part of the template in my code sample above so you had no way of knowing I was using these tags. I've given you an up vote for your help. So happy it's working now. Thanks! | |
Nov 16, 2016 at 18:17 | comment | added | Andrew Currie | Thank you Andy for the reply. I just added <p>test</p> under the list item with the custom field {registrant} in it. Now it outputs 'test' when there are results and nothing at all when there aren't results. It doesn't seem to even parse the no_results tag. I added dynamic="yes" back into it but still no change. At least the main part is working and showing entries. I might have to settle for adding a generic message below that states if the above list is blank then there are no results but I'd hate to do that. If you have any other suggestions to try please let me know. Thanks again! | |
Nov 16, 2016 at 16:38 | comment | added | Andy |
If you put some text inside the {exp:channel:entries} query, does it output anything at all? It sounds to me like that query isn't actually doing anything, so any code you have inside it (including the if no_results statement) isn't even executing? If you put <p>Test</p> inside the query, does it output that to your browser? I'm also pretty sure dynamic will need to be set to yes because you're basing the query on a dynamic URL .
|
|
Nov 15, 2016 at 18:48 | history | asked | Andrew Currie | CC BY-SA 3.0 |