This package allows third-parties to intigrate their newsfeeds into the front page of the admin control panel. It does not provide any direct functionality to end users.
How to use?
- Bind a template listener on newsTabMenuTabs (template __indexNewsInjection) to add a new tab to the news tab menu:XML: templateListener.xml
<templatelistener name="newsTabMenuTabs"> <environment>admin</environment> <templatename>__indexNewsInjection</templatename> <eventname>newsTabMenuTabs</eventname> <templatecode><![CDATA[<li><a href="{@$__wcf->getAnchor('codequake')}">codeQuake</a></li>]]></templatecode> </templatelistener>
- Bind a template listener on newsTabMenuContents (template __indexNewsInjection) to add the tab content:XML: templateListener.xml
<templatelistener name="newsTabMenuContents"> <environment>admin</environment> <templatename>__indexNewsInjection</templatename> <eventname>newsTabMenuContents</eventname> <templatecode><![CDATA[{include file='__indexNews' application='cms'}]]></templatecode> </templatelistener>
Heads up! The tab menu content must be wrapped into a div element with the same id as the anchor name specified in step one. Assuming that you want to integrate a twitter widget, an example content might look like this:Code: __indexNews.tpl<div id="codequake" class="containerPadding"> <a class="twitter-timeline" href="https://twitter.com/codeQuake" data-chrome="nofooter transparent" data-widget-id="546662296089821185">Tweets von @codeQuake </a> </div>
-
Version 1.1.1
-
ShatteredMotion -
April 17, 2015 at 2:17 PM -
22.02 kB -
51 Downloads
-
-