We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Publish Button Extension

Development and Programming

Blis Web Agency's avatar
Blis Web Agency
67 posts
16 years ago
Blis Web Agency's avatar Blis Web Agency

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)

       
JT Thompson's avatar
JT Thompson
745 posts
16 years ago
JT Thompson's avatar JT Thompson

What a great addition!!!

Thank you. it’s ALWAYS bugged me that you have to scroll back up.

Love it!

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

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

       
Blis Web Agency's avatar
Blis Web Agency
67 posts
16 years ago
Blis Web Agency's avatar Blis Web Agency

@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

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hi Sam,

Just to let you know that the error has now gone and so has the font problem so if I had to guess I’d say the two were probably somehow connected.

Thanks for looking into that and well done on a really great extension.

Best wishes,

Mark

       
Blis Web Agency's avatar
Blis Web Agency
67 posts
16 years ago
Blis Web Agency's avatar Blis Web Agency

Thanks Mark. Glad to know that’s got it sorted.

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

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).

       
Blis Web Agency's avatar
Blis Web Agency
67 posts
16 years ago
Blis Web Agency's avatar Blis Web Agency

Yes Twobelowzero, the idea is that you can modify anything within the DIV that encases those buttons and it will use that code. I’d be keen to know if this works for you.

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

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.

       
Blis Web Agency's avatar
Blis Web Agency
67 posts
16 years ago
Blis Web Agency's avatar Blis Web Agency

That’s great, thanks Peter. I’ll post an update here shortly with those changes in it.

       
JT Thompson's avatar
JT Thompson
745 posts
16 years ago
JT Thompson's avatar JT Thompson

yeah that’s my fav part. I’ve changed my buttons and the value= so my author’s understand them better, this extension doesn’t use static buttons, it just grabs yours using css and I assume a javascript to put the bar at the top after you scroll beyond it.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

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?

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

installed on a personal site and it works perfectly.

       
Blis Web Agency's avatar
Blis Web Agency
67 posts
16 years ago
Blis Web Agency's avatar Blis Web Agency

@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.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

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

       
1 2 3

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.