Jump to content

Topic on Extension talk:Title Icon/Flow

RDGGDR (talkcontribs)

I've had Title Icon/Viki Title Icon working before. I've just installed a fresh wiki (1.26, as 1.27 seems to have problems with SMW). I've got the 1.26 version of Title Icons installed, with the Title Icon property set as a Text property and the following in LocalSettings.php:

require_once "$IP/extensions/TitleIcon/TitleIcon.php";

$TitleIcon_TitleIconPropertyName = "Title Icon";

I'm getting the following error when I set a Title Icon (and the icon doesn't display):

Uncaught ReferenceError: jQuery is not defined(anonymous function) @ index.php?title=Test_System:168

This resolves to:

<script>/*<![CDATA[*/jQuery( document ).ready( function() {

jQuery( '#firstHeading' ).each( function( index ) {

var title = jQuery( this ).html();

jQuery( this ).html( '<a href="/wiki/index.php?title=Test_System" title="Imagetitle"><img alt="Imagealt" src="/wiki/images/thumb/6/6c/Image.png/36px-Image.png" width="36" height="36" srcset="/wiki/images/thumb/6/6c/Image.png/54px-Image.png 1.5x, /wiki/images/thumb/6/6c/Image.png/72px-Image.png 2x" /></a>&nbsp;' + title );

} );

} );/*]]>*/</script>

Cindy.cicalese (talkcontribs)

That error is fixed in the most recent commit on the master branch and the REL1_27 branch. You can use the REL1_27 version with 1.26.

Reply to "jQuery error"