在首页显示动态块而不是静态?

时间:2011-03-14 10:27:24

标签: drupal-6 content-type

我有一个网站,其中首页包含4个文本块,基本上是一个小的介绍框。这些盒子包含静态数据。我现在想要的是将这些框转换为内容,并可以从管理员更改其框。基本上使网站更加用户友好。这些框包含标题,小缩略图和小描述。我创建了一个内容类型,其中我有标题字段,正文字段和1个图像附加选项。我可以在不使用视图的情况下以我想要的方式显示它们。

                        <?php if($messages) print $messages; ?>
                        <div class="content_left">
                        <div class="block1">
                            <h4 class="title-storefront">Gorgeous Storefront</h4>
                                Each Shopify store comes with a variety of beautiful themes to choose from.Each Shopify store comes with a variety of beautiful themes to choose from.Each Shopify store comes with a variety of beautiful themes to choose from.Each Shopify store comes with a variety of beautiful themes to choose from.Each Shopify store comes with a variety of beautiful themes to choose from.</div>
                            <div class="block1">
                            <h4 class="title-customizable">100% Customizable</h4>
                                Use your own HTML &amp; CSS and have complete control over the look and feel of your online store.Use your own HTML &amp; CSS and have complete control over the look and feel of your online store.Use your own HTML &amp; CSS and have complete control over the look and feel of your online store.Use your own HTML &amp; CSS and have complete control over the look and feel of your online store.
                        </div>
                        </div>
                        <div class="content_right">
                            <div class="block1">
                            <h4 class="title-shoppingcart">Shopping Cart</h4>
                                Your online store will have its own shopping cart and streamlined checkout.Your online store will have its own shopping cart and streamlined checkout.Your online store will have its own shopping cart and streamlined checkout.Your online store will have its own shopping cart and streamlined checkout.Your online store will have its own shopping cart and streamlined checkout.
                        </div>
                            <div class="block1">
                            <h4 class="title-secure">Super Secure</h4>
                                 We have a dedicated team of security experts that make sure your e-commerce site is as secure as possible.We have a dedicated team of security experts that make sure your e-commerce site is as secure as possible.We have a dedicated team of security experts that make sure your e-commerce site is as secure as possible.We have a dedicated team of security experts that make sure your e-commerce site is as secure as possible.
                        </div>
                        </div>
                      </div> <!-- /#content-area -->

如何分别打印内容的标题,图像和说明。

1 个答案:

答案 0 :(得分:1)

从根本上说,为内容创建块。您可能需要在主题中添加区域,然后可以为其分配块。但是,如果您希望在块中添加节点列表,则可以使用“视图”。如果你能解释为什么你要避免观点,也许其他人可以建议另一种选择。

相关问题