data:label.url.canonical doesnt work in Label widget

244 views
Skip to first unread message

Learner

unread,
Apr 16, 2019, 6:55:06 AM4/16/19
to Forum Blogger Ambassade Francophone
Mon message
Hi,
This is code of my Label widget:
<b:widget id='Label1' locked='false' title='Label' type='Label' visible='true'>
    <b:widget-settings>
      <b:widget-setting name='sorting'>ALPHA</b:widget-setting>
      <b:widget-setting name='display'>LIST</b:widget-setting>
      <b:widget-setting name='selectedLabelsList'/>
      <b:widget-setting name='showType'>ALL</b:widget-setting>
      <b:widget-setting name='showFreqNumbers'>false</b:widget-setting>
    </b:widget-settings>
    <b:includable id='main' var='this'>
  <b:include name='widget-title'/>
  <b:include name='content'/>
</b:includable>
    <b:includable id='cloud'>
  <b:loop values='data:labels' var='label'>
    <span class='label-size'>
      <b:class expr:name='&quot;label-size-&quot; + data:label.cssSize'/>
      <a class='label-name' expr:href='data:label.url.canonical'>
        <data:label.name/>
        <b:if cond='data:this.showFreqNumbers'>
          <span class='label-count'><data:label.count/></span>
        </b:if>
      </a>
    </span>
  </b:loop>
</b:includable>
    <b:includable id='content'>
  <div class='widget-content'>
    <b:class expr:name='data:this.display + &quot;-label-widget-content&quot;'/>
    <b:include cond='data:this.display == &quot;list&quot;' name='list'/>
    <b:include cond='data:this.display == &quot;cloud&quot;' name='cloud'/>
  </div>
</b:includable>
    <b:includable id='list'>
  <ul id="bloglabel">
    <b:loop values='data:labels' var='label'>
      <li><b:class cond='data:blog.searchLabel == data:label.name' name='hover'/>
        <a class='label-name' expr:href='data:label.url.canonical'>
          <data:label.name/>
          <b:if cond='data:this.showFreqNumbers'>
            <span class='label-count'><data:label.count/></span>
          </b:if>
        </a>
      </li>
    </b:loop>
  </ul>
  
</b:includable>
  </b:widget>

"data:label.url.canonical" just return empty string, like <a class="label-name" href="&amp;max-results=9">...</a>. I use 'canonical' to remove "?m=1" in url in mobile theme. How can I fix this problem? Thank you!
From google translate:
C'est le code de mon widget Label:
{au dessus de}
et il montre juste une chaîne vide: <a class="label-name" href="&amp;max-results=9">...</a>. J'utilise 'canonical' pour supprimer "?m=1" dans l'URL du thème mobile. Comment puis-je résoudre ce problème? Je vous remercie!
URL de mon blog

Soraya Lambrechts [fr-BE]

unread,
Apr 16, 2019, 11:42:09 AM4/16/19
to Forum Blogger Ambassade Francophone
Hi,

Currently, data:labels[i].url is only string instead of URL.

The parameters .canonical, .http and .https are not available.

I sent a note to Blogger. ;)

Thanks :)
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages