- Posts: 40
COMMUNITY FORUM
Read more always shown
- Bart Pluijms
-
Topic Author
- Offline
- Senior Member
Less
More
15 years 8 months ago #70719
by Bart Pluijms
Read more always shown was created by Bart Pluijms
Hello,
I can't find if there is another topic about this, but I have a problem after installing the latest version of K2 at a couple of sites. I upgraded from the prelease.
Below ALL articles the "read more" link is displayed, even if there is NO fulltext.
How to fix this?
I can't find if there is another topic about this, but I have a problem after installing the latest version of K2 at a couple of sites. I upgraded from the prelease.
Below ALL articles the "read more" link is displayed, even if there is NO fulltext.
How to fix this?
Please Log in or Create an account to join the conversation.
- Bart Pluijms
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 40
15 years 8 months ago #70720
by Bart Pluijms
Replied by Bart Pluijms on topic Read more always shown
No one else with the same problem? And nobody a sollution for this problem? I have this problem on 2 sites now, both after a upgrade.
Please Log in or Create an account to join the conversation.
- Erebrum
-
- Offline
- Junior Member
Less
More
- Posts: 30
15 years 8 months ago #70721
by Erebrum
Replied by Erebrum on topic Read more always shown
Lo
i think that read more is not based on part if there is a "intro" and "full" text in article. "Read more" is workin like on/off switch. You can enable it or disable it, and if you have in mind that you have option for link in title sometimes it is not needed. So if you dont wanna to be displayed disable it.
Bart Pluijms said:No one else with the same problem? And nobody a sollution for this problem? I have this problem on 2 sites now, both after a upgrade.
i think that read more is not based on part if there is a "intro" and "full" text in article. "Read more" is workin like on/off switch. You can enable it or disable it, and if you have in mind that you have option for link in title sometimes it is not needed. So if you dont wanna to be displayed disable it.
Bart Pluijms said:No one else with the same problem? And nobody a sollution for this problem? I have this problem on 2 sites now, both after a upgrade.
Please Log in or Create an account to join the conversation.
- Bart Pluijms
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 40
15 years 8 months ago #70722
by Bart Pluijms
Replied by Bart Pluijms on topic Read more always shown
I am not sure about that. In previous releases of K2 and in Joomla core content manager the "read more" is only shown when there is a fulltext.
Someone of the K2 developers team who can clear this out for me?
Erebrum said:Lo i think that read more is not based on part if there is a "intro" and "full" text in article. "Read more" is workin like on/off switch. You can enable it or disable it, and if you have in mind that you have option for link in title sometimes it is not needed. So if you dont wanna to be displayed disable it.
Bart Pluijms said:No one else with the same problem? And nobody a sollution for this problem? I have this problem on 2 sites now, both after a upgrade.
Someone of the K2 developers team who can clear this out for me?
Erebrum said:Lo i think that read more is not based on part if there is a "intro" and "full" text in article. "Read more" is workin like on/off switch. You can enable it or disable it, and if you have in mind that you have option for link in title sometimes it is not needed. So if you dont wanna to be displayed disable it.
Bart Pluijms said:No one else with the same problem? And nobody a sollution for this problem? I have this problem on 2 sites now, both after a upgrade.
Please Log in or Create an account to join the conversation.
- monalisaoverdrive
-
- Offline
- New Member
Less
More
- Posts: 1
15 years 4 months ago #70723
by monalisaoverdrive
Replied by monalisaoverdrive on topic Read more always shown
Hi, i'm modifying a lot for my needs in the moment, so i found one solution for this. I made the changes/addings of code in the modules/mod_k2_content/tmpl/Default/default.php, but i think it works also in the components of k2 in the templates...
you've just to ask, if there is fulltext, put the if code around the readmore code from k2 module
if ($item->fulltext != '') {;
readmore k2 code
}
you've just to ask, if there is fulltext, put the if code around the readmore code from k2 module
if ($item->fulltext != '') {;
readmore k2 code
}
Please Log in or Create an account to join the conversation.
- Duane Allam
-
- Offline
- New Member
Less
More
- Posts: 8
14 years 5 months ago #70724
by Duane Allam
Replied by Duane Allam on topic Read more always shown
Found a solution: You need to modify the file com_k2/templates/{your template}/category_item.php
on line 264. I'd post the code but I can't work out how... Its pretty easy though ;)
on line 264. I'd post the code but I can't work out how... Its pretty easy though ;)
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 5 months ago #70725
by william white
Replied by william white on topic Read more always shown
Put your code in a text file and upload here as attachment
Please Log in or Create an account to join the conversation.
- Duane Allam
-
- Offline
- New Member
Less
More
- Posts: 8
14 years 5 months ago #70726
by Duane Allam
Replied by Duane Allam on topic Read more always shown
oh yeah, good thinking - have included the fulll source files.
in category_item.php, look at line 264
Also, if you're using tag-based navigation, you'll also need to make a similar change to com_k2/templates/generic.php, on line 113
These code files are for version 2.4.1 btw...
in category_item.php, look at line 264
Also, if you're using tag-based navigation, you'll also need to make a similar change to com_k2/templates/generic.php, on line 113
These code files are for version 2.4.1 btw...
Please Log in or Create an account to join the conversation.
- Rikhardur Brynjolfsson
-
- Offline
- New Member
Less
More
- Posts: 9
14 years 5 months ago #70727
by Rikhardur Brynjolfsson
Replied by Rikhardur Brynjolfsson on topic Read more always shown
Thank you so much!
Please Log in or Create an account to join the conversation.
- Darryll
-
- Offline
- New Member
Less
More
- Posts: 5
14 years 3 months ago #70728
by Darryll
Replied by Darryll on topic Read more always shown
Hey, just wanted to say thanks - the category_item.php edit worked just fine :)
For info, used it on a site using Joomla v1.5.22, K2 v2.4.1 and a modified Rockettheme Gantry template (blank / core version) using the custom_html over-rides, if that helps anyone.
Thanks again!
For info, used it on a site using Joomla v1.5.22, K2 v2.4.1 and a modified Rockettheme Gantry template (blank / core version) using the custom_html over-rides, if that helps anyone.
Thanks again!
Please Log in or Create an account to join the conversation.