- Posts: 7
COMMUNITY FORUM
Introtext and fulltext
- colin
- Topic Author
- Offline
- New Member
Less
More
10 years 10 months ago #137387
by colin
Introtext and fulltext was created by colin
I am using Takai free template now, and I like it.
The only problem is when I click the "readmore" link ,in the item view the introtext is missing.
Can you help?
Thanks.
The only problem is when I click the "readmore" link ,in the item view the introtext is missing.
Can you help?
Thanks.
Please Log in or Create an account to join the conversation.
- colin
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
10 years 10 months ago #137388
by colin
Replied by colin on topic Introtext and fulltext
by the way, I have checked all show introtext & show fulltext buttons I can find.
Please Log in or Create an account to join the conversation.
- colin
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
10 years 10 months ago #137389
by colin
Replied by colin on topic Introtext and fulltext
This is the site I built with the quick package. Just add a Test item.
istreamtheworld.com/K/
Click read more to find the problem.
However, all sample articles work fine.
Thanks!
istreamtheworld.com/K/
Click read more to find the problem.
However, all sample articles work fine.
Thanks!
Please Log in or Create an account to join the conversation.
- Laurent Noonan
- Offline
- New Member
Less
More
- Posts: 9
10 years 10 months ago #137390
by Laurent Noonan
Replied by Laurent Noonan on topic Introtext and fulltext
I am having the same issue. It seems to work only on posts that include item extra fields: istreamtheworld.com/K/index.php/item
So, perhaps adding extra fields will be the hack to get it to work, but otherwise I think there is something wrong with the item.php code.
So, perhaps adding extra fields will be the hack to get it to work, but otherwise I think there is something wrong with the item.php code.
Please Log in or Create an account to join the conversation.
- Laurent Noonan
- Offline
- New Member
Less
More
- Posts: 9
10 years 10 months ago - 10 years 10 months ago #137391
by Laurent Noonan
Replied by Laurent Noonan on topic Introtext and fulltext
Alright I fiddled with the item.php code and found something that seems to work.
On line 219
change from
<?php if($this->item->params->get('itemIntroText') && $this->item->params->get('itemExtraFields') && count($this->item->extra_fields) || $this->item->params->get('itemAttachments') && count($this->item->attachments) ): ?>
to
<?php if($this->item->params->get('itemIntroText')): ?>
It seems to work after that, though I can't guarantee this won't cause any other issues. If someone with more php and template knowledge can vouch for this method, that would be helpful!
On line 219
change from
<?php if($this->item->params->get('itemIntroText') && $this->item->params->get('itemExtraFields') && count($this->item->extra_fields) || $this->item->params->get('itemAttachments') && count($this->item->attachments) ): ?>
to
<?php if($this->item->params->get('itemIntroText')): ?>
It seems to work after that, though I can't guarantee this won't cause any other issues. If someone with more php and template knowledge can vouch for this method, that would be helpful!
Please Log in or Create an account to join the conversation.
- colin
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
10 years 10 months ago #137392
by colin
Replied by colin on topic Introtext and fulltext
Thanks, Laurent.
I will try.
I will try.
Please Log in or Create an account to join the conversation.
- massi
- Offline
- New Member
Less
More
- Posts: 6
10 years 8 months ago #137393
by massi
Replied by massi on topic Introtext and fulltext
Hi,
I have the same problem.
I don't find this code. In which file do I change this?
I have the same problem.
I don't find this code. In which file do I change this?
Please Log in or Create an account to join the conversation.
- massi
- Offline
- New Member
Less
More
- Posts: 6
10 years 8 months ago #137394
by massi
Replied by massi on topic Introtext and fulltext
Found.
the path is: templates\takai\html\com_k2\default\item.php
Works for me.
Thank you very much!
the path is: templates\takai\html\com_k2\default\item.php
Works for me.
Thank you very much!
Please Log in or Create an account to join the conversation.
- Franz Wohlkönig
- Offline
- Platinum Member
Less
More
- Posts: 529
10 years 8 months ago #137395
by Franz Wohlkönig
Replied by Franz Wohlkönig on topic Introtext and fulltext
Hy,
thank you for Information, works well. And yes: Great Template, wish know it earlier, now testing my 1st site on takai.
Regards
thank you for Information, works well. And yes: Great Template, wish know it earlier, now testing my 1st site on takai.
Regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 8 months ago #137396
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Introtext and fulltext
Hello Franz,
Nice to see you here :)
Nice to see you here :)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.