Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • Otto Friend
    #191899

    Hello all,

    I have noticed something which I’m not sure if it is a bug or not but looks weird.

    When you are on the homepage and click on the sidebar menu Travel (in categories) you can see around 25 articles populating from the Travel category and its subcategories. (http://joomla-templates.joomlart.com/ja_wall/en/93-travel.html)

    When you click Pages though (just Pages, don’t click on the submenu items) and then you click on the sidebar menu Travel, you only see 5 articles.

    I noticed the url also, it keeps the ‘pages’ inside while you are on the travel page.
    joomla-templates.joomlart.com/ja_wall/en/pages/93-demo-contents/travel.html compared to this when on homepage joomla-templates.joomlart.com/ja_wall/en/93-travel.html

    Is there any explanation for this and/or a way to tackle the problem?
    Many thanks

    UPDATE:
    Apologies I have posted in wrong forum. I wanted to go to JA Wall section. Please erase it, not sure how.

    Otto Friend
    #510938

    Hello all,

    I have noticed something which I’m not sure if it is a bug or not but looks weird.

    When you are on the homepage and click on the sidebar menu Travel (in categories) you can see around 25 articles populating from the Travel category and its subcategories. (http://joomla-templates.joomlart.com/ja_wall/en/93-travel.html)

    When you click Pages though (just Pages, don’t click on the submenu items) and then you click on the sidebar menu Travel, you only see 5 articles.

    I noticed the url also, it keeps the ‘pages’ inside while you are on the travel page.
    joomla-templates.joomlart.com/ja_wall/en/pages/93-demo-contents/travel.html compared to this when on homepage joomla-templates.joomlart.com/ja_wall/en/93-travel.html

    Is there any explanation for this and/or a way to tackle the problem?
    Many thanks

    phong nam Friend
    #511004

    Hi ometaxas,

    Thank you for your feedback. This issue is happening on the JA Wall demo when the template is loading the blog or featured layouts settings of a Joomla Content Manager, instead of Category Blog menu item settings.

    The solution in this case is assigning that categories (Travel, Hi-tech, Art …) to menu items (Category Blog type) and configure the backend settings. By that way, the template will display the same layout of category on every pages.

    But, just lets me ask our template developers about this strange issue on J3.x version so that we will have more detailed explanation in this case.

    Otto Friend
    #511717

    Hi Leo,

    Thanks for the message. I think I have figured it out how to do it. You are right. It did work the way you described it.
    Thank God!

    Now I’m stuck on another bit. It’s like the next step for me.
    On the new menu items created as Category Blog type and position Sidebar, I went to Advanced Options tab and entered a page class on Page Display Options. That page class won’t show on the page.
    Is it because it is a Category Blog?
    stuck.com! 🙂
    Thanks Leo

    Note: i will mark this thread as solved as the initial problem I had is solved now. Feel free anyone that knows about the page class.

    phong nam Friend
    #511781

    Hi ometaxas,

    <blockquote>I went to Advanced Options tab and entered a page class on Page Display Options.That page class won’t show on the page. Is it because it is a Category Blog?</blockquote>

    The page class text will not visible on menu item page, but you can see it via Development Tools (Chrome tools or Firebug).

    i.e I add “homepage” to Page Class suffix option, it will appear like in my snapshot below, however make sure that you cleared System Cache each time after updating any backend settings.


    1. body
    Otto Friend
    #512700

    Hi Leo,

    Thanks for your reply.
    I have tried so many times to follow the steps but no glory 🙁

    When I add page class to my top menu items the class name goes to a div inside id=’content’. See image attached and the line highlighted. The ‘abouts’ class is the one I entered myself. It is not visible in body though :/

    And when I add a page class to the sidebar menu items which are Category Blogs type, the page class is not appearing anywhere.

    I have the latest version of the template and joomla 3.1.
    Is it possible to let me know which files are responsible for this page class to appear in body? Maybe I can have a close look. Or maybe it is something else?

    Many thanks as always


    1. page-class
    phong nam Friend
    #512824

    Hi ometaxas,

    Im sorry for the incorrect anwser on Page Class of JA Wall template previously. The JA Wall developer has confirmed me that he didn’t define the bodyClass() function to display the Page Class suffix on this template. That is why you couldn’t find it on the element view of Chrome developer tool.

    Don’t worry, you can display the Page Class suffix by following these steps:

    – Backup the templates/ja_wall/index.php file.

    – Open this index.php file and add below codes at 29th line inside the pho block (<?php ?>):

    $app = JFactory::getApplication();
    $menu = $app->getMenu()->getActive();
    $pageclass = '';

    if (is_object($menu))
    $pageclass = $menu->params->get('pageclass_sfx');

    – Also in this file, replace line:

    <body id="bd" class="<?php echo WallHelper::getBodyClass(); ?>">

    to

    <body id="bd" class="<?php echo WallHelper::getBodyClass(); ?><?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?>">

    Clear System Cache after editing.

    Otto Friend
    #512837

    Leo,

    I just have to say this: “Perfect!!!”
    A big thank you to you and the developer.
    You made me very happy. :):D

    Otto Friend
    #512966

    <em>@Leo Burnetts 398664 wrote:</em><blockquote>Hi ometaxas,

    Im sorry for the incorrect anwser on Page Class of JA Wall template previously. The JA Wall developer has confirmed me that he didn’t define the bodyClass() function to display the Page Class suffix on this template. That is why you couldn’t find it on the element view of Chrome developer tool.

    Don’t worry, you can display the Page Class suffix by following these steps:

    – Backup the templates/ja_wall/index.php file.

    – Open this index.php file and add below codes at 29th line inside the pho block (<?php ?>):

    $app = JFactory::getApplication();
    $menu = $app->getMenu()->getActive();
    $pageclass = '';

    if (is_object($menu))
    $pageclass = $menu->params->get('pageclass_sfx');

    – Also in this file, replace line:

    <body id="bd" class="<?php echo WallHelper::getBodyClass(); ?>">

    to

    <body id="bd" class="<?php echo WallHelper::getBodyClass(); ?><?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?>">

    Clear System Cache after editing.</blockquote>

    just a minor change as I noticed the ‘default’ class didn’t have space between the previous class.

    <body id="bd" class="<?php echo WallHelper::getBodyClass(); ?><?php echo $pageclass ? htmlspecialchars($pageclass) : ' default'; ?>">

    thanks again 🙂

    phong nam Friend
    #512987

    You can leave a space before that default class in the codes we suggested you above.

Viewing 10 posts - 1 through 10 (of 10 total)

This topic contains 10 replies, has 2 voices, and was last updated by  phong nam 10 years, 12 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum