Giorgi625 VIP
Total posts: 655
23 Апр 2017 15:34

is it possible to give different titles for bookmark button in different sections ?

Последние изменения: 23 Окт 2017


Sergey
Total posts: 13,748
24 Апр 2017 11:55

I think yes.

Go to media/mint/icons/bookmarks/ and create your folder.

then in every template for list and full view you have bookmark selector. Select your folder there.


Giorgi625 VIP
Total posts: 655
24 Апр 2017 13:12

thanks


pepperstreet VIP
Total posts: 3,837
25 Апр 2017 00:36

@Sergey

That will change the icon/image, but not the tooltip title.
Apparently there is only one global language constant CMSG_BOOKMARKS.

At first, I could not find where and how this constant is set, than I saw the respective controls markup in the templates.

Example snippet – default list template – controls:

cob_templates_controls_bookmark_etc

It seems to be generated here:

.../components/com_cobalt/library/php/helpers/html.php

Unfortunately I can't use different/multiple languge overrides.
I would have to strg_replace via PHP !?


Sergey
Total posts: 13,748
04 Май 2017 15:46

I made it so that if you creaete constant CMSG_REMOVEBOOKMARK_1 or CMSG_ADDBOOKMARK_1 where _1 is ID of the type, it will use that one.


Giorgi625 VIP
Total posts: 655
04 Май 2017 17:29

Great, thats good solution


Giorgi625 VIP
Total posts: 655
26 Сен 2017 17:07

Because of it was not urgent I did not tested this feature at that time, but now I was not able to get needed result. After adding your suggested constant it anyway displayes default text.


Sergey
Total posts: 13,748
23 Окт 2017 13:49

Looks like I fortot _. Try CMSG_ADDBOOKMARK1 without _.

Работает на Cobalt