+ Reply to Thread
Results 1 to 5 of 5

Thread: general_Olx customization category menu in all page.

  1. #1
    Junior Member
    Join Date
    Jun 2021
    Posts
    7

    Question general_Olx customization category menu in all page.

    hi, im trying to display category carousel in all pages
    1.jpg
    currently it is display only in homepage with this call in content.tpl
    {if $pageInfo.Key == 'home'}
    {include file='blocks'|cat:$smarty.const.RL_DS|cat:'categor ies_carousel.tpl'}
    {/if}
    I tried to remove the if statement but nothing happened, so I printed the variable $category_menu present in categories_carousel.tpl and I saw that the array returns the categories, while in the other pages the value is null
    2.jpg

    can you suggest me how i can display this widget in other pages? how i can load $category_menu value ?
    Last edited by Fabio Russo; August 20, 2021 at 01:53 PM.

  2. #2
    Try

    {if $pageInfo.Key != 'homez'}
    {include file='blocks'|cat:$smarty.const.RL_DS|cat:'categor ies_carousel.tpl'}
    {/if}

    Also is this code in content.tpl file?

  3. #3
    Junior Member
    Join Date
    Jun 2021
    Posts
    7
    yes this code is in content.tpl but as i sayd nothing happened if i change if statement or i remove it...
    the point is that $category_menu doesn't return array in other page so the foreach statement in categories_carousel.tpl do not print nothing

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    Use phpMyAdmin or another database manager and run this request:

    Code:
    Only registered members can view the code.
    then edit the found entry and remove this part from the column 'Code':

    || $GLOBALS['page_info']['Key'] != ''home'
    Last edited by Rudi; August 23, 2021 at 10:18 AM.

  5. #5
    Junior Member
    Join Date
    Jun 2021
    Posts
    7
    thanks its working

+ Reply to Thread