php - Magento static blocks disappear on homepage when query parameters present -
i'm quite new magento , i'm trying understand what's happeing static blocks on homepage of 1 of our clients (http://www.coveops.com). when query parameters passed (like ?utm_source...), static blocks disappears.
see http://www.coveops.com/?asdf vs http://www.coveops.com/ in between slider , bottom tripplet gone.
there many things causing this. first step figure out how content being rendered.
- log in magento admin backend
- go system->configuration
- scroll bottom , click advanced->developer
- in dropdown menu on top-left, select store view loading on homepage
- expand "debug" section, uncheck "use website", , set "profiler", "template path hints", , "add block names hints" yes
now when reload http://www.coveops.com (or dev server instead), should see red highlight around each block displaying information on how block rendered.
one piece of information path template file being rendered, example:
frontend/base/default/template/page/html/breadcrumbs.phtml
you can find file starting in app/design directory.
the other piece of information available there class name of block that's calling template file, example:
mage_page_block_html_breadcrumbs
these class names follow format:
namespace_modulename_block_path_to_blockname
so above example found in:
app/code/core/mage/page/block/html/breadcrumbs.php
once you've identified block , template in filesystem, can read code , reasons why block wouldn't load when parameters present in url. ?asdf being taken argument method in block, , it's causing method change output, or output nothing.
another place might in admin backend, under cms->pages->manage content, or cms->static blocks.
Comments
Post a Comment