LostKobrakai Posted May 15, 2015 Share Posted May 15, 2015 Basically it's this. If you need this to only work in Fredi and not in the default backend, then it'll need some modification: https://processwire.com/talk/topic/3159-hide-settings-tab-in-page-edition/?p=90280 Link to comment Share on other sites More sharing options...
regesh Posted May 15, 2015 Share Posted May 15, 2015 But this remove (hide) tabs and from admin interface. but i need only in fredi popup. On preview video there is no tabs at all. Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 15, 2015 Share Posted May 15, 2015 The preview video was posted 2 years ago, the handling of tabs has changed since then (besides the obvious mayor version updates), so this most likely would need changes to the module. Or you find a way for an external module (my last post) to remove the tabs only if it's called by fredi and not as normal backend process. Link to comment Share on other sites More sharing options...
regesh Posted May 15, 2015 Share Posted May 15, 2015 The preview video was posted 2 years ago, the handling of tabs has changed since then (besides the obvious mayor version updates), so this most likely would need changes to the module. Or you find a way for an external module (my last post) to remove the tabs only if it's called by fredi and not as normal backend process. please link to your post. Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 15, 2015 Share Posted May 15, 2015 The one you lamented about, that it would remove tabs everywhere: https://processwire.com/talk/topic/3265-fredi-friendly-frontend-editing/?p=95063 To make it more obvious, currently there seems to be no ready-to-use way to remove those tabs only in Fredi. You'd either need to solve this on your own or find someone who would take a look at it for you (extend/update Fredi or hook somewhere in between to remove the tabs). Link to comment Share on other sites More sharing options...
regesh Posted May 18, 2015 Share Posted May 18, 2015 Thanks. I'll look up. Link to comment Share on other sites More sharing options...
apeisa Posted May 22, 2015 Author Share Posted May 22, 2015 Just pushed version 1.1.0 to github. It adds options to hide tabs, but also new nice feature where edit area and links are shown on when hovering (fallback to normal links when using touch enabled device). 6 Link to comment Share on other sites More sharing options...
Macrura Posted May 22, 2015 Share Posted May 22, 2015 wow just in time Link to comment Share on other sites More sharing options...
apeisa Posted May 22, 2015 Author Share Posted May 22, 2015 While I was it, I decided to tackle the PageTable problem also. So now the version 1.1.1 works with PageTables also (it's modal inside modal, so not exactly the dream come true, but it works if you need it). 4 Link to comment Share on other sites More sharing options...
Marty Walker Posted May 23, 2015 Share Posted May 23, 2015 Thanks for the update Antti. In the settings if I have checked 'Always hide settings tab' & 'Always hide children tab' and NOT the 'Always hide delete tab' I lose the delete tab on the front-end. Link to comment Share on other sites More sharing options...
apeisa Posted May 23, 2015 Author Share Posted May 23, 2015 Thanks for testing it Marty! How do you like the new edit links? I cannot reproduce the delete tab issue here. It shows for you if you allow all the tabs? Do you use $fredi->hideTabs() method at all (not required though)? Interested to hear if that works. Link to comment Share on other sites More sharing options...
cstevensjr Posted May 23, 2015 Share Posted May 23, 2015 I know I am enjoying the recent changes to this module. Thanks for the new edit links. 2 Link to comment Share on other sites More sharing options...
Marty Walker Posted May 23, 2015 Share Posted May 23, 2015 Thanks for testing it Marty! How do you like the new edit links? I cannot reproduce the delete tab issue here. It shows for you if you allow all the tabs? Do you use $fredi->hideTabs() method at all (not required though)? Interested to hear if that works. If I use this I don't see the Delete tab either: <? echo $fredi->hideTabs("children|settings")->setText("Edit your page")->render("title|body"); This works fine though: <? echo $fredi->hideTabs("children|delete|settings")->setText("Edit your page")->render("title|body"); 1 Link to comment Share on other sites More sharing options...
apeisa Posted May 23, 2015 Author Share Posted May 23, 2015 When do you see delete tab? Link to comment Share on other sites More sharing options...
Marty Walker Posted May 23, 2015 Share Posted May 23, 2015 Sorry Antti. It's all good. I'm going completely mad. 1 Link to comment Share on other sites More sharing options...
apeisa Posted May 23, 2015 Author Share Posted May 23, 2015 Haha. No worries Link to comment Share on other sites More sharing options...
Marty Walker Posted May 24, 2015 Share Posted May 24, 2015 Actually, one thing I am noticing on a site I have ProCache installed: Link to comment Share on other sites More sharing options...
apeisa Posted May 24, 2015 Author Share Posted May 24, 2015 Damn, I haven't thought at all tabs that are added with autoload modules... It might be that it would still be better to have own "process page edit" instead using the same as core uses. I'll test and think about this little more. Thanks for letting me know Marty! Link to comment Share on other sites More sharing options...
bernhard Posted May 24, 2015 Share Posted May 24, 2015 just tried it and i like it! (no wonder ) update from the previous version on dev went smoothly. thanks for implementing this into your module! on my live server i got this error on installation: Error: Class Fredi contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (ConfigurableModule::getModuleConfigInputfields) (line 159 of /var/www/vhosts/+++/httpdocs/site/modules/Fredi/Fredi.module) This error message was shown because you are logged in as a Superuser. Error has been logged. PHP Version 5.3.10, ubuntu 1 Link to comment Share on other sites More sharing options...
apeisa Posted May 24, 2015 Author Share Posted May 24, 2015 Ah, I use the new config stuff there, so it requires 2.5.5 or later: http://processwire.com/blog/posts/new-module-configuration-options/ I probably should fall back to earlier method to support old installs and smooth upgrade... didn't think that at all Link to comment Share on other sites More sharing options...
bernhard Posted May 24, 2015 Share Posted May 24, 2015 sorry, forgot to mention i'm on ProcessWire 2.6.1 dev Link to comment Share on other sites More sharing options...
apeisa Posted May 24, 2015 Author Share Posted May 24, 2015 Sorry, there was clear bug. Fixed now! 1 Link to comment Share on other sites More sharing options...
pwFoo Posted May 25, 2015 Share Posted May 25, 2015 Hi Antti, awesome improvements with the last updates!!! Easiest frontend edit solution with all features and a styled form (admin style). Any plans to add a create new page feature to Fredi? 1 Link to comment Share on other sites More sharing options...
apeisa Posted May 25, 2015 Author Share Posted May 25, 2015 I'll look into it. Some very early version of Fredi supported it, so shouldn't be that hard. 1 Link to comment Share on other sites More sharing options...
pwFoo Posted May 25, 2015 Share Posted May 25, 2015 Would be great to use Fredi ( or a second module) to create pages Hidden fields (for example template, page name), hidden tabs (children, sesstings) and a "one step" create form would be great. Don't know if that would be possible (in an easy way)? Bug with Fredi settings? After save the settings all checkboxes are unchecked again? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now