- Posts: 32
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Problem with under categories - I can't hide the title on the page!
Problem with under categories - I can't hide the title on the page!
- jeanchristophe
-
Topic Author
- Offline
- Junior Member
Less
More
15 years 4 months ago #76560
by jeanchristophe
Problem with under categories - I can't hide the title on the page! was created by jeanchristophe
Hello,
I have made a category (product).
This category is related to a menu. In the menu, I choose the option: Show the Page Title No.
And it is working fine.
My problem is the under categories.
The tilte is still coming up on the page!
How can I avoid this?
Happy hollydays
Best regards
Jean-Christophe
I have made a category (product).
This category is related to a menu. In the menu, I choose the option: Show the Page Title No.
And it is working fine.
My problem is the under categories.
The tilte is still coming up on the page!
How can I avoid this?
Happy hollydays
Best regards
Jean-Christophe
Please Log in or Create an account to join the conversation.
- jeanchristophe
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 32
15 years 4 months ago #76561
by jeanchristophe
Replied by jeanchristophe on topic Problem with under categories - I can't hide the title on the page!
I am still working on it!
to resume:
I have a category: "produkt"
3 subcategories: "landmåling" "GIS" "landbrug"
Let's say that I have subcategories for "landmåling" which are: "gps" "totalstation" "scanner" "level"
I make a menu for "produkt"
MenuItem > parameters (system) > Show the page title: No
If I come into the "produkt" menu with a browser like a user
I don't see the title in the "produkt" page - it's OK
But when I clik on the subcategories: "landmåling", "GIS" or "landbrug", then I have the page title on the page like if I had Show the page title: Yes.
If I continue browsing subcategories, the error still remain.
If I make a menu for "landmåling", "GIS" and "landbrug"
MenuItem > parameters (system) > Show the page title: No
Then when I am browsing, I don't see the page title on the page - It's OK
And I don't see the page title in the subcategories either - It is super!
So long I am browsing there, there is no problems.
If I leave the menu and go back to products, then I will see the page title in the subcategories!
It is looking like that it is not the samme page which is used.
Do you know where I can find the faulty page, so I can edit in it?
Thank you
Best regards
Jean-Christophe
to resume:
I have a category: "produkt"
3 subcategories: "landmåling" "GIS" "landbrug"
Let's say that I have subcategories for "landmåling" which are: "gps" "totalstation" "scanner" "level"
I make a menu for "produkt"
MenuItem > parameters (system) > Show the page title: No
If I come into the "produkt" menu with a browser like a user
I don't see the title in the "produkt" page - it's OK
But when I clik on the subcategories: "landmåling", "GIS" or "landbrug", then I have the page title on the page like if I had Show the page title: Yes.
If I continue browsing subcategories, the error still remain.
If I make a menu for "landmåling", "GIS" and "landbrug"
MenuItem > parameters (system) > Show the page title: No
Then when I am browsing, I don't see the page title on the page - It's OK
And I don't see the page title in the subcategories either - It is super!
So long I am browsing there, there is no problems.
If I leave the menu and go back to products, then I will see the page title in the subcategories!
It is looking like that it is not the samme page which is used.
Do you know where I can find the faulty page, so I can edit in it?
Thank you
Best regards
Jean-Christophe
Please Log in or Create an account to join the conversation.
- jeanchristophe
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 32
15 years 4 months ago #76562
by jeanchristophe
Replied by jeanchristophe on topic Problem with under categories - I can't hide the title on the page!
I find out!
I edit the file: components/com_k2/templates/default/category.php
I disable the line 22:
That's it!
Not the best solution, but home made!
Best regards
Jean-Christophe
I edit the file: components/com_k2/templates/default/category.php
I disable the line 22:
That's it!
Not the best solution, but home made!
Best regards
Jean-Christophe
Please Log in or Create an account to join the conversation.
- jeanchristophe
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 32
15 years 4 months ago #76563
by jeanchristophe
Replied by jeanchristophe on topic Problem with under categories - I can't hide the title on the page!
I disable the line 22:
Please Log in or Create an account to join the conversation.
- Thomas Johannessen
-
- Offline
- Senior Member
14 years 7 months ago #76564
by Thomas Johannessen
Replied by Thomas Johannessen on topic Problem with under categories - I can't hide the title on the page!
Takk Jean, Im gonna try that. lige ud! :D
Jean-Christophe said:I find out!
I edit the file: components/com_k2/templates/default/category.php
I disable the line 22:
That's it!
Not the best solution, but home made!
Best regards
Jean-Christophe
Jean-Christophe said:I find out!
I edit the file: components/com_k2/templates/default/category.php
I disable the line 22:
That's it!
Not the best solution, but home made!
Best regards
Jean-Christophe
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
Less
More
- Posts: 955
14 years 7 months ago #76565
by Simon Wells
Replied by Simon Wells on topic Problem with under categories - I can't hide the title on the page!
This is completly the wrong way to do it.
By modifying the category.php in the default folder, you will loose all changes when you update K2, wasting your valuable time.
If you want to modify the category.php, then that is ok, but you will need to have a K2 template over ride. More details on K2 templating can be seen in my guides over at simon.getk2.org.
To solve this cleanly, open the category and in the parameters, you have the option to hide the category title as well as the sub category title.
Job done, no code hacks and leaving you the option to enable and disable titles in other categories.
If you hack and then decide another time that you want titles in another category, you will have to replace the deleted code and potentially have a lot of category parameters to modify.
Hope that helps.
Simon
K2 Support
By modifying the category.php in the default folder, you will loose all changes when you update K2, wasting your valuable time.
If you want to modify the category.php, then that is ok, but you will need to have a K2 template over ride. More details on K2 templating can be seen in my guides over at simon.getk2.org.
To solve this cleanly, open the category and in the parameters, you have the option to hide the category title as well as the sub category title.
Job done, no code hacks and leaving you the option to enable and disable titles in other categories.
If you hack and then decide another time that you want titles in another category, you will have to replace the deleted code and potentially have a lot of category parameters to modify.
Hope that helps.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- Thomas Johannessen
-
- Offline
- Senior Member
14 years 7 months ago #76566
by Thomas Johannessen
Replied by Thomas Johannessen on topic Problem with under categories - I can't hide the title on the page!
Simon, thats how to do it yes. But thats not works, so thats why we commenting out the Category title in the php file.
Simon Wells (K2 Support) said:
If you want to modify the category.php, then that is ok, but you will need to have a K2 template over ride. More details on K2 templating can be seen in my guides over at simon.getk2.org.
To solve this cleanly, open the category and in the parameters, you have the option to hide the category title as well as the sub category title.
Job done, no code hacks and leaving you the option to enable and disable titles in other categories.
If you hack and then decide another time that you want titles in another category, you will have to replace the deleted code and potentially have a lot of category parameters to modify.
Hope that helps.
Simon
K2 Support
Simon Wells (K2 Support) said:
If you want to modify the category.php, then that is ok, but you will need to have a K2 template over ride. More details on K2 templating can be seen in my guides over at simon.getk2.org.
To solve this cleanly, open the category and in the parameters, you have the option to hide the category title as well as the sub category title.
Job done, no code hacks and leaving you the option to enable and disable titles in other categories.
If you hack and then decide another time that you want titles in another category, you will have to replace the deleted code and potentially have a lot of category parameters to modify.
Hope that helps.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Problem with under categories - I can't hide the title on the page!