Ever find that on long weblog forms it’s kinda annoying having to scroll back up to the top of the page to access the submit button?
We noticed that Magento Commerce has a very cool feature that keeps this button within reach as you scroll down the page and decided to set about duplicating this functionality for Expression Engine. The result can be seen in a video here: http://720.com.au/web/?p=90
Hope you find it handy! Direct download link: Publish Button 1.0.3
or try the beta: Publish Button 1.1 (beta)
Yep a great extension this one. If I’d have known how to make it myself then I would have done ages ago so thanks for this. The way I’ve been getting around it was to get rid of the two buttons other than the save (renamed) button and then pressing enter in a field was doing the job but this is a really nice addition.
I did notice though that I got an error at the top of the page when enabling the extension though :
Notice: Undefined variable: submitboxcontent in /usr/local/psa/home/vhosts/*******com/httpdocs/admin/extensions/ext.blis_publish_button.php on line 217
Also the size of the font on the extensions page then goes very large. Not too sure what that’s all about though?
Best wishes,
Mark
@JT - Glad you like it. Thanks for the feedback.
@Mark - Sorry about that error, I’ve just updated the extension to version 1.0.1 (download from original link above) which should fix it by using some default values. I haven’t been able to replicate the font problem on the extensions page though so this may still be an issue. If you find this problem is still there after you have updated the extension, it would be really helpful if I could see a screenshot of what’s happening. Hopefully from that I can figure out how to fix it.
Thanks again.
Sam
That is very smart.
I’ve been doing something similar already by adding a style to the default.css for the control panel theme (alternatively it can be added with LG Add Sitename)…
.publishBox .submitBox {
position:fixed;
z-index:10;
padding:10px 50px;
top:88px;
right:18px;
}But your solution is far smoother. Does it work with whatever buttons are visible on the form or is it fixed?
e.g. I have just “Save” or if editing “Save” and a cehckbox for “save as new” (see attached).
Have installed - looks good thank you for sharing, will now be part of my standard installs!
One change requests though: need to add CSS to change label to white:
#scrollingDiv label {
color:#FFF;
}Also One bug: The Z index is off, with playa v2 and File extensions installed, the scrollingDiv panel appears beneath. This solves it (only tested on Firefox):
#scrollingDiv {
z-index:2;
}Thanks,
Peter.
Actually one other thing I’ve noticed with the new version is that now it is showing all three buttons whereas in the older version (the one that had the error message) it was only showing the one button which I had made work in that way by using the Publish Page Improvements extension. Not too sure why that is though?
@Peter - Thanks for the suggestions, I’ve pulled the z-index back to 2 but as the extension doesn’t use any label tags I’ve been hesitant to include a CSS rule for them. Feel free to convince me to do so 😊
@Sean - Glad it’s working well for you. Thanks for letting me know.
@Mark - I hadn’t used the Publish Page Improvements extension before but have installed it and discovered there is a partial compatibility problem. This has been addressed in the latest version (1.0.2) however I have found that despite having a much lower priority on my extension, it still loads before the PPI extension. This means that you get the default buttons in the Publish Button Toolbar rather than the customised PPI buttons. If you have any thoughts on why this might be the case, it would be really helpful.
Hiya,
@Mark - I hadn’t used the Publish Page Improvements extension before but have installed it and discovered there is a partial compatibility problem. This has been addressed in the latest version (1.0.2)
What else was incompatible with it then? I only noticed the buttons problem.
however I have found that despite having a much lower priority on my extension, it still loads before the PPI extension. This means that you get the default buttons in the Publish Button Toolbar rather than the customised PPI buttons. If you have any thoughts on why this might be the case, it would be really helpful.
I’m not too sure really but all I do know for a certain is that before you upgraded your extension the buttons in your overlay were paying respect to the other extension settings but now they’re not. The only problems I really had were the error on the screen when enabling the extension and the font size going a bit funny which I put down to the error appearing on the screen. The buttons however were paying respect to the other extension however now after the update to get rid of the error on enabling it seems to now not pay respect to the other extension.
Not a biggie and not really too sure what to do about it but just thought I’d let you know.
Again, this is a really really great extension which will definitely come in handy on a site I’m creating at the moment as in the one weblog there are over 150 custom fields!! I’ve never made a site with anything more than about 30 before but these are all required in order for a custom search module to work so definitely needed in this instance and your extension should come in really handy there so thanks.
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.