我拥有一个出售贺卡的网站thedollies.com.au。我让程序员帮我构建网站。 在主页上,有4个类别:推荐,最新消息,讨论和DailyBread。有一天,DailyBread类别消失了。 请帮我带回来。
我发现此DailyBread类别的部分名为aggregator-block_1。 我在我的网站脚本中搜索了aggregator-block_1并找到了几个位置:
1)第一个是名为utilities.js的文件。内容:
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)我也在一个名为dollies.css的文件中找到它,我相信这是我网站的主要css文件:
#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:35px;
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;
}
我不确定应该将DailyBread类别带回主页。 或者MySQL条目有问题吗?我什么都没做,这个类别突然消失了。
答案 0 :(得分:1)
你需要进入这个视图。
编辑:现在我们知道视图中的内容:
视图取决于Feeds Aggregator,管理聚合器项目转到:
http://YOURSITE/admin/content/aggregator/list
视图创建一个名为Aggregator的块,要管理块,请转到:
http://YOURSITE/admin/build/block
干杯