DisplayDrivers inheriting from DisplayDriver<Tmodel> #18146
Replies: 2 comments 2 replies
-
How is this consumed/called, and is it possible to share a minimal repo with in-memory data, seems something goes wrong during the calling |
Beta Was this translation helpful? Give feedback.
2 replies
-
Turns out I had the driver registered to two different places (an alternate test project in the same solution). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am experiencing an odd behavior from a display driver for a POCO. I have four POCOs that are used for nested content. The context is a calendar that is presenting data from an external source. The data is imported into the document database via a background task but not as a ContentType. These are my four POCOs
My templates are rendering these out like a desktop calendar (rows of weeks, columns of days)
I have display drivers for each of these to create shapes so that my theme can render them using templates.
The drivers and the templates are almost identical except for the HTML markup needed to lay out the calendar (i.e. weeklist populates an IEnumerable for the weeks, which populates a nested IEnumerable for days, etc.)
the weird thing is that when the day's BuildDisplayAsync method is called, the shape it returns has the day item duplicated (my calendar shows two instances if each day). The other drivers behave correctly.
For illustration, here is my week list's driver
and here is the week's driver
and here is the day's driver
The week's driver calls _displayManagerCompositeEventsDay.BuildDisplayAsync and that is the only one that produces duplicate items
Any ideas why that driver might behave differently?
Beta Was this translation helpful? Give feedback.
All reactions