Hello , i have problem with alt on image .. alt atribute dont work in NSP GK5 ;/
how fix it ? any solution ?

    Hi rominek

    Could you share the admin login info and tell me more details of issue?

    i write u on private msg - how make prv msg ? 🙂
    i dont know how send prv msg here .. can u give your mail ?

      rominek Yes, only Moderator can see this info. Let me check and will get back to you.

      ok , i wait for your opinion what is wrong with site - why NSPGK5 dont show alt atribute in image ;/
      i edit Fields and add FTP info for u

      propobly does this have to do with the lack of title attribute in the images?

        rominek I've shared with development team for further updating on this.

        12 days later

        maybe you already know something? is there any chance that the change will be introduced by the end of november? possibly by the end of 2020?

          rominek
          Hi,
          As i check, your article doesn't have intro image, so NSP GK5 will use first image of article. Unfortunately, NSP GK5 doesn't support show alt attribute on this case.

          Please consider to add intro text and its alt text to your article.

            manhta yes we have that configure , take first image in article .. so u mean .. we need check it with "image and links" option in article ...

            and is it possible to manually modify the php files to add this alt / title to the first image from the article? the pictures have alt / title but the NSP GK5 configuration is to take the first picture from the article not from option images & links

            changing that number of articles will be a bit problematic .. maybe you can modify a single script to load it?

              rominek

              Hi,
              You could do this to get first image alt text if not set intro image

              File modules\mod_news_pro_gk5\tmpl\com_content\view.php

              Add these code to line 234

              if (!$alt_text) {
              	preg_match('/<img.*?alt="(.*?)".*?>/', $item['text'], $matches);
              	if (isset($matches[1])) {
              		$alt_text = $matches[1];
              	}
              }

              I already modified your site. Please check.

                manhta dont work ;/ its little strange .. in "inwestycje" on right of the main site .. title/alt show correct ;/

                  ok , here ofc is .. so we need TITLE atribute ... for display that alt/title when hover the mouse

                    rominek
                    Hi,
                    You can open file modules\mod_news_pro_gk5\tmpl\view.php
                    Change line 350 to

                    $img_attrs .= ' title="'.$alt_text.'" alt="'.$alt_text.'" '.$size;

                      manhta work perfectly .. .where need send beer?
                      i have only last one question ... not important because what i want its DONE ... but maybe its posible to make it like ALT/TITLE in navigation button

                        rominek

                        You can use this code, do at same place

                        $img_attrs .= ' data-toggle="tooltip" data-placement="auto" title="'.$alt_text.'" alt="'.$alt_text.'" '.$size;
                          You need to Login to view replies.