Sebii Posted January 14, 2016 Share Posted January 14, 2016 Hi all, I'm currently having some trouble to access the (internal) description of a file-field which is contained in a repeater field. My problem is, that I can only see the description when I'm logged in as a superuser, while the page/template which is using this repeater can be accessed by anyone. Also it seems that all other details of the files are available to anyone (as expected). Simplified code which shows my problem: foreach($page->Organizer as $organizer) { foreach($organizer->Files as $file) { echo $file->description; //Only shown to my superuser echo $file->name; //Shown to anyone as expected echo $file->url; //Shown to anyone as expected echo $file->ext; //Shown to anyone as expected } } (Organizer is the repeater field, containing a file field called Files) Any help appreciated. Thanks you Link to comment Share on other sites More sharing options...
cb2004 Posted January 14, 2016 Share Posted January 14, 2016 Do you have any cache settings on the template? Link to comment Share on other sites More sharing options...
Sebii Posted January 14, 2016 Author Share Posted January 14, 2016 I checked, no cache on the template. I also couldn't identify any module which could keep a cache of it. Changes on the template are also reflected. It's really just the description that disappears after logout. Link to comment Share on other sites More sharing options...
kongondo Posted January 14, 2016 Share Posted January 14, 2016 Worked as expected in my testing (PW 2.7.2). Are you getting any errors? Btw, you are naming your fields using upper-case first letters? It still works but it's a good idea to follow the recommendation about naming fields: Any combination of ASCII letters [a-z], numbers [0-9], or underscores (no dashes or spaces). Link to comment Share on other sites More sharing options...
Sebii Posted January 15, 2016 Author Share Posted January 15, 2016 Thanks for that hint. Upgrading from 2.6.x to 2.7.2 solved my problem. I didn't expect that. Unfortunatly during upgrade process, the file descriptions have all been lost. So I'm not really sure if it was a problem in 2.6.x or maybe something wrong with my installation at all. Also thank you for the hint with the field naming. I was not aware of it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now