Keyword

Problem with under categories - I can't hide the title on the page!

  • jeanchristophe
  • jeanchristophe's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 8 months ago #76560 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

Please Log in or Create an account to join the conversation.

  • jeanchristophe
  • jeanchristophe's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 8 months ago #76561 by jeanchristophe
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

Please Log in or Create an account to join the conversation.

  • jeanchristophe
  • jeanchristophe's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 8 months ago #76562 by jeanchristophe
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.

  • jeanchristophe
  • jeanchristophe's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 8 months ago #76563 by jeanchristophe
I disable the line 22:

Please Log in or Create an account to join the conversation.

  • Thomas Johannessen
  • Thomas Johannessen's Avatar
  • Offline
  • Senior Member
More
14 years 1 week ago #76564 by Thomas Johannessen
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

Please Log in or Create an account to join the conversation.

More
14 years 1 week ago #76565 by Simon Wells
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

Please Log in or Create an account to join the conversation.

  • Thomas Johannessen
  • Thomas Johannessen's Avatar
  • Offline
  • Senior Member
More
14 years 1 week ago #76566 by Thomas Johannessen
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

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum