Magento Template 

There are a lot of ways to add a new template to Magento. Adding a CMS Page Template in Magento, however, is a pretty simple process. Using the following configuration on your /app/etc/local.xml file in the “global” section will add a template to your CMS Page Design tab:

<cms>
    <layouts>
        <redirect>
            <label>Homepage Template</label>
            <template>page/home.phtml</template>
        </redirect>
    </layouts>
</cms>

Configuration Example

Magento template

Magento Template

Example of Page Edit

magento template

 

To learn more about basic software, visit the Wikipedia page below:

https://en.wikipedia.org/wiki/Software

Magento

Magento

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Many people will say that this is because the file exists: /var/www/html/maintenance.flag
Our ecommerce development team found that this will occur if you are using APC for PHP optimization, disable APC, and forget to remove:

<cache>
<backend>apc</backend>
<prefix>my_magento_</prefix>
</cache>

from /var/www/html/app/etc/local.xml file.
You can remove the from the local.xml file with comments:

<!—
<cache>
<backend>apc</backend>
<prefix>my_magento_</prefix>
</cache
–>

For help with your Magento site right now, call right now. 314.333.3330

 

 

XML 

XML Element or Attribute-Centric?

There are numerous articles on the web discussing the advantages and disadvantages of attribute-centric versus element-centric XML. Most correctly come to the conclusion that “it depends” and provide criteria that tend to weight the answer in one direction or the other.

Attribute-Centric

My contribution to those criteria is this: If an element is logically similar to a database record, and may in fact have come from a database row, or may eventually be stored in a database row, use attribute-centric.

We know without looking at any schema that each attribute will at most once and maps to a column.

Element-Centric

With element-centric data, we don’t as easily know whether an element that occurs once is just occurring once for this particular parent element or whether it may occur multiple times for some other parent.

While a schema will tell us that, using attribute-centric XML for record-like data makes its nature obvious and clear and, in my experience, easier to parse.

For learn how Acumen can help with your other IT needs, contact us today!