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;

                  manhta u are faster then me 🙂 .. thanks

                  i see for u its easy so maybe u know how to add "title article" in option Read More ...
                  and how to change URL and READ MORE alt/title atribut .. the same like image ...

                    Hi rominek

                    We can help you with the default features of module only, for customization like this, it's out of our support scope for free members.

                    Thanks for your understanding!

                    I understand ... thanks for what you did, I'm disabling access. greetings

                    Write a Reply...
                    You need to Login to view replies.