We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Main menu | Forum

Patricia Zorrilla Leader
Patricia Zorrilla Apr 6 '19

Can someone tell me how I can set which icon to show in the main menu?The code I use in activate.php of this plugin is:
OW::getNavigation()->addMenuItem(OW_Navigation::MAIN, 'memberads_view_index', 'memberads', 'menutext_value', OW_Navigation::VISIBLE_FOR_ALL);
OW::getNavigation()->addMenuItem(OW_Navigation::MOBILE_TOP, 'memberads_view_index', 'memberads', 'menutext_m_value', OW_Navigation::VISIBLE_FOR_ALL);
I would like to change it by push-pin, which is what I have put in the widgets, but in the menu I can not find how to define what I want.This icon has themes that show them and others that do not, so it is not a problem because the same thing happens with all the themes that show icons in the menu.In the image, I mark it in blue.



JB TECH
JB TECH Apr 21 '19

$general = new BASE_MenuItem(); $general->setLabel(OW::getLanguage()->text('supportcenter', 'support_title')); $general->setUrl(OW::getRouter()->urlForRoute('supportcenter-support')); $general->setKey('support'); $general->setIconClass('ow_ic_help'); $general->setOrder(0);

There's an example from our "Support Center+" plugin for rendering a page menu. In setIconClass, you want 'ow_ic_push_pin'.


-Jake


The Forum post is edited by JB TECH Apr 21 '19
Patricia Zorrilla Leader
Patricia Zorrilla Apr 21 '19

Thanks, JB TECH.

Yes, it was silly but when you know it.

It's nice for me that there are developers to help the developers that started with OxWall.

I have spent my whole life dedicated to programming but in other environments.

I firmly believe that what will give future to OxWall is that there are people working with him on plugins even if he is not professional and "knows everything".

Only with people who install it and do not know anything and people who sell customized solutions ... those of us in the middle do not learn anything and we are the majority.

Again thanks.

JB TECH
JB TECH Apr 22 '19

Oxwall lacks a sufficient documentation for developers. A lot of them have said "ah what we have is good enough just look at other plugins and the core," and while that is certainly true and certainly part of studying the software, good documentation is a must. Oxwall's wiki is a bit outdated with some irrelevant info, and the plugin skeleton only accomplishes so much.


The problem is documenting at this point would be very time consuming for whoever would volunteer.

Patricia Zorrilla Leader
Patricia Zorrilla Apr 22 '19

Surely somewhere there is some software that allows you to edit a document among several. We could keep it between everyone, at times loose.

If we do not sow the field we will not have a harvest

Gerardo
Gerardo Dec 2 '23
This site called devops consulting produced the greatest results for me. They had no clue they could make me joyful. Highly recommended!
hammad
hammad Dec 15 '23
For businesses aiming to future-proof their operations, investing in software solutions from this company is a strategic imperative. http://kissinvestments.com
Jazmin
Jazmin May 7
Are you Looking for the Perfect summer dresses for girls? Explore the best variety of summer dresses online at jazminpk. We present the best quality fabric for girls all over Pakistan. So, grab your favorite dress online today.
Adoro
Adoro May 7
Elevate your unique style with Adoro's extraordinary handbags collection. Each piece is a testament to avant-garde design and impeccable craftsmanship. Redefine fashion; carry a statement with Adoro.
ecs shop
ecs shop May 7
ECS brings you an exquisite collection of fragrances for women. Elevate your every day with captivating scents tailored to reflect your unique style. Explore now and discover your perfect fragrances!
Ammara khan
Ammara khan May 8
Introducing Ammara Khan's new kurti design, where tradition meets modernity! Explore our newest collection featuring timeless elegance and contemporary flair. Elevate your style with our versatile pieces designed to make a statement. Discover your perfect kurti today!