-
Notifications
You must be signed in to change notification settings - Fork 41
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
Requires editor config to display List View properties #19
Comments
Interesting! It shouldn't need an editor config in order to show list view fields. Is it possible you setup the listview config but forgot to compile? then when you added the editor config you did compile so it then worked? PS Sorry for the dumb question, but need to rule out the simple stuff first |
Ok, I think I've found the problem. In the mapping code for the entity, for some reason I'm checking if the editor has tabs, which is completely irelivant for list views. I think it's probably left over from some copy paste thing https://github.com/umco/umbraco-fluidity/blob/master/src/Fluidity/Web/Models/Mappers/FluidityEntityMapper.cs#L72 I'll get it removed and get a nightly built |
Thanks for looking so quickly. But there's no rush, honestly, it's easily worked around for me. I've just made the editor view read-only, too, which works perfectly (for my needs). Loving the possibilities for this! :) |
Hey @DanDiplo a new nightly is here https://ci.appveyor.com/project/UMCO/umbraco-fluidity/build/1.0.2.31/artifacts will get pushed out in the next release |
Thanks, much appreciated - really enjoyed working with this! |
First, I want to say this is an amazing project - jaw droppingly good! The number of features and quality of the code and documentation is stunning. I managed to get a simple List View working in about 20 mins from install to running in Umbraco, including reading docs. So that is a testament to how easy it is to use.
However, I was left scratching my head as to why some column data wasn't being displayed. For the project I was working on I only required a read-only list view of some data stored in a table within the Umbraco DB (T-SQL).
My POCO was this:
and the relevant bit of config I used was this:
When I ran this I got a list view, but only the Domain value (the name property) was showing any data. All the other column headings were there, but each row contained no data for any of the properties in the List View. They were completely empty (yet I knew the table contained data and the field names matched the POCO).
Eventually, I tried adding an Editor Config to the
collectionConfig
(to match your example in docs):As soon as I did this the values for the columns were displayed correctly. I'm not quite clear why the
editorConfig
is needed for this. As I say, in my case I was using a read-only view that isn't editable, so I wouldn't have expected to require an editor config to see the values of the properties in the list view.The text was updated successfully, but these errors were encountered: