Display of categories in menu | Plikli Customization | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
Display of categories in menu
Avatar
Paul
Member
Members
Forum Posts: 9
Member Since:
December 16, 2018
sp_UserOfflineSmall Offline
1
January 27, 2019 - 12:04 pm
sp_Permalink sp_Print

Hi,

I want to add a bit of extra flexibility to the display of categories in the catergoies menu bar and in a drop down list of categories. I've added an extra field, category_display, to the category table, I've added an extra line $array[$i]['display'] = $row->category_display; to dbtree.php around line 160 but when I try to access this new variable in bootstrap\categories.tpl using $cat_array[thecat].display then I get nothing, the variable doesn't exist. I'm obviously missing an asignment somewhere. I've cleared the cache but it doesn't make any difference.

Any suggestions?

Thanks

Paul

Avatar
redwine
Admin
Forum Posts: 324
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
2
January 29, 2019 - 2:11 pm
sp_Permalink sp_Print

It must be added in /libs/html1.php

got line 351 and insert a new line and add this:
$array[$i]['display'] = $row->category_display;

Now you have access to it in the tpl files, where Categories are displayed like so:
{$cat_array[thecat].display}

Avatar
Paul
Member
Members
Forum Posts: 9
Member Since:
December 16, 2018
sp_UserOfflineSmall Offline
3
January 29, 2019 - 6:58 pm
sp_Permalink sp_Print

Escellent, exactly what I was missing.

Thanks

Paul

Avatar
redwine
Admin
Forum Posts: 324
Member Since:
February 21, 2018
sp_UserOfflineSmall Offline
4
January 30, 2019 - 5:17 am
sp_Permalink sp_Print

Great!

Forum Timezone: Asia/Beirut

Most Users Ever Online: 16

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

john: 47

Nishant kumar: 33

Mosage: 25

Punk: 23

Martin Gold: 22

Felipe: 21

Hiro: 13

StaticMove: 13

yami: 13

Cesar: 12

Newest Members:

Quinta

arun bhanot

Oliva Mutia

Jasa Seo Terbaik

bhawanaconsultancy

gamus

abbslaw

Aniruddh Nishad

Quid Slots

sk1212

Forum Stats:

Groups: 1

Forums: 8

Topics: 109

Posts: 655

 

Member Stats:

Guest Posters: 0

Members: 114

Moderators: 0

Admins: 1

Administrators: redwine