"<a:href" in ultima-menu (Solved)

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
serenne
Posts: 98
Joined: 21 Jul 2015, 07:43

04 Oct 2018, 20:08

Hi Aragorn,
certainly a stupid question but I need to an "image" in the topbar for a new requirement.
So I add (just to test) :

Code: Select all

<li>
      <a href="http://www.google.com">
             <i class="topbar-icon fa fa-fw fa-sign-out"></i>
       </a>
</li>
The icon displays well just before an othere item (the one with the list of checboxex :), but nothing happens when I click on it ... Any idea would help !!

Kindest regards
Last edited by serenne on 19 Oct 2018, 16:36, edited 1 time in total.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

08 Oct 2018, 10:25

Fixed for next version. Please make the following changes in your layout.js file;

Code: Select all

...
//line 255
       this.topbarLinks.off('click.topbarLink').on('click.topbarLink', function(e) {
           ...
            
            /***** Please add these lines ***/
                var href = link.attr('href');
                if(href && href !== '#') {
                    window.location.href = href;
                }
            /****** End *******************/
            
            e.preventDefault();         
        });
Best Regards,

serenne
Posts: 98
Joined: 21 Jul 2015, 07:43

09 Oct 2018, 11:43

Thanks Aragorn !

As it seems that in my file the line numbers didn't correspond (I still was in 1.0.7 version), I tried to update to the latest 1.1.4

The link works fine with this version ... but perhaps it was not a good idea : colors in the topbar changed, and except dashboard all my pages are "broken"

What is your suggest : I stay in 1.0.7, or I change to 1.1.4 and in that case what migration operation will I have to perform ?

kindest regards
Philippe

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

11 Oct 2018, 09:19

I suggest you update the latest Ultima version. We are constantly trying to add improvements and new features. You may need these added features in the future. If you attach your error, I would be happy to help you.

Best Regards,

serenne
Posts: 98
Joined: 21 Jul 2015, 07:43

19 Oct 2018, 16:35

ok. Thanks. I will try to update aggin in a couple of days ...
Kindest regards

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

22 Oct 2018, 13:43

Thanks a lot for the update!

Post Reply

Return to “Ultima - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests