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

Page 4 of 4
Templating Magento… Useful Techniques & Tools
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

If you want to see titles for all the templates without changing files:
in app/code/core/Mage/Core/Block/Template.php in fetchView method:

///...
public function fetchView($fileName)
///...
// insert this right before `include $this->_viewDir.DS.$fileName`
        
echo '<h2>'.$fileName.'</h2>';
// end edit, put your own formatting for H2 titles
        
include $this->_viewDir.DS.$fileName;
///...
 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

You can also put some margin, border and padding around templates to highlight the boundaries:

///...
public function fetchView($fileName)
///...
// insert this right before `include $this->_viewDir.DS.$fileName`
        
echo '<div style="margin:2px; padding:2px; border:dotted 1px red;">';
// end edit
        
include $this->_viewDir.DS.$fileName;
// start edit
        
echo '</div>';
// end edit
///...
 
Magento Community Magento Community
Magento Community
Magento Community
 
Hube02
Jr. Member
 
Total Posts:  6
Joined:  2008-08-30
 

What happened with this? Was just getting interesting…

Was this posted somewhere else? This is some of the only information that I found to be actually helpful, where can I find the conclusion?

 
Magento Community Magento Community
Magento Community
Magento Community
 
TapTapper
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2008-09-23
Hudson Valley, NY, US
 
Hube02 - 30 August 2008 06:51 AM

What happened with this? Was just getting interesting…

Was this posted somewhere else? This is some of the only information that I found to be actually helpful, where can I find the conclusion?

YEAH!!  What he said.  I just found this today.  Where did all of you go??

Maybe someone sent the posters PM death threats for spilling too many Mage secrets.

 
Magento Community Magento Community
Magento Community
Magento Community
 
fastboxgaming
Sr. Member
 
Avatar
Total Posts:  101
Joined:  2008-10-11
 

I understand how your layout tells the block whether to show up on the left or right etc… but how do you define which order the blocks on the left will show up in?

 
Magento Community Magento Community
Magento Community
Magento Community
 
fastboxgaming
Sr. Member
 
Avatar
Total Posts:  101
Joined:  2008-10-11
 

I understand that the in the phtml file that you can define where the blocks in your xml file will show up at. Left, right, etc. How do you define what order all the blocks on the left will show up in?

Joel

 
Magento Community Magento Community
Magento Community
Magento Community
 
cushionguru
Jr. Member
 
Total Posts:  19
Joined:  2008-08-04
 

I have been battling my way through Magento and the above post is great. I have a huge list of things that I have need to achieve that I have searched for in the forums for hours and have them all [ badly organized] in a text file.

It lists instructions of how to and where to find code in files on many topics ..like the following…

Left and Right Call outs
Wholesale prices - hiding until logon
many CSS changes - some tricky ones that are not easy to find in Firebug
changing layout of product view for different categories
Hide recently viewed, compare etc
TAKE OUT (’Report All Bugs’)
Edit the dog and back to school
Static Blocks
Hide add to cart button
Remove Stock Availability
REDUCE PICTURE SIZE IN CATEGORY
REmove “customer service 24 hours etc”
Hide ProductCount in layered Navigation SHOP BY
Wholesale ACCOUNT APPROVAL SYSTEM
IP ADDRESS CHANGE - moving a temporary site
edit email templates
DELETE DISCOUNT CODE
change the color of the text “Search Entire Store Here”
How Do I Hide Price and Add To Cart always for certain product categories
TAKE OUT COMPARE in product VIEW

if this info would be of interest to someone, i would be happy to give it to them and perhaps it could be posted on the wiki..

Kit

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 4 of 4