如何在 Drupal 6 的主页上嵌入节点?

发布于 2024-09-03 00:45:17 字数 255 浏览 3 评论 0原文

如何在 Drupal 6 的首页上嵌入节点。该节点基本上具有图像上传字段以及标题和描述。我希望它以某种方式出现在主页上,并在底部显示上传的图像的“视图”。

我想要的是让用户能够创建现在可以在.../node/photo/add 获取的内容。我想以某种方式显示这个框,它可以让人们创建内容,即在主页上上传带有标题和描述的照片。

它基本上只是尝试创建类似 imageshack 的东西作为实验。

当谈到 drupal 时,我非常菜鸟,所以请更具描述性。

How can I embed a node on the front page in Drupal 6. The node basically has the image upload field along with title and description. I want it to some how appear on the homepage alongwith a "views" which shows the uploaded images at the bottom.

What I want is to give the users an ability to create content which is right now available at .../node/photo/add. I want to somehow show this box which lets one create content i.e. upload photo with title and description on the homepage.

It's basically just an attempt at creating something like imageshack as an experiment.

I am pretty n00b when it comes to drupal so please be more descriptive.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

谈下烟灰 2024-09-10 00:45:17

Jukebox 的解决方案采用点击式方法。如果你想用代码来完成,它更像是这样:

Jukebox's solution works as a point-and-click method. If you want to do it with code, it's more like this:

亚希 2024-09-10 00:45:17

您可以使用节点块模块将您的节点变成一个块。这意味着您可以转到 /admin/build/block 页面并将您的节点放置在特定区域中。

安装模块后,编辑要转为块的节点的内容类型。在“工作流程设置”下的“可用作块”下,选择“启用”。

现在你可以转到/admin/build/block,你可以看到一些新的块。只需选择您想要的并将其放置在您选择的区域即可。您还可以从那里配置该块的可见性设置。

You can use the Node Blocks module to, well, turn your node into a block. This means that you can go to the /admin/build/block page and place your node in a particular region.

After installing the module, edit the Content Type of the node you want to turn into a block. Under Workflow Settings, Available As Block, choose Enable.

Now you can go to /admin/build/block and you can see some new blocks. Just choose the one you want and place it in the region of your choice. You can also configure that block's visibility settings from there as well.

桜花祭 2024-09-10 00:45:17

如果您计划在将来的任何时候拥有更复杂的主页,我强烈建议您使用面板 来执行此操作。它将允许您以网格方法排列带有视图和节点的首页。

If your planning on having a more complicated home page at any point in the future I'd highly recommend using Panels to do this. It will allow you to arrange your front page with views and nodes in a grid method.

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