views模块生成的菜单ID 会因升级而变

最近一段时间drupal的一些热门模块频繁升级,快招架不住了。升级固然是好事,但是带来的工作量也是沉重的。

在我维护的一个drupal站点,主菜单的一部分路径是通过views模块查询生成的,我使用了CSS定义了图片代替文字的方法,经过2次对views模块的升级,每次升级后总是无法显示图片,查看源代码后发现,菜单的ID变了,由最初的1xx变到3xx了,实在搞不懂升级模块会影响到菜单的ID,如此下去,还是要趁早将菜单路径改成固定的链接路径,免得每次升级都要修改CSS代码。

评论

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <img> <em> <del> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h4> <h5> <h6>
  • 自动断行和分段。
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.