Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 4:46 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
Posted: Tue Sep 01, 2009 5:32 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Jul 06, 2006 8:30 am
Posts: 758
Location: Sacramento
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

_________________
Watch the 10 Minute Joomla! Tips Video Podcast
Itunes: itpc://10minutejoomlatips.blip.tv/rss/itunes
Feedburner http://feeds.feedburner.com/10MinutesJoomlaTips
Want your questions featured on the podcast? conticreative.com/questions.html


Top
   
 
Posted: Thu Sep 03, 2009 11:49 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Feb 06, 2006 12:53 am
Posts: 103
Location: Netherlands
When using ftp

remove the org file.
then place your override version.

ftp sometimes don't override the org file in my experiance.

From the rest of your story i can't see why this doesn't work.

you edited /templates/beez/com_weblinks/view...
this file is used to override the default view in components\com_weblinks\...

- are you using beez as a template on your test site ?

_________________
http://www.Quinie.nl
http://www.Loungecafe.net


Top
   
 
Posted: Thu Sep 03, 2009 10:59 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Jul 06, 2006 8:30 am
Posts: 758
Location: Sacramento
Actually, I am not using FTP at all.
I have a test site based on the Beez template which I am using for an SEO themed screenast I am working on.
The site is hosted locally on my Mac OS X Machine where I use MAMP as a local web server.
The way I am moving the files is either through the Local finder or over the network from my Vista 64 machine. No FTP is involved.
I cannot publish the site yet because it's local, but I may try to upload it to my dedicated server and see how it works there, just for kicks.

According to the way the overrideds have been working for me so far, I see no reason why this one should not work either, but it doesn't.

I will do more tests later today and I'll report my results.
Thanks

_________________
Watch the 10 Minute Joomla! Tips Video Podcast
Itunes: itpc://10minutejoomlatips.blip.tv/rss/itunes
Feedburner http://feeds.feedburner.com/10MinutesJoomlaTips
Want your questions featured on the podcast? conticreative.com/questions.html


Top
   
 
Posted: Thu Nov 05, 2009 2:59 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Nov 03, 2006 1:12 pm
Posts: 22
it works,you are editing the correct line but you put the no-follow in wrong place,if you put it after class tag it will work :))

_________________
Web Design
Χανια


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Quick reply

 



Who is online

Users browsing this forum: algis, chelseakent, rbisrxx85 and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group