cancel
Showing results for 
Search instead for 
Did you mean: 

Removing 'Publish Internal and External' blog button

driekhof
Champ in-the-making
Champ in-the-making
Hello,

We'd like to remove the Publish Internally and Externally button from our site blogs.

I've tried removing the code for the button in an overridden version of share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/blog/postedit.get.html.ftl.  This doesn't work–for some reason it breaks the Publish Internal button, and you can't publish anymore with a bunch of missing identifier errors.  Also tried just hiding it, but the button always seems to show up whatever I do.

I grep'd for some keywords relating to this button and found some javascript code in share/components/blog/postedit-min.js and blog-common-min.js.  Tinkered around with it a bit, but could never remove the button without breaking the other Publish Internal button.

How do I do it?
1 REPLY 1

driekhof
Champ in-the-making
Champ in-the-making
Finally found something that worked.  Changing the code in postedit.get.html.ftl to this worked, Yay!


         <div class="yui-gd">
               <div class="yui-u first"> </div>
               <div class="yui-u">
                  <input type="submit" id="${args.htmlid}-save-button" value="" />        
                  <input type="button" id="${args.htmlid}-publish-button" value="${msg('action.publish')}" class="hidden" />
                  <input type="reset" id="${args.htmlid}-cancel-button" value="${msg('action.cancel')}" />
               </div>
   
               <div class="hidden">
                  <input type="button" id="${args.htmlid}-publishexternal-button" value="" />
               </div>
   
         </div>