我的网站上的某个区块消失了,如何将其恢复?
我拥有 thedollies.com.au,一个销售贺卡的网站。我让程序员帮助我构建该网站。 主页上有四个类别:感言、最新消息、讨论和每日面包。有一天,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条目有问题?我什么都没做,这个类别就突然消失了。
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: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;
}
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将需要了解这一点。
单击“导出”链接
编辑:现在我们知道视图中的内容:
该视图取决于 Feeds 聚合器,要管理聚合器项目,请访问:
http: //YOURSITE/admin/content/aggregator/list
该视图创建一个名为 Aggregator 的块,要管理块,请转到:
http://YOURSITE/admin/build/block
干杯
You're going to need to get into views for this one.
click the "export" link
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