Invalid Blocktype template
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
I try to help a user on magento.stackexchange. So I created his extension and created a new CMS site with the following content:
block type="atwix/cmsattr" template="atwix/cmsattr/list.phtml"
I also allowed the block in the backend at (System -> Permissions -> Blocks).
But if I call the site, then there is no output from the block.
app/code/local/Atwix/Cmsattr/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Atwix_Cmsattr>
<version>0.1.0</version>
</Atwix_Cmsattr>
</modules>
<global>
<blocks>
<atwix_cmsattr>
<class>Atwix_Cmsattr_Block</class>
</atwix_cmsattr>
</blocks>
<models>
<atwix_cmsattr>
<class>Atwix_Cmsattr_Model</class>
</atwix_cmsattr>
</models>
</global>
</config>
app/code/local/Atwix/Cmsattr/Block/List.php
<?php
class Atwix_Cmsattr_Block_List extends Mage_Catalog_Block_Product_Abstract
protected $_itemCollection = null;
public function getItems()
$color = $this->getColor();
if (!$color)
return false;
if (is_null($this->itemCollection))
$this->_itemCollection = Mage::getModel('atwix_cmsattr/products')->getItemsCollection($color);
return $this->_itemCollection;
app/design/frontend/rwd/default/template/atwix/cmsattr/list.phtml
I replaced his template content with "hello world"
What is going on?
magento-1.9 blocks extensions cms
add a comment |Â
up vote
1
down vote
favorite
I try to help a user on magento.stackexchange. So I created his extension and created a new CMS site with the following content:
block type="atwix/cmsattr" template="atwix/cmsattr/list.phtml"
I also allowed the block in the backend at (System -> Permissions -> Blocks).
But if I call the site, then there is no output from the block.
app/code/local/Atwix/Cmsattr/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Atwix_Cmsattr>
<version>0.1.0</version>
</Atwix_Cmsattr>
</modules>
<global>
<blocks>
<atwix_cmsattr>
<class>Atwix_Cmsattr_Block</class>
</atwix_cmsattr>
</blocks>
<models>
<atwix_cmsattr>
<class>Atwix_Cmsattr_Model</class>
</atwix_cmsattr>
</models>
</global>
</config>
app/code/local/Atwix/Cmsattr/Block/List.php
<?php
class Atwix_Cmsattr_Block_List extends Mage_Catalog_Block_Product_Abstract
protected $_itemCollection = null;
public function getItems()
$color = $this->getColor();
if (!$color)
return false;
if (is_null($this->itemCollection))
$this->_itemCollection = Mage::getModel('atwix_cmsattr/products')->getItemsCollection($color);
return $this->_itemCollection;
app/design/frontend/rwd/default/template/atwix/cmsattr/list.phtml
I replaced his template content with "hello world"
What is going on?
magento-1.9 blocks extensions cms
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I try to help a user on magento.stackexchange. So I created his extension and created a new CMS site with the following content:
block type="atwix/cmsattr" template="atwix/cmsattr/list.phtml"
I also allowed the block in the backend at (System -> Permissions -> Blocks).
But if I call the site, then there is no output from the block.
app/code/local/Atwix/Cmsattr/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Atwix_Cmsattr>
<version>0.1.0</version>
</Atwix_Cmsattr>
</modules>
<global>
<blocks>
<atwix_cmsattr>
<class>Atwix_Cmsattr_Block</class>
</atwix_cmsattr>
</blocks>
<models>
<atwix_cmsattr>
<class>Atwix_Cmsattr_Model</class>
</atwix_cmsattr>
</models>
</global>
</config>
app/code/local/Atwix/Cmsattr/Block/List.php
<?php
class Atwix_Cmsattr_Block_List extends Mage_Catalog_Block_Product_Abstract
protected $_itemCollection = null;
public function getItems()
$color = $this->getColor();
if (!$color)
return false;
if (is_null($this->itemCollection))
$this->_itemCollection = Mage::getModel('atwix_cmsattr/products')->getItemsCollection($color);
return $this->_itemCollection;
app/design/frontend/rwd/default/template/atwix/cmsattr/list.phtml
I replaced his template content with "hello world"
What is going on?
magento-1.9 blocks extensions cms
I try to help a user on magento.stackexchange. So I created his extension and created a new CMS site with the following content:
block type="atwix/cmsattr" template="atwix/cmsattr/list.phtml"
I also allowed the block in the backend at (System -> Permissions -> Blocks).
But if I call the site, then there is no output from the block.
app/code/local/Atwix/Cmsattr/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Atwix_Cmsattr>
<version>0.1.0</version>
</Atwix_Cmsattr>
</modules>
<global>
<blocks>
<atwix_cmsattr>
<class>Atwix_Cmsattr_Block</class>
</atwix_cmsattr>
</blocks>
<models>
<atwix_cmsattr>
<class>Atwix_Cmsattr_Model</class>
</atwix_cmsattr>
</models>
</global>
</config>
app/code/local/Atwix/Cmsattr/Block/List.php
<?php
class Atwix_Cmsattr_Block_List extends Mage_Catalog_Block_Product_Abstract
protected $_itemCollection = null;
public function getItems()
$color = $this->getColor();
if (!$color)
return false;
if (is_null($this->itemCollection))
$this->_itemCollection = Mage::getModel('atwix_cmsattr/products')->getItemsCollection($color);
return $this->_itemCollection;
app/design/frontend/rwd/default/template/atwix/cmsattr/list.phtml
I replaced his template content with "hello world"
What is going on?
magento-1.9 blocks extensions cms
magento-1.9 blocks extensions cms
edited 14 mins ago
Prince
6,2902934
6,2902934
asked 6 hours ago
Black
14416
14416
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
4
down vote
accepted
- Verify the module is enabled in
app/etc/modules
and inSystem/Configuration/Advanced
- You did the permissions change
block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"
That should do the trick.
add a comment |Â
up vote
0
down vote
I solved it. I had to use
block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
- Verify the module is enabled in
app/etc/modules
and inSystem/Configuration/Advanced
- You did the permissions change
block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"
That should do the trick.
add a comment |Â
up vote
4
down vote
accepted
- Verify the module is enabled in
app/etc/modules
and inSystem/Configuration/Advanced
- You did the permissions change
block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"
That should do the trick.
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
- Verify the module is enabled in
app/etc/modules
and inSystem/Configuration/Advanced
- You did the permissions change
block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"
That should do the trick.
- Verify the module is enabled in
app/etc/modules
and inSystem/Configuration/Advanced
- You did the permissions change
block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"
That should do the trick.
edited 27 mins ago
Prince
6,2902934
6,2902934
answered 6 hours ago
Herve Tribouilloy
52927
52927
add a comment |Â
add a comment |Â
up vote
0
down vote
I solved it. I had to use
block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"
add a comment |Â
up vote
0
down vote
I solved it. I had to use
block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I solved it. I had to use
block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"
I solved it. I had to use
block type="atwix_cmsattr/list" template="atwix/cmsattr/list.phtml"
answered 6 hours ago
Black
14416
14416
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f242391%2finvalid-blocktype-template%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password