I own a thedollies.com.au, a website selling greeting cards. I had programmers help me build the site. On the homepage, there were 4 categories: Testimonials, Latest News, Discussions and DailyBread. One day, the DailyBread category disappeared. Please help me bring it back.
I found that the portion for this DailyBread category is named aggregator-block_1. I searched my site's script for aggregator-block_1 and found a few locations:
1) The first is in a file named utilities.js. The content:
Drupal.utilities = {};
Drupal.behaviors.utilities = function() {
$("#block-views-aggregator-block_1 .view-aggregator a").attr("target","_blank");
$("#block-views-aggregator-block_1 .view-aggregator .dailynews-more a").removeAttr("target");
}
2) I also found it in a file named dollies.css, which I believe is my site's main css file:
#block-views-dollies_blog_view-block_1,#block-views-dollies_blog_view-block_2{
float:left;
width:230px;
}
#block-views-dollies_blog_view-block_3,#block-views-aggregator-block_1{
float:left;
width:230px;
}
.view-dollies-blog-view,.view-id-aggregator{
padding:5px 0 0 25px;
}
.view-dollies-blog-view a,#block-views-aggregator-block_1 a{
padding-left:8px;
margin-top:-5px;
font-size:10px;
font-weight:bold;
text-decoration:none;
}
#block-views-dollies_blog_view-block_3 a{
background:url(../images/news_b.png) no-repeat;
background-position:left center;
color:#7f3c9b;
}
#block-views-dollies_blog_view-block_1 a{
background:url(../images/test_b.png) no-repeat;
background-position:left center;
color:#1e6fc9;
}
#block-views-dollies_blog_view-block_2 a{
background:url(../images/dis_b.png) no-repeat;
background-position:left center;
color:#fa4365;
}
#block-views-aggregator-block_1 a{
background:url(../images/bread_b.png) no-repeat;
background-position:left center;
color:#24946e;
}
#block-views-aggregator-block_1 h2.title{
height:30px;
background:url(../images/bread.png) no-repeat;
text-indent:-999em;
}
#block-views-dollies_blog_view-block_3 h2.title{
height:3开发者_开发百科5px;
background:url(../images/news.png) no-repeat;
text-indent:-999em;
}
#block-views-dollies_blog_view-block_1 h2.title{
height:35px;
background:url(../images/testimonials.png) no-repeat;
text-indent:-999em;
}
#block-views-dollies_blog_view-block_2 h2.title{
height:30px;
background:url(../images/discussion.png) no-repeat;
text-indent:-999em;
}
#block-views-dollies_blog_view-block_3 .news-more a,#block-views-dollies_blog_view-block_1 .more a,#block-views-aggregator-block_1 .dailynews-more a,#block-views-dollies_blog_view-block_2 .discussion-more a{
background:none;
}
I'm not sure what I should change to bring the DailyBread category back to the homepage. Or is there something wrong with a MySQL entry? I didn't do anything and this category just suddenly disappeared.
You're going to need to get into views for this one.
- Login and take a little trip over to http://YOURSITE/admin/build/views
- look for this "aggregator" view and click the "export" link
- Select the entire view text and copy it, then paste it into a new pastie over at http://www.pastie.org/ and link to it so we can see what taxonomy terms, content types etc this view is looking for, then we'll have some info to be able to help you :)
Edit: Now that we know what is in the view:
The view depends on the Feeds Aggregator, to manage Aggregator Items go to:
http://YOURSITE/admin/content/aggregator/list
The view creates a block called Aggregator, To manage blocks go to:
http://YOURSITE/admin/build/block
Cheers
精彩评论