#3298 - main_cc_embed block issues
| Identifier | #3298 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | main_cc_embed block issues |
| Status | Closed (no changes needed) |
| Handling member | Chris Graham |
| Addon | core |
| Description | 1) There are options to sort fixed_random ASC and fixed_random DESC (which make no sense to me given random is random). Selecting either option doesn't provide random content, it either shows the first entry or the last entry.
2) Other sorting options include 1-7 DESC ASC or DESC, I am not sure I even have 7 fields so this is doubly confusing. 3) Images brought into this block aren't being adjusted to fit it, and the block seems to be slightly indented when used on a side panel (though that could be something I've done somehow). |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".
Comments
1)
I tested and it works. I am adding to the Filtercode tutorial to help explain...
Filtercode has support for a number of hard-coded special field names...
- [tt]average_rating[/tt] -- rating
- [tt]compound_rating[/tt] -- total likes
- [tt]fixed_random[/tt] -- a psuedo-random number for the entry that changes daily
- [tt]meta_description[/tt] -- meta description
- [tt]meta_keywords[/tt] -- meta keywords
Some of these may also appear as sorting options in various blocks.
...Maybe you were testing with a small number of entries, or expecting the order to change on each view of the block.
2) The block helper doesn't know about your specific catalogue. It just hard-codes some fields for selection. Prior to the form Comcode had to be typed, so when implemented the form was only intended as an improvement over that. I'll add an issue to improve that, but it'd take a fair amount of work because the form would need to auto-update using AJAX.
3a) Flexbox is coming to v11, which should help with this kind of thing. Without Flexbox (which is IE11+) it would be very very difficult for us to make images automatically size themselves into a grid, and we expect anyone needing neat grid image layouts to be able to edit the CSS (or pay someone to) to achieve their design.
3b) I'd need to see a screenshot and all the surrounding Comcode to be able to rule out user error.