eworkers / K2ForJ4

GNU General Public License v2.0
11 stars 6 forks source link

menu link - single k2 category listing does not follow the category choosen template #40

Closed krmrtrzv closed 8 months ago

krmrtrzv commented 9 months ago

Hello, thanks again for this marvelous fork! When I create menu link to a single k2 category, expected is that the template for the listing obeys the choice selected in the category display settings - a sub-template created in templates/mytemplate/html/com_k2/mysubtemplate. The result is - call of the default template, and none of the display settings set in the category obeyed (no images, no extra fields displayed although they are set to show).
When multi-categories are set in the menu settings, and a template is chosen in the menu settings, then everything goes according the expected behavior.

eworkers commented 8 months ago

does this dc87567 solve your issue?

eworkers commented 8 months ago

please note that you have to edit and save the menu item again

eworkers commented 8 months ago

fixed in dc87567

krmrtrzv commented 8 months ago

Thanks! I applied the two changes in administrator/components/com_k2/elements/k2category.php and components/com_k2/router.php Opened the menu link pointing to single category, edited it an save it, as recommended, but the issue is still there - the selected category template is not applied to the view, the default template is applied instead.

On Thu, 11 Jan 2024 at 23:33, eworkers @.***> wrote:

does this dc87567 https://github.com/eworkers/K2ForJ4/commit/dc875673d8e946b326d0b00b92939137f8f8e465 solve your issue?

— Reply to this email directly, view it on GitHub https://github.com/eworkers/K2ForJ4/issues/40#issuecomment-1888002005, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEE5GUILHC6N3CFGP6UHO6LYOBLBRAVCNFSM6AAAAABAZRV6NCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYGAYDEMBQGU . You are receiving this because you authored the thread.Message ID: @.***>

krmrtrzv commented 8 months ago

Hello again, I played a little bit more - created a new menu link pointing to a single category and it did select the subtemplate selected in the category params, but this time threw a 404 error, due to seo address: mysite.com/en/menu link/category/catID instead of just: mysite.com/menu link When I changed the URL manually everything is as expected.

On Thu, 11 Jan 2024 at 23:33, eworkers @.***> wrote:

does this dc87567 https://github.com/eworkers/K2ForJ4/commit/dc875673d8e946b326d0b00b92939137f8f8e465 solve your issue?

— Reply to this email directly, view it on GitHub https://github.com/eworkers/K2ForJ4/issues/40#issuecomment-1888002005, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEE5GUILHC6N3CFGP6UHO6LYOBLBRAVCNFSM6AAAAABAZRV6NCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYGAYDEMBQGU . You are receiving this because you authored the thread.Message ID: @.***>

eworkers commented 8 months ago

link

is cache enabled? if so try to clear the cache and report back please, if not please open a new issue and we will take a look

krmrtrzv commented 8 months ago

Cache is disabled, browser cache is, JCH component and plugin are disabled. Please suggest if I need to open a new issue

On Sat, 13 Jan 2024 at 11:11, eworkers @.***> wrote:

link

is cache enabled? if so try to clear the cache and report back please, if not please open a new issue and we will take a look

— Reply to this email directly, view it on GitHub https://github.com/eworkers/K2ForJ4/issues/40#issuecomment-1890389747, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEE5GULIU3QFDG4EJETDZALYOJFTHAVCNFSM6AAAAABAZRV6NCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGM4DSNZUG4 . You are receiving this because you authored the thread.Message ID: @.***>