我的网站上的某个区块消失了,如何将其恢复?

发布于 2024-10-17 00:43:12 字数 2468 浏览 3 评论 0原文

我拥有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

带刺的爱情 2024-10-24 00:43:12

您将需要了解这一点。

  1. 登录并访问 http://YOURSITE/admin/build/views
  2. 查找此“聚合器”视图和
    单击“导出”链接
  3. 选择整个视图文本并复制它,然后将其粘贴到位于 http:// 的新粘贴中www.pastie.org/ 并链接到它,以便我们可以看到此视图正在寻找哪些分类术语、内容类型等,然后我们将提供一些信息来帮助您:)

编辑:现在我们知道视图中的内容:

该视图取决于 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.

  1. Login and take a little trip over to http://YOURSITE/admin/build/views
  2. look for this "aggregator" view and
    click the "export" link
  3. 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文