Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Explain to me
 
rEda
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2008-08-08
 

Hi,

Someone can explain to me the maining of this ??

{{block type="page/test" name="......" alias ="..........." template="................"}}

thank you

 
Magento Community Magento Community
Magento Community
Magento Community
 
nikefido
Guru
 
Avatar
Total Posts:  481
Joined:  2008-07-11
New Haven, CT
 

well..without the periods and with actual data, that’s what you put in CMS pages (via the Admin) to have it show a pre-defined block.

In that case, the controlling Block php file will be in app/code/core/Mage/Page/test
The most important attributes are TYPE which tells you what block is being used, and TEMPLATE which tells you which .phtml file is being used to output the HTML / code from the php file.

 
Magento Community Magento Community
Magento Community
Magento Community
 
rEda
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2008-08-08
 

thank you once again for your response nikefido,

In the thread : http://www.magentocommerce.com/boards/viewthread/14663/ , where you answer my question about the code,

the php block is in : app\code\local\Reda\Custom\Block\Test.php
and le code in CMS page is :

{{block type="reda_custom/test" }}

thank you

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top