2011-03-14 75 views
0

我有一个网站,其中首页包含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

基本上,为内容创建块。您可能需要在主题中添加区域,然后才能为其分配块。但是,如果您想在块中添加节点列表,视图就是要走的路。如果你能解释为什么你要避免Views,也许其他人可以提供一个替代方案。