- Posts: 5
COMMUNITY FORUM
[SOLVED] Items repeating multiple times
- Owen Sutton
- Topic Author
- Offline
- New Member
I have a menu option linking to a K2 Category, which contain 3 articles. All four articles seems to be repeated for each 'level' (leading, primary, secondary, etc)
You can see the issues here: www.moncf.co.uk/healthy-communities/itemlist/ (site very much a work in progress)
Any ideas why this is happening. I have checked and there is definitely only 3 articles. All articles and categories removed from original Joomla space.
Thanks in advance.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
This is an issue related to your template. I think that you have edited K2's default template without overriding it. You should update K2 to 2.6.6 and then start your new overrides from scratch (particularly category.php ).
I don't think you will run into new issues using this method.
More info on templating can be found here getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Owen Sutton
- Topic Author
- Offline
- New Member
- Posts: 5
Thanks for responding. Although I'm afraid I'm a little confused still.
As far as I'm aware i have not edited the default K2 template. I had my custom template working on the basic joomla installation, installed K2, imported/converted the joomla categories and articles into K2, deleted teh original articles and categories and that is it.
Is it possible that something in my template is overriding the K2 template automatically? i thought the K2 elements would simply sit within my standard divs and allow styling via manipulation of the CSS.
i will try a quick update of K2 though - see if that helps.
Please Log in or Create an account to join the conversation.
- Owen Sutton
- Topic Author
- Offline
- New Member
- Posts: 5
It's probbaly worth noting that my custom template involves no overrides, just an index.php, templateDetails.xml and template.css
Thanks
Please Log in or Create an account to join the conversation.
- Owen Sutton
- Topic Author
- Offline
- New Member
- Posts: 5
Sorry for wasting people's time.
Please Log in or Create an account to join the conversation.
- Mark Johnson
- Offline
- New Member
I followed this suggestion and made the template override changes here, which made no difference:
More info on templating can be found here getk2.org/documentation/tutorials/174-te...pts-of-sub-templates
Owen, when you say you were clicking the wrong link, maybe you could elaborate. What might have changed with your site that fixed this issue?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mark Johnson
- Offline
- New Member
Krikor Boghossian wrote: Can you please send a URL of your site?
[EDIT: due to continuing development, I've removed the menu item sight for unregistered users in the frontend. Post here if you'd like me to again expose this bug for viewing. Right now I'm getting by using the workaround I mention below.]
Yes, the site is: macnampa.org
I've made a discovery relating to this problem. On the site, the Main Menu item "Supplies" is a K2 Categories list with a single chosen category which has a single item (apparently repeated for each of Leading, Primary, Secondary, and Links).
In contrast, the menu item "Management" is also a Categories list, but has two categories selected. It appears to be functioning properly, displaying items from both categories.
The Categories list will also display correctly if one of the selected categories is empty. So my workaround might be to create an always-empty category to include in Category lists so they work right.
If this single category listing behavior is by design, there's something I don't yet understand in the philosophy of K2, but that would be a familiar condition for me, since I'm so low on the learning curve with so many things about Joomla and K2. Ahhh... newbie-ism... exciting and frustrating at the same time.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
Ahhh... newbie-ism... exciting and frustrating at the same time.
No need to get frustrated. Have you watched these vids?
getk2.org/documentation/k2class2012
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mark Johnson
- Offline
- New Member
I had a category list which exhibited the bug this way:
- a single item was displayed multiple times.
- this item was not the only item actually in the category, there were two other items which were not displaying at al
- when I trashed (then emptied) this single visible item, the category list showed no items at all
- as soon as I added the 2nd category (a "placeholder" empty category) to the list, the list properly display all remaining items in the category
Good luck tracking this down... If I get more info or attempt to isolate the problem further, I will post more info. Thanks.
P.S. this may be related to the import function because I had a few Joomla articles and categories which I imported into K2, interspersed with new K2 content, although I've seen this effect on all of my categories shown using the category list with only a single category provided for listing.
[EDIT]P.P.S.: AARGHH!! Just after posting this, I realized that my workaround technique (adding a placeholder category) obviously only works when my category list is accessed via a menu item and that I still have the repetition problem when I click on a category as a breadcrumb... maybe elsewhere. What to do???
Please Log in or Create an account to join the conversation.