This issue evolved out of #316019: Add source feed title to theming, which resulted in two patches that I realized should go two different ways. One of them ended up here.
Currently the Aggregator module does not present any information about the source feed when presenting a category aggregator. I hereby propose a small patch (against 7.x-dev) that will present this information.
This patch is dependent on #324077: Source feed missing in Aggregator theme function. Until that one is accepted this issue is postponed.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | screenshot_aggregator_item_title.png | 62.84 KB | ztyx |
| aggregator.core-feed_title_shown_in_theme.patch | 783 bytes | ztyx |
Comments
Comment #1
AntiNSA commentedCan you tell me how to make this work? I want to use it and dont know how to implement it/.
THanks
Comment #2
ztyx commentedSure! Have you ever applied a patch before? If not, read documentation on how to apply patches. There is also some information available here.
To be able to show the source feed title you got to send the title to the theme function
theme_aggregator_block_item(), which is used to print out each feed in the listing. That is exactly what the patch in #324077: Source feed missing in Aggregator theme function does. The feed title is then referred to as$item->ftitlein the theme function.The patch in this issue (and its equivalent for Drupal 6) only print out the title by default (see attached screenshot) and can (and should probably) be done by implementing your own theme function for your theme.
Also, note that while this will solve your desire to add the feed title to your theme, you will have to apply this patch every time you upgrade Drupal until it is added to core. This is one of the reasons why you normally should not hack core [2].
Did this help? Please report back if you can confirm that the patch is working as expected.
Comment #3
AntiNSA commentedThank you for your reply! it is in my que of things to do. As soon as I can get a chance I will try it and tell you how it works. Thanks!
Comment #4
Jooblay.net commentedWhat is the status of this ticket:) Can we close this...