By LoveDrupal on
I used aggregator & feedapi modules and created the external feed in a block - http://www.arisey.com/template. However I would like to clean up two things and add timestamp in terms of "xx days ago" :
1. There is a blue "blog it" button next to each feed item, how to eliminate this button button?
2. There is "more" link at the bottom of each block, how to get rid of this more link?
3 How to add timestamp in terms of "xx days ago"?
I looked at the aggregator module files and could not find "blog it" and "more" link. Can someone advise how to solve these problems? Many thanks for your help in advance.
Comments
To remove the blog it button
To remove the blog it button from your feed items, you'll have to add a function to your template.php file within your theme folder. The following example is from a D6 install:
In the above example, I've left the original code intact and simply added a test for FALSE which always fails in an if statement. Optionally, you could just remove the entire nested if block like this:
To remove the -more- link
The -more- link is hard-coded into the aggregator_block() function in aggregator.module. One way to remove it is to use preg_replace within the hook_preprocess_block() function of template.php. Here's an example -
The above code seems to work with a standard D6 install. Your mileage may vary.
use css
.more-link {
display:none;
}