Sourcerer plugin not working

Category: GPS Tools 6 days ago

Hi,

Google Search Console is showing me Mobile Usability problem for GPS Tools links (viewport not set, links to close, text too small). Atleast partly I am trying to solve that with using small html/css script to style gps track description text in editor. For that purpose I am using Sourcerer plugin. Pls check below script.

Now, problem occurs as in List Layouts "show intro" does not show only short description of the item, but show css code as well. It starts with code within <style></style> tags.

Pls check attached image. Otherwise Sourcerer plugin works ok inside GPS Tools tracks.

Pls let me know how to solve that problem.

 

Thx&brgds

Matej

 

 

 

{source}
 
<!DOCTYPE html>
<html lang="sl">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/a09b66d016.js" crossorigin="anonymous"></script>

<style>

a#deligps:hover {
color: orange;
}

a#deligps {
color: grey;
}

p#deligps {
font-family:"Trebuchet MS", Helvetica, sans-serif;
font-size: 16px;

}

</style>

</head>


<body>

<div style="width:100%; display: inline-block; height: 24px;"></div>


<p id="deligps">GPS sled prikazuje krožno pot na Stegovnik preko Močnikovega sedla. Pot se zaokroži na sedlu in razpotju več poti imenovanem Pri lojtri. Krožen povratek, ki ga prikazuje modri del sledi poteka preko izredno slikovitega naravnega okna, ki je že samo po sebi vredno celotne ture. Stegovnik je izvrsten razglednik, saj se nahaja približno na sredi med Košutnikovim turnom, Storžičem in Kočno.</p>

<div>

<p id="deligps" style="float:left; font-style:italic; padding-left:6px; padding-top:10px; margin-right:15px;">
<a id="deligps" href="/https://vnaravi.si/karavanke/stegovnik"><i class="fas fa-hiking"></i> Izlet</a></p>

<p id="deligps" style="float:left; font-style:italic; padding-left:6px; padding-top:10px; margin-right:15px;">
<a id="deligps" href="https://vnaravi.si/images/kam-na-izlet/stegovnik-galerija/app-files/index.html"><i class="fas fa-street-view"></i> Panorama</a></p>

<p id="deligps" style="float:left; font-style:italic; padding-left:6px; padding-top:10px; margin-right:15px;">
<a id="deligps" href="https://vnaravi.si/galerija/category/435-stegovnik"><i class="fas fa-binoculars"></i> Galerija</a></p>

</div>

<div style="display:inline-block; width:100%; height:1px;"></div>



</body>
</html>
 
{/source}

 

17660_1_gps tools error.jpg (You do not have access to download this file.)
Like it on Facebook, Tweet it or share this topic on other bookmarking websites.
  • Re: Sourcerer plugin not working

    by » 6 days ago


    The problems that you mentioned are related to your template, how are they solved by fixing GPS Tools? What exactly the fix needs be?


    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    Sociable | Surveys | 
    CjForum | Polls | Answers | Quizzes | Quotes | GPS ToolsCjFit | CjBlog


  • Re: Sourcerer plugin not working

    by » 6 days ago


    Hi,

    my question should be more simple :). Let me ask you again.

    If I want to style track description in editor with html/css using Sourcerer plugin error occurs in List Layouts - show intro. Instead of showing only track description it shows css code as well. Pls check attached image 1.

    When click on particular track within List Layout Sourcerer plugin works correctly - inside Track only description is visible.

    Pls check attached images. Image 1 shows error in List Layouts. Images 2 show the same description inside Tracks shown correctly.

     

    Pls let me know how to solve  Sourcer plugin error related to List Layouts.

     

    Thx&brgds

    Matej

     

    33654_2_1-sourcerer error.jpg (You do not have access to download this file.)
    33654_2_2-sourcerer ok-1.jpg (You do not have access to download this file.)

  • Re: Sourcerer plugin not working

    by » 6 days ago


    The component simply strips off all HTML tags and shows the intro in the listing page. I am not sure how the sourcer plugin is adding content to the description. So you can override the behavior and show the html tags instead. 

    components/com_gpstools/layouts/LAYOUTNAME/tracks_list.php line 264

    <?php echo JHtml::_('string.truncate', strip_tags($item->description), $params->get('list_intro_limit', 180));?>

     

    change this toi

    <?php echo JHtml::_('string.truncate', $item->description, $params->get('list_intro_limit', 180));?>

     

    I hope it will works. Otherwise you need to contact the plugin developer to find the right solution.


    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    Sociable | Surveys | 
    CjForum | Polls | Answers | Quizzes | Quotes | GPS ToolsCjFit | CjBlog


  • Re: Sourcerer plugin not working

    by » 6 days ago


    Hi,

    I think <style></style> tags somehow make a problem, as in my case if html p, a tags are styled inline everything is ok. I guess that is also a solution for my question :).

    Thx for your prompt responses.

    Brgds/Matej


You do not have permissions to reply to this topic.

Powered by CjForum

Trending Topics

Changing system messages
  • 0 replies
Hi, Currently there is a system message that says "You are not...

Component fixes needed
  • 4 replies
1. Why isn't the Authors section marked blue when I go to that...

Urgent - single survey links have You are not authorised to view this resource error message
  • 5 replies
Hi,   since updating to latest version the live survey we...

multi groups
  • 6 replies
Hello,I re-read the documentation...

use joomla member profile
  • 7 replies
Hi I will need to list the members, according to different...