Forum
Twitter app template issue
Hi,
I'm unable to access templates in the /templates/twitter folder. If i let it revert to default then debug shows /templates/twitter/tweet.html. If I try and access a custom template it reverts to /addons/apps/perch_twitter/templates and then says the template is unavailable (even if I copy it to that location). How do I stop this?
Many thanks,
Nick
How are you accessing a custom template? Can we see your code?
This is within a div on my page (it's being developed locally).
N
What debug output do you get?
Obviously that line above is normally uncommented to try and access the template.
Debug output is:
Template file not found: /Users/nicolashaigh/Sites/NicolasHaigh/wwwroot/perch/addons/apps/perch_twitter/templates/nicolastweet.html
Does that path look correct?
no it should be:
/Users/nicolashaigh/Sites/NicolasHaigh/wwwroot/perch/templates/twitter/nicolastweet.html
This is the path it reverts to if I comment out the template line above. That shows up in debug as /templates/twitter/tweet.html
In other words - when I try and name a template it reverts to the apps path instead of the perch/templates path.
Try:
I think that worked! Thanks!