2011-03-14 105 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,也許其他人可以提供一個替代方案。

相關問題