COMMUNITY FORUM
Into text doesn't display when main image is missi
- David Wickstead
-
Topic Author
- Offline
- New Member
My articles are here www.5starmarine.co.uk/index.php?option=com_k2&view=latest&layout=latest&Itemid=238
At the moment I have left both the main image and image within the article showing and only managed to turn off the main image when you view the article.
What I would like it to just display the intro copy and any HTML elements in it
How can I do hat?
Wicko
Wicko Design - Web design and maintenance for Joomla and WordPress sites
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
If you are using any introtext limits, then all of your HMTL tags will be stripped.
You can change this through your category settings. Also make sure you are not using any global rules (they are defined in K2's parameters).
To have complete control over your content you need to specify the introtext either by using your editor's read more button or using two seperate editors. One for intro and one for full text.
You enable this feature from K2's parameters (Use one editor window for introtext & fulltext - Advanced Tab)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- David Wickstead
-
Topic Author
- Offline
- New Member
Thank you for coming back to me. This is what I thought. But I have already removed any intro text limit and have both the category and default parameters showing intro text with no stripping of html tags. The intro text limit field is empty. Should this have any other value?
I use JCE editor and use the editors features to add the read more button.
The intro text only seems to be ok if I have a main image attached. But I don't want to use the main image for certain articles.
Wicko Design - Web design and maintenance for Joomla and WordPress sites
Please Log in or Create an account to join the conversation.
- David Wickstead
-
Topic Author
- Offline
- New Member
Wicko Design - Web design and maintenance for Joomla and WordPress sites
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
I think some if statements are closed in the wrong order. You can easily find out if this is the actual issue by viewing the site with the default or the system template.
You can do this by adding ?template=system or ?template=atomic on your URLs
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- David Wickstead
-
Topic Author
- Offline
- New Member
Wicko Design - Web design and maintenance for Joomla and WordPress sites
Please Log in or Create an account to join the conversation.
- David Wickstead
-
Topic Author
- Offline
- New Member
This is how I want my image to look
This is what is it displaying like
If I delete the main image from the image tab then it also removes the intro text.
These are my k2 settings.
Parameters
category settings
article settings
Wicko Design - Web design and maintenance for Joomla and WordPress sites
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Can you send me a copy of your category_item.php through pastebin or another service?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- David Wickstead
-
Topic Author
- Offline
- New Member
Wicko Design - Web design and maintenance for Joomla and WordPress sites
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
I need the latest_item.php.
But since this is a Rocketheme commercial template you can always look for an update as well.
PS. I don't know where RocketTheme made the overrides for this template but I think you should post me all instances of latest_item.php
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- David Wickstead
-
Topic Author
- Offline
- New Member
Here is my lastest_item.php
pastebin.com/a3gvQbRE
The current Rockettheme template is up to date. Unfortunately they mentioned that their template is K2 compatible but don't offer K2 support. I can ask if anyone knows on their forum.
David
Wicko Design - Web design and maintenance for Joomla and WordPress sites
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
These issues are not linked to K2, they are issues in your template overrides (coding errors).]
To be more precise the if statements are not closing correctly and the introtext is rendering inside the image if statement.
I made a quick fix (Don't know how your CSS are structured but I don't think it will break anything) but since it is a template bug and not a K2 bug they should assist you for any further issues.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- David Wickstead
-
Topic Author
- Offline
- New Member
Thank you for this.
I have tried to replace your new code in the last_item.php but only get a blank page.
Wicko Design - Web design and maintenance for Joomla and WordPress sites
Please Log in or Create an account to join the conversation.
- David Wickstead
-
Topic Author
- Offline
- New Member
What I have just done is completely replace the latest_item.php with the default file and this seemed to fix the issue.
So it looks like it was in the K2 file all along
Wicko Design - Web design and maintenance for Joomla and WordPress sites
Please Log in or Create an account to join the conversation.