在旧网站中集成新组件?
我有一个旧网站,我被要求实现一个小型论坛以显示在特定的网站块中。
我已经使用 Drupal 实现了这个论坛,现在我需要将其集成到旧网站中。
我想知道如何集成它:
- 我应该创建旧网站页面的 1 对 1 副本并添加 Drupal 论坛
- ,还是应该使用 iframe 将我的 Drupal 工作包含在原始旧页面中?
最好的方法是什么?
我什至不确定旧网站和新安装的 Drupal 是否会存储在同一台服务器上。
谢谢
I have an old website and I've been asked to implement a small forum to display in a specific website block.
I've implemented this forum with Drupal and now I need to integrate it into the old website.
I was wondering how to integrate it:
- should I just create a 1 to 1 copy of the old website page and add the Drupal forum
- or should I use an iframe to include my Drupal work in the original old page ?
What's the best approach ?
I'm not even sure if the old website and the new Drupal installation is going to be stored on the same server.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不知道您的具体情况,我更愿意在 Drupal 中自定义一个主题以匹配旧站点的视觉设计,复制导航以链接回主站点,然后在导航中添加“论坛”链接旧站点指向新的 Drupal 论坛。该解决方案将使两个站点保持相当独立,并且您无需像在 iframe 中那样担心 Drupal 导航和其他内容的显示。
但这只是一个建议,为了给出正确的答案,我需要更多地了解您的旧网站 - 它使用什么技术等。也许甚至可以将主网站的导航包含到 Drupal 中,而不是复制,从而减少冗余。
Not knowing the details of your situation, I would prefer to customize a theme in Drupal to match the visual design of the old site, copy the navigation to link back to the main site, and then add a "Forum" link to the navigation of the old site pointing to the new Drupal forum. That solution will keep both sites fairly independent, and you won't need to worry about Drupal navigation and other things showing through like you would if you did it in an iframe.
But this is just an advice, to give a proper answer I'd need to know more about your old site - what technology it is using etc. Perhaps it would even be possible to include the main site's navigation into Drupal, instead of copying, thus reducing redundancy.
有很多因素可以决定一个好的方法。
在以下情况下,将旧站点合并到 Drupal 系统中是理所当然的事情:
通过 (Drupal) CMS 维护内容比静态 HTML 文件更简单且更不易出错。
如果您必须创建两个不同的主题并对 Drupal 系统进行分区,那么它会变得更加复杂,但是当然是可行的! Drupal 具有一些强大的多站点功能。
如果您必须合并多个主题或将其实现为多站点,那么您可以查看域 或 部分 模块
There can be a lot of factors that may determine a good approach.
It's a no brainer to combine the old site into the Drupal system when:
Maintaining content through a (Drupal) CMS can be much simpler and less error prone than static HTML files.
If you have to create two different themes and section the Drupal system it becomes more involved, but, of course, doable! Drupal has some powerful multi-site capabilities.
If you have to incorporate multiple-themes or implement it as a multi-site then you might look at the Domain or Sections modules
只需在 Drupal 中完成所有事情,您将需要更少的维护工作,并且可以为以后的更改实现一致性。
Just do the whole thing in Drupal, you'll have less to maintain and you'll achieve consistency for later changes.