Skip to content

Instantly share code, notes, and snippets.

@ceckoslab
Created December 3, 2012 10:39
Show Gist options
  • Save ceckoslab/4194134 to your computer and use it in GitHub Desktop.
Save ceckoslab/4194134 to your computer and use it in GitHub Desktop.
Detect AW_Blog detect cat and post view actions
$action = Mage::app()->getFrontController()->getAction();
/* Detect blog category view page */
if ($action->getFullActionName() == 'blog_cat_view') {
bla bla bla
}
/* Detect blog post view page */
if ($action->getFullActionName() == 'blog_post_view') {
bla bla bla
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment