Forum Discussion
I also have the same problem: The mode parameter is not respected when you include the component within another custom component.
IMHO hiding the unwanted information through CSS is just a temporary workaround and not the solution. Depending on the mode the information is rendered in a different HTML structure:
- slim mode - the information is presented as an unordered list <ul>
- wide mode - the information renders the data within a table <table>
I think this is a bug, that should be fixed.
Please see my solution here:
But the best solution should be from Lithium side. Make a API for this, so we can use whatever HTML we like. Sad.
- nibo8 years agoMentor
Hey peterlu,
thanks for your reply. The problem in my case is unfortunately not with the recommendation component.
I am embedding the components forums.widget.recent-messages, forums.widget.recent-threads and kudos.widget.authors-leaderboard not directly within the quilt but through a custom component, because I have a custom logic check if I should embed them, or not.
The mode parameter doesn't work in none of them, but when I embed the components directly in the quilt everything works as expected. So I assume this is a general bug and not specific to the recommendations.
Related Content
- 11 years ago
- 4 years ago