php - Magento - render phtml template file from layout update xml -


i'm putting first magento theme. wee.

this site have large number of static pages, , i'm trying determine best method of getting content system in maintainable way. ideally, process can managed team member limited experience in magento (this key point).

aside these 2 main methods of including static "page" content:

  • 1 - save page-content cms static block, added category page
  • 2 - save page-content cms page

it seems should able render phtml template file (with page-content real markup) combination of layout update xml directives (in cms page / category page), or widget type of include.

assuming file structure looks this:

/my_theme      /default      /varient           /template                /cms                     /template                          /category1                               /category2                                    - page_content.phtml 

i've tried planting file cms page via number of variations on:

<reference name="content">      <block type="core/template" name="content.current" as="content.current" output="tohtml" template="cms/template/category1/category2/page_content.phtml" </reference> 

in layout update xml.

alternatively, i've tried render file via content directives like:

{{block type="core/template" name="content.current" template="cms/template/category1/category2/page_content.phtml"}} 

with (obviously) no luck far.

granted - there maybe reasons not deal static content in way, may still viable alternative 2 steps mentioned (image , link pathing, example).

at rate - believe combination of update xml or content directives should workable, i'm still getting head around magento layout , haven't figured out correct method.

any advice or explanations grand.

cheers -

b[]x

for future overflowers looking figure out:

{{block type='core/template' template='cms/template/category1/category2/page_content.phtml'}} 

works sure. tried morning without name attribute , viola.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -