留言板
Javascript in Portlet
Hi,
I'm tring to incorporate Google banners insisde of a portlet. BUt what they give us is a javascript similar (thi is just an example) to this,How can I incorporate this inside of a portlet?:
I'm tring to incorporate Google banners insisde of a portlet. BUt what they give us is a javascript similar (thi is just an example) to this,How can I incorporate this inside of a portlet?:
<!--
google_ad_client = "pub-1784252892694028";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2006-12-19: articles, channels, contact point, front page, gallery
google_ad_channel = "0610556701+9480267223+5921861591+4548111581+7273758235";
google_color_border = "E7E5D3";
google_color_bg = "FFFFFF";
google_color_link = "FF0000";
google_color_text = "000000";
google_color_url = "FF0000";
//-->
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</code></pre></script>
Liferay comes with Google AdSense portlet. Just add that to the page and configure it with your adsense settings (the same ones as in javascript. You should notice that there is bug in Liferay 4.3.0 and you cant' add border color JIRA issue LEP-3452 that is fixed for Liferay 4.3.1. The fix is simple just add a space between input and class in ROOT/html/portlet/google_adsense/edit_configuration.jsp for colorBorder input