Hi,

Please can anyone help with the following:- when displaying a category with a category description and a number of articles, the description is on top and the articles below that description, as defined by "leading", "intro" and so on - and all is fine.

But - when I want to also display the description and articles of a subcategory (in the same parent category) the description of the subcategory is displayed below the articles of the subcategory - so it's upside down, basically, which makes no sense at all. It's rather meaningless to have a subcategory description/text shown below the articles from that same subcategory. The subcategory description should be shown above the articles from that subcategory. How and where do I change this? (I am happy to edit the code if necessary) Please see screenshot:-

Also, something that seems to be a bug of some kind; the subcategory description does not show at all unless the "# Articles in category" is set to show, which I don't want. Has anyone got any idea what's causing this and how it can be fixed? Screenshot here:-

I have tried every single setting I can find in article settings, menu settings and category settings in Joomla to fix the above two issues but it doesn't seem to be possible, so I guess I must edit the code, but I am clueless as to where / what file I should be looking at and hope someone might be able to help.

Many thanks in advance for any help with this!

    godstedlund
    Hi
    There can be override file in the template folder / html/com_content
    for this specific view. can you share the URL page on which you have this issue. And submit site temp. super user login via Edit fields option so i can check it directly on your site : http://prntscr.com/120lkz4

    Hi Pankaj,

    That's what I was thinking as well, but so far I have not been able to manage to find out how or where to do it - and so your help would be greatly appreciated! :-)

    I have added a superuser account for you now and added the URL to the specific page where the issue can be seen. Thank you!

      godstedlund Hi
      Here is override file for the category blog view that you can change or override : file "/html/com_content/category/blog_item.php" in template "gk_paradise".
      The setting appear normal. you can also check the menu with default Joomla template to see the difference. It should be same to show the options.

        Hi Pankaj,

        Thank you for your help and your reply.

        I am sorry, but that is not the file I need to change to achieve what I want to do.

        I couldn't see how any changes in that file would help me, as it contains no references to the subcategory-description at all. So, for testing purposes, I tried deleting all the code in that file and here's the result:-

        I am left with a big open blank space where the contents of "blog_item.php" was before I deleted the code. So this file is not the problem. The problem must be whatever file controls the order of "blog_item.php" and the category description for the subcategory that holds the articles.

        What I want is to have the block of text (SubCategory Description) currently below this red space in the screenshot - to appear above that red space. (which normally contains all the code from "blog_item.php")

        And that is what I am clueless about. Which file controls this? 🤔

        Basically, I want it to look like this:-

        Normally when you link to a category and enable the category description, the description is shown on top and then the articles of the category are shown below the description. This is completely logical and makes good sense.

        But - for an unknown reason, when you make a category a "child" of another category (sub-category) and want to see the description from both the parent and child category things are swapped upside down for the child category and there's no setting in Joomla to control this bizarre ordering of things.

        It's really very strange and completely illogical : why would anybody ever want to put a description after the contents? That is like watching a movie and then being told afterwards what the movie was about. Entirely the wrong way around.

        Any help on how to fix this would be greatly appreciated! 😉

        Ninja you can also check the menu with default Joomla template to see the difference. It should be same to show the options.
        Did you check it?

        This is not from template side, its Joomla layout how it work to show the content. You can change the template to default Joomla and see the output is same http://prntscr.com/124amzd

        Blog php file will only used for the category blog items content.

        And this part code http://prntscr.com/124aspv
        file "/html/com_content/category/blog.php" in template "gk_paradise".
        here : http://prntscr.com/124arxj

        Hope its clear now

        8 days later

        Hi Pankaj,

        Thank you for your reply and apologies for the belated reply.

        I am aware and fully understand that this is none of your doing. It's a Joomla thing - and a silly one at that, I think. Having a description of the content displayed after the content is .. pointless.

        Anyway, we have decided to work around it rather than trying to fight it as it seems more or less impossible to do.

        Thanks again for your support! :-)

          Ninja locked the discussion.
          Write a Reply...
          You need to Login to view replies.