I am pretty familiar with overrides but there seems to be always one or two that don;t seem to work as intended.
I was reading this post:
http://forum.joomla.org/viewtopic.php?f=544&t=333507&p=1832764#p1832764 and immediately I thought to myself: "this is a job for the override"!
Since I am working on SEO screencast for Joomla I figured I would ad this as an example.
The idea in the post is to add a rel="nofollow" to the output of com_weblinks. In the post one of the responders reccomends the following:
Go to com_weblinks folder and edit weblinks.html.php
Quote:
Change this
Code:
Code:
// open in a new window
$item->link = '<a href="'. $link .'" target="_blank" class="'. $menuclass .'">'. $this->escape($item->title) .'</a>';
So I went to work on a local built of Beez I am running on my Mac and in short order I found that the file the original post identified as weblinks.html.php as somehow been changed to view.html.php
No matter, the code is the same and by making the change to the core file in the components directory I was able to have the change stick.
Then I went to add the file to the Beez template I am using on the test site and the change would not take. I tried several ways, but it seems that my built is ignoring any change I make to that file.
In other words, I copied view.html.php and I placed it in the com_weblinks directory inside the beez/html/ directory. I can't see any reason why it would not work, but it doesn't.
Am I doing something wrong? I should add that I use the overrides frequently and they usually work fine. For instance, when I use third party modules that don;t have the override built in I am able to add it by inserting
Code:
require(JModuleHelper::getLayoutPath('mod_feed'));
at the end of the page. However, for components I wasn't able to find an equivalent snippet to accomplish the same thing (give override abilities to a page).
Any reason why this override is not working? Thank you