Hello,
I have an annoying issue regarding the Reporter template and the Guru component.
For all Guru pages, I have set a particular template style, different from the rest of the website, where the predominant color is blue. Any link I access from the right menu (sidebar-r) on the website opens the correct template style.
The problem: after completing the course and taking the test, when I click the "Course complete" button, a completely different template style opens. It's the correct page but with an inconvenient template style.

So, I have three types of links that theoretically lead to the same page but each opens a different template style:

  1. /index.php?option=com_guru&view=guruorders&layout=mycertificates ---- wrong template style where unwanted modules appear
  2. /index.php?option=com_guru&view=guruorders&layout=mycertificates&Itemid --- wrong template style but without modules
  3. If you are logged in and access the "My certificates" menu from the right (menu 2), the correct style appears, with the set menu being "My certificates" (so with the link /index.php?option=com_guru&view=guruorders&layout=mycertificates)
    Menus are set up correctly for each Guru page in the administration.

How can I make sure that any page related to Guru displays only one template style?

    This message is visible to Moderators only
    hidden content

    veterinarul /index.php?option=com_guru&view=guruorders&layout=mycertificates ---- wrong template style where unwanted modules appear
    /index.php?option=com_guru&view=guruorders&layout=mycertificates&Itemid --- wrong template style but without modules

    From which page I can see these links? these links will show the component view and it will open in the default page of your site.

    I set up guru > Courses > Edit Course > Add Custom URL Page if you want to redirect students to that page after the course is completed. Custom Page URL: https://www.veterinarul.ro/index.php?option=com_guru&view=guruorders&layout=mycertificates&Itemid. This is the link generated by guru for the "My Certificates" page. The original setting is actually https://www.veterinarul.ro/index.php?option=com_guru&view=guruorders&layout=mycertificates without &Itemid, but if I use it that way, a template style appears which greatly confuses users (it's actually the main page of the site).

    At both these links, a completely different style appears.

    The style that should appear is this:
    https://www.veterinarul.ro/gurupcategs
    https://www.veterinarul.ro/guruorders/mycourses
    https://www.veterinarul.ro/guruorders/mycertificates

    These links are created by SEO based on the menus I set up, which internally link to guru categories, courses, my certificates, and they appear correctly if I access the courses from the menu. Strangely, at their core, they have this link - for example, for my certificates: https://www.veterinarul.ro/index.php?option=com_guru&view=guruorders&layout=mycertificates - which is the link that causes problems if accessed as an external link.

    In other words: the same link, if it is internal (taken from the website's internal menu settings), appears correctly; if it is an external link, it appears incorrectly. I am trying to explain a peculiarity that I don't understand.

    If you access the links from the post, you will see that pages with different appearances come up, even though they are actually the same link.

      Could I take a backup of your site via Akeeba backup and debug in my local environment?

      veterinarul
      Hi,
      In stead of leaving Item params empty, you should use a menu id that asign to guru compoent. For example:

      https://www.veterinarul.ro/index.php?option=com_guru&view=guruorders&layout=mycertificates&Itemid=226

      Please check.

      and Item, what number does it have? is the Id of each course?

        veterinarul
        Hi,
        It's menu ID. In your case, it should be a menu that is asigned to guru component. You can use Itemid=226.
        Regards

        thank you very much for the answer.
        it seems to work. I don't know why I didn't think of it.

        all the best

        Write a Reply...
        You need to Login to view replies.