- Posts: 50
COMMUNITY FORUM
Make "Children Categories" vanish
- Yamin Zakaria
-
Topic Author
- Offline
- Senior Member
I was following another thread to make "children category" vanish under the main category.
community.getk2.org/forum/topics/remove-children-categories
As per the advice I edited the "category.php" file ('templates/"yourtemplate"/html/com_k2/templates/default/category.php') and edited out the line "itemListCategories" under h3 - but then all the items (everything) vanished under the main category.
So I went back into the category.php file removed the comments tag but still same situation. Can I resent this file somehow?
I know category.php also exists under the /home/domain/public_html/components....directory, can I use that copy it over the current the directory under 'templates/"yourtemplate"/html/com_k2/templates/default/category.php'
Regards
Yamin
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Yamin Zakaria
-
Topic Author
- Offline
- Senior Member
- Posts: 50
The files are attached below. The file category.old is the one I edited but despite undoing the changes it still has the problems. So I copied the category.php from the other directory (/home/domain/public_html/components) but still not luck.
So I have attached both the files.
Regards
Yamin
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Yamin Zakaria
-
Topic Author
- Offline
- Senior Member
- Posts: 50
Yes here it is - www.radicalviews.org/index.php?option=com_k2&view=latest&layout=latest&Itemid=3 This shows nothing under "Islam"
Whereas the others work ok - for example - www.radicalviews.org/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=7&Itemid=48
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Yamin Zakaria
-
Topic Author
- Offline
- Senior Member
- Posts: 50
yeah I did that, but I am just thinking of un-installing it and reinstalling it again - probably on Joomla 1.6
Regards
Yamin
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Yamin Zakaria
-
Topic Author
- Offline
- Senior Member
- Posts: 50
Yeah I reinstalled it and it seems to be normal now but my original problem is still there. How can I make the "Children Category" vanish? I fear or loath to edit the category.php file again.
Regards
Yamin
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Yamin Zakaria
-
Topic Author
- Offline
- Senior Member
- Posts: 50
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Yamin Zakaria
-
Topic Author
- Offline
- Senior Member
- Posts: 50
I am sending the one from template directory. I am sure that is the correct one. Please can you tell me which line you edit. I know its the one related to "itemListSubCategories", if you could just put your initial or something that way I know you did that line.
Regards
Yamin
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Yamin Zakaria
-
Topic Author
- Offline
- Senior Member
- Posts: 50
Thanks, that seems to have worked. Which is strange because that's the change I also made initially.
Yamin
Please Log in or Create an account to join the conversation.