Custom templates not working after upgrade
wxman - October 24, 2009 - 19:33
| Project: | Amazon Module |
| Version: | 6.x-1.0-beta10 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
After I upgraded to beta10, my custom tpl file no longer worked. I was hoping someone might know where the change was that caused them to start failing?
What I had was template file to make images show up either on the right or the left. I did that creating a custom tpl called amazon-item-mediumleft.tpl.php that looked like :
<div class="<?php print $classes; ?>">
<?php print $mediumimage; ?>
<div class="caption"><?php print l('See this at Amazon', $detailpageurl); ?></div>
</div>Then I just made a CSS class, amazon-item-mediumleft, and customized that. All I needed to do then was include "[amazon 0875886124 mediumleft]" in the text, and it placed it exactly the way I wanted.
Since the upgrade I get "mediumleft not found for 0875886124" showing up on the page. Any ideas what changed, and is there anyway for me to salvage my nice neat custom tpl's? If not, I'm sure I can work something else out. This way was just so easy to use.

#1
I have no idea how this could have worked before, but I can tell you why it doesn't now: Many, many new filters were added in beta10. 'mediumleft' would be one of them, but it is not.
Your problem has nothing to do with the tpl.php. It has to do with the filter usage. You need to use a filter that works. Filter documentation is on the documentation page at http://drupal.org/node/595464#filters
I'm setting this to fixed, reopen it if you need more help.
#2
Thanks.
I'm getting around it by using the thumbnail filter, with a slightly modified copy of it's tpl. When I add the filter code to a page, I surround it with a div, then set a custom style to make it left or right aligned. It works the same, just added a step.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.