callmeroy1 Posted October 25, 2012 Posted October 25, 2012 I have a Read more link on my front page, but when you click it, it opens as a seperate page, with no modules. RES I have another Read more link on a different page, that works correctly. Sixth Form Frontpage They are on different templates, but within the same Joomla install. Can anyone point me in the right direction as to what or where I need to be looking at to change how the Read more link works. Thanks
kili Posted October 25, 2012 Posted October 25, 2012 Are you using two different templates for different pages? Each template is coded differently. You would need to go to the css file for the template that you want to change. There may be a number of css files for any given template. Templates are usually stored in /public_html/templates/name of your template or www/templates/name of your template . You would need to find the appropriate line in the css file something link an onclick event or similar. Download a copy of your template folder before making in changes just in case it goes *** up kili
callmeroy1 Posted October 25, 2012 Author Posted October 25, 2012 I have compared the css files for both templates and they are the same, but only seem to define how the Read more link looks, rather than how it behaves. I have added some Read more links to another section that uses the same template as the Frontpage, and these work fine... Business & Enterprise News It is as if the Frontpage Blog menu option is the problem, rather than the Read more link itself?
kili Posted October 25, 2012 Posted October 25, 2012 I have compared the css files for both templates and they are the same, but only seem to define how the Read more link looks, rather than how it behaves. I have added some Read more links to another section that uses the same template as the Frontpage, and these work fine... Business & Enterprise News It is as if the Frontpage Blog menu option is the problem, rather than the Read more link itself? It sounds as though when you created the link you may have selected an option to open in a new window. Delete the link and create a new one, that may solve your problem. Kili
kili Posted October 25, 2012 Posted October 25, 2012 Looking at your site I see your still on a 1.5 variant. I recommend you upgrade as soon as you can. I also suggest to block attempts on your login page that you password protect /public_html/administrator or www/administrator whichever you use. Kili
callmeroy1 Posted October 25, 2012 Author Posted October 25, 2012 Thank you for your help so far. I inherited the site and am still learning Joomla, so will have to look at upgrading and do a bit of homework. I have had a quick look at blocking the attempts to login and it appears to be an extention option, rather than an inbuilt one, is that right?
kili Posted October 25, 2012 Posted October 25, 2012 Thank you for your help so far. I inherited the site and am still learning Joomla, so will have to look at upgrading and do a bit of homework. I have had a quick look at blocking the attempts to login and it appears to be an extention option, rather than an inbuilt one, is that right? This is nothing to do with Joomla. I assume your on a cpanel server. You would login to Cpanel for your site and set a password for the joomla administrator directory. This creates a .htaccss file in that directory which asks for a password as soon as you try to access http:yoursite/administrator/
callmeroy1 Posted October 27, 2012 Author Posted October 27, 2012 I have found a readmorelink.php file that had the following code... // Get the article URL from $article->readmorelink not is a good idea // Jooma 1.5 don't generate value for readmore_link for some situations // like the frontpage // Thanks to Goran Stetic for discover this bug. //$route=$article->readmore_link; $route=JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catslug, $article->sectionid)); $link=""; $article->text=str_ireplace('{readmorelink}', $link, $article->text); $article->text=str_ireplace('{/readmorelink}', '', $article->text); } else { $article->text=preg_replace('#{readmorelink}(.*?){/readmorelink}#s', '', $article->text); $article->text=str_ireplace('{readmorelink}', '', $article->text); $article->text=str_ireplace('{/readmorelink}', '', $article->text); } But I dont know enough about code to know if this is the problem or how to fix it. The readmore link works on everything other than the frontpage.
kili Posted November 1, 2012 Posted November 1, 2012 I have found a readmorelink.php file that had the following code... // Get the article URL from $article->readmorelink not is a good idea // Jooma 1.5 don't generate value for readmore_link for some situations // like the frontpage // Thanks to Goran Stetic for discover this bug. //$route=$article->readmore_link; $route=JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catslug, $article->sectionid)); $link=""; $article->text=str_ireplace('{readmorelink}', $link, $article->text); $article->text=str_ireplace('{/readmorelink}', '', $article->text); } else { $article->text=preg_replace('#{readmorelink}(.*?){/readmorelink}#s', '', $article->text); $article->text=str_ireplace('{readmorelink}', '', $article->text); $article->text=str_ireplace('{/readmorelink}', '', $article->text); } But I dont know enough about code to know if this is the problem or how to fix it. The readmore link works on everything other than the frontpage. Did you try the suggestion below I made earlier in the thread It sounds as though when you created the link you may have selected an option to open in a new window. Delete the link and create a new one, that may solve your problem. Try it and see what happens. Kili
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now