Editing layout for MiniTicker

How can I edit the markup for the 'Ticker Title' value, as specified in the Admin area?

I've created an override for the module, but this doesn't go that far back. It only allows me to edit the list of items that are displayed.

The title is surrounded by <span> tags, which allows styling, but I want to make this title linkable to another page on my site.
10 years 7 months ago #1 by Lee Collings

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
Hi Can you let me know the URL of your site so I can take a look?
10 years 7 months ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
It is generated by generated by js actually. How about to add something like this in the Title Text at MiniTicker backend :
<a href="http://wyourwebiste"" target="_blank">Headlines
10 years 7 months ago #3 by TemplatePlazza

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
If it still doesn't work, try to addd this jquery anywhere on your template
jQuery('.ticker-title').click(function(){
    window.open('your-url.com');
  return false;
});
10 years 7 months ago #4 by TemplatePlazza

Please Log in or Create an account to join the conversation.

None of these options work.

The <a> tag in the backend won't work because upon saving, it simply gets stripped out, and reverts to the text inside the <a> tag.

And the jquery doesn't seem to render anything, using both jQuery and $ at the start.

Are you able to re-work it so that this title area appears in the layout php files, so it can be overridden?
10 years 7 months ago #5 by Lee Collings

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline

The <a> tag in the backend won't work because upon saving, it simply gets stripped out, and reverts to the text inside the <a> tag.

open file /module/mod_miniticker/miniticker.xml, arround lines 83 find this line :
<field name="tickerTitleText" type="text" default="Headlines" label="MOD_MINITICKER_TICKERTITLE_LABEL" description="MOD_MINITICKER_TICKERTITLE_DESC" />

change with
<field name="tickerTitleText" type="text" default="Headlines" label="MOD_MINITICKER_TICKERTITLE_LABEL" description="MOD_MINITICKER_TICKERTITLE_DESC" filter="war" />
10 years 7 months ago #6 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum