Kunena Menu
Show first level name of category – start level 2
12 years 4 months ago #20747
by ddpneu
Show first level name of category – start level 2 was created by ddpneu
Hello,
I would like to ask if is possible to add some code inside the module to showed on the top name of the first level category when my Start level is 2.
The thing is that I can show the name of the module but it would be the same for all categories. The best for me would be to show on the top of the module the right name of the first level category.
For example this is menu:
-Test
--test1
--test2
-Test2
--test3
--test4
and if I have Start level 2, it will show me in the category Test only this:
--test1
--test2
And I would like to get on the top the name Test.
Thank you very much for your help.
I would like to ask if is possible to add some code inside the module to showed on the top name of the first level category when my Start level is 2.
The thing is that I can show the name of the module but it would be the same for all categories. The best for me would be to show on the top of the module the right name of the first level category.
For example this is menu:
-Test
--test1
--test2
-Test2
--test3
--test4
and if I have Start level 2, it will show me in the category Test only this:
--test1
--test2
And I would like to get on the top the name Test.
Thank you very much for your help.
Please Log in or Create an account to join the conversation.
12 years 4 months ago #20748
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Show first level name of category – start level 2
Hi
I understand, but this is not easy. It would need an advanced PHP code to return the current top category if it exists, and then show it...
this is not possible in the base of the module
CEd
I understand, but this is not easy. It would need an advanced PHP code to return the current top category if it exists, and then show it...
this is not possible in the base of the module
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
12 years 4 months ago #20749
by ddpneu
Replied by ddpneu on topic Show first level name of category – start level 2
Hello,
there is the second option to make one module for each first category but it is not good for managing. I was thinking to add some code into default.php. Unfortunately my knowlage of php is limited so if you have any idea how to do that it would be great.
Thank you very much.
there is the second option to make one module for each first category but it is not good for managing. I was thinking to add some code into default.php. Unfortunately my knowlage of php is limited so if you have any idea how to do that it would be great.
Thank you very much.
Please Log in or Create an account to join the conversation.
12 years 4 months ago #20750
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Show first level name of category – start level 2
this means that I don't have a quick code to give you. This would need some work to be done and I can't do itbut this is not easy.
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
12 years 4 months ago #20751
by ddpneu
Replied by ddpneu on topic Show first level name of category – start level 2
Never mind, thank you anyway.
Please Log in or Create an account to join the conversation.
Time to create page: 0.223 seconds





