How to display html content in block in Drupal 6?



如何将外部(来自服务器)html内容显示到块区域中。

让我告诉你,到目前为止我所做的是,我在我的网站上创建了一个名为sitemap的新块,并放入了一些php代码

<?php include('../sitemap/sitemap.html'); ?>

并将该块区域设置为页脚。

但它什么都没显示,所以请帮帮我,我就这么做了。

可能include文件路径错误。为了获得更好的结果,您可以将该文件放在主题文件夹中并将其命名为

<?php include(path_to_theme().'/sitemap.html'); ?>

最新更新