0

I'm quite new to Magento and I'm trying to understand what'S happeing with the static blocks on the homepage of one of our clients (http://www.coveops.com). When query parameters are passed (like ?utm_source...), the static blocks simply disappears.

See for yourself http://www.coveops.com/?asdf vs http://www.coveops.com/ anything in between the slider and the bottom tripplet is gone.

werfu
  • 382
  • 1
  • 11
  • how you call the static block on home page?can you paste the code? – monojit Sep 24 '13 at 18:45
  • I'm digging into the theme but I can't seem to find where it's defined. – werfu Sep 24 '13 at 19:58
  • turn on the template path hints from admin and check from which page your block is coming on home page.After-that you can check why it's not coming after query parameters passed on url. – monojit Sep 25 '13 at 04:46

1 Answers1

0

There are many things that could be causing this. The first step is to figure out how that content is being rendered.

  1. Log in to your Magento admin backend
  2. Go to System->Configuration
  3. Scroll to the bottom and click Advanced->Developer
  4. In the dropdown menu on the top-left, select the store view that is loading on your homepage
  5. Expand the "Debug" section, uncheck "Use Website", and set "Profiler", "Template Path Hints", and "Add Block Names to Hints" to Yes

Now when you reload http://www.coveops.com (or hopefully your dev server instead), you should see a red highlight around each block displaying information on how that block was rendered.

One piece of information is the path to the template file being rendered, for example:

frontend/base/default/template/page/html/breadcrumbs.phtml

You can find that file starting in the app/design directory.

The other piece of information available there is the class name of the block that's calling the template file, for example:

Mage_Page_Block_Html_Breadcrumbs

These class names follow the format:

Namespace_Modulename_Block_Path_To_Blockname

So the above example would be found in:

app/code/core/Mage/Page/Block/Html/Breadcrumbs.php

Once you've identified the block and the template in your filesystem, you can read the code and look for reasons why the block wouldn't load when parameters are present in the URL. Most likely ?asdf is being taken as an argument to a method in the block, and it's causing that method to change its output, or output nothing.

Another place to look might be in your admin backend, under CMS->Pages->Manage Content, or CMS->Static Blocks.

Adelmar
  • 2,073
  • 2
  • 20
  • 20