- Posts: 50
COMMUNITY FORUM
Make "Children Categories" vanish
- Yamin Zakaria
- Topic Author
- Offline
- Senior Member
Less
More
13 years 4 months ago #96919
by Yamin Zakaria
Make "Children Categories" vanish was created by Yamin Zakaria
Hi
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
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
13 years 4 months ago #96920
by Yiota
Replied by Yiota on topic Make "Children Categories" vanish
Sent a copy of the file you edited to see what you have done wrong.
Please Log in or Create an account to join the conversation.
- Yamin Zakaria
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 50
13 years 4 months ago #96921
by Yamin Zakaria
Replied by Yamin Zakaria on topic Make "Children Categories" vanish
Hi
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
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
13 years 4 months ago #96922
by Yiota
Replied by Yiota on topic Make "Children Categories" vanish
The category.php should work. I don't see anything missing or wrong. Is it possible to provide a link with a category list?
Please Log in or Create an account to join the conversation.
- Yamin Zakaria
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 50
13 years 4 months ago #96923
by Yamin Zakaria
Replied by Yamin Zakaria on topic Make "Children Categories" vanish
Hi
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
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
13 years 4 months ago #96924
by Yiota
Replied by Yiota on topic Make "Children Categories" vanish
The file is the same though, so maybe something else is wrong for the first case "Islam" category. Check the parameters of this category and compare them with the parameters of the other case.
Please Log in or Create an account to join the conversation.
- Yamin Zakaria
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 50
13 years 4 months ago #96925
by Yamin Zakaria
Replied by Yamin Zakaria on topic Make "Children Categories" vanish
Hi
yeah I did that, but I am just thinking of un-installing it and reinstalling it again - probably on Joomla 1.6
Regards
Yamin
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
13 years 4 months ago #96926
by Yiota
Replied by Yiota on topic Make "Children Categories" vanish
K2 isn't released for Joomla 1.6 yet, so I wouldn't recommend it.
Please Log in or Create an account to join the conversation.
- Yamin Zakaria
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 50
13 years 4 months ago #96927
by Yamin Zakaria
Replied by Yamin Zakaria on topic Make "Children Categories" vanish
Hi
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
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
13 years 4 months ago #96928
by Yiota
Replied by Yiota on topic Make "Children Categories" vanish
What you need is only the title "Children Category" to be gone?
Please Log in or Create an account to join the conversation.