Hey, I'm trying to add the ADDTHIS toolbar to the top of a news story or article but because ADDTHIS uses div tags CT doesn't like it. At the top we have the the title, author, date and time etc well we want to add a new section with ADDTHIS within it. Is there are a way to do this without the the source code going crazy because its a div within a div? Thanks
Sure its below. When posted this causes duplications of <h1> which is just the border and black bg for a section. <!-- Template: articles_pages --> {$insert['article_toc']} <h1>{$insert['article_title']} {$insert['article_edit']} {$insert['article_rating_line']}</h1> <div class="authorfont"><b>Editor</b>: {$insert['article_author']} (<i>{$insert['article_extra3']}</i>) <b>Date</b>: {$insert['article_date']} <a href="contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}pagesprinter{$insert['param_page']}{$insert['article_seo']},{$insert['articlepage_page']}.html" rel="nofollow"></a><a href="contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}summary{$insert['param_page']}{$insert['article_seo']}.html">{$insert['article_comments']} Comment(s)</a> - <a href="{$forum_link}">Join the discussion here</a></div> <h1> <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_google_plusone"></a> <a class="addthis_button_facebook"></a> <a class="addthis_button_twitter"></a> <a class="addthis_button_email"></a> <a class="addthis_counter addthis_pill_style"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e3952d27c2d5160"></script> <!-- AddThis Button END --></h1>
The following two possibilities should work 1) Code: <!-- Template: articles_pages --> {$insert['article_toc']} <h1>{$insert['article_title']} {$insert['article_edit']} {$insert['article_rating_line']}</h1> <div class="authorfont"><b>Editor</b>: {$insert['article_author']} (<i>{$insert['article_extra3']}</i>) <b>Date</b>: {$insert['article_date']} <a href="contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}pagesprinter{$insert['param_page']}{$insert['article_seo']},{$insert['articlepage_page']}.html" rel="nofollow"></a><a href="contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}summary{$insert['param_page']}{$insert['article_seo']}.html">{$insert['article_comments']} Comment(s)</a> - <a href="{$forum_link}">Join the discussion here</a> <br /><br /> <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_google_plusone"></a> <a class="addthis_button_facebook"></a> <a class="addthis_button_twitter"></a> <a class="addthis_button_email"></a> <a class="addthis_counter addthis_pill_style"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e3952d27c2d5160[/URL]"></script> <!-- AddThis Button END --> </div> 2) Code: <!-- Template: articles_pages --> {$insert['article_toc']} <h1>{$insert['article_title']} {$insert['article_edit']} {$insert['article_rating_line']}</h1> <div class="authorfont"><b>Editor</b>: {$insert['article_author']} (<i>{$insert['article_extra3']}</i>) <b>Date</b>: {$insert['article_date']} <a href="contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}pagesprinter{$insert['param_page']}{$insert['article_seo']},{$insert['articlepage_page']}.html" rel="nofollow"></a><a href="contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}summary{$insert['param_page']}{$insert['article_seo']}.html">{$insert['article_comments']} Comment(s)</a> - <a href="{$forum_link}">Join the discussion here</a></div> <div class="content"> <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style "> <a class="addthis_button_google_plusone"></a> <a class="addthis_button_facebook"></a> <a class="addthis_button_twitter"></a> <a class="addthis_button_email"></a> <a class="addthis_counter addthis_pill_style"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e3952d27c2d5160[/URL]"></script> <!-- AddThis Button END --></div>
Thanks Philipp the 2nd one worked a treat I've been looking at getting the Facebook "like" button onto each article and news story but you are only able to create code for a specified URL : http://developers.facebook.com/docs/reference/plugins/like/# Any idea how it can be implemented?
This was already part of Contentteller 2.1.3. You find this option under news/articles settings under "Other" Show Facebook Recommended button? => Yes You may need to add {$insert['newsstory_facebook']} to your news_story_extended and {$insert['article_facebook']} to your articles_summary templates.
Does it have to go on these pages? I have tried to add it in 'articles_pages' with the above social buttons but it will not diplay!