Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nigel Wilson 945 posts 2077 karma points
    Sep 13, 2011 @ 05:56
    Nigel Wilson
    0

    Unable to hide properties or tabs on 4.7

    Hi there

    Your package is exactly the solution for a site I am currently building so nice work on the development.

    I have installed the ASP4.0 package, the datatype was there. I have added the data type to my document type and I can see the tabs/properties tree when viewing a content node.

    However after clicking Save and Publish the selected fields are not saved.

    Do you have any suggestions - could it be a folder permissions issue where the selections aren't being written to file?

    Any ideas will be gratefully received.

    Thanks

    Nigel

  • Allan Hawkey 232 posts 303 karma points
    Sep 14, 2011 @ 12:51
    Allan Hawkey
    0

    Hi Nigel

    I'm also working on 4.7 and have uHidesy working (it's excellent!), but just run across a problem where it doesn't work on a particular page - it demonstrates the behaviour you describe - the tree appears and I can select fields, but after selecting those fields, and clicking Save and Publish, the changes are not saved.

    The page I have it working on is a standard document type - where I have the problem, the page is a document type which inherits settings from a parent document type.  Perhaps uHidesy does not work with child document types?

    Is this the same as your experience?

    Allan

  • Nigel Wilson 945 posts 2077 karma points
    Sep 14, 2011 @ 19:49
    Nigel Wilson
    0

    Hi Allan

    Yes the document type I was working on is a child document type, so maybe this is the issue.

    Nice thinking my man :-)

    I look forward to Anthony providing some feedback on this possible bug ?

    Nigel

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 14, 2011 @ 22:57
    Anthony Dang
    0

    Strange. I cant seem to replicate this issue. I've even created a child doctype.

    Can you both double check that all files are NOT readonly.

    Also, can you paste a screenshot of your content trees? or even better, use  screenr.com to show me a screen cast of exactly what is going on?

     

    Cheers.

     

  • Nigel Wilson 945 posts 2077 karma points
    Sep 14, 2011 @ 23:07
    Nigel Wilson
    0

    Hi Anthony

    Thanks for your prompt response.

    I am on annual leave today / tomorrow , returning to work on Monday.

    It is a site I am building at work so I will do a screen cast of the site then and post it on YouTube for you to view.

    Cheers and thanks again.

    Nigel

  • Danny Leech 36 posts 114 karma points
    Sep 15, 2011 @ 12:56
    Danny Leech
    0

    This a fantastic package, I'm finding it very useful! But I'm having the same issue here too. I have a master doctype that has two levels of nested child doctypes. I have added the control to the master doctype and it works hiding properties of this doctype onall pages. But doesn't work when hiding properties of child doctypes. Does this make sense? Same symptoms as above - save and publish doesn't save any changes I make with uHidsey. Looking forward to any suggestions?

    Cheers and thanks

    Dan

  • Allan Hawkey 232 posts 303 karma points
    Sep 15, 2011 @ 13:07
    Allan Hawkey
    0

    I encountered this problem while using the uBlogsy landing page document type - that's a 2nd level child document type, in case that makes a difference - Anthony, did you test just at a first level child?  I wonder if that's the difference here?

    Thanks
    Allan

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 16, 2011 @ 12:12
    Jeroen Breuer
    0

    I've got the same problem. Set uHidesy on a base documenttype and I can't hide properties which are on a child documenttype. Is this already fixed?

    It seems that even if the properties are on a base documenttype I also can't hide them on a child documenttype.

    Jeroen

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 16, 2011 @ 22:55
    Anthony Dang
    0

    I cant seem to replicate this issue even on 2nd level doctypes. As far as uhidesy is concerned, it does not matter if your doctype is inherited.

    I've tried this on a clean install of umbraco 4.7 using a starter kit.

    What packages do you have installed?

    Can you open up firebug while you're doing it and make sure there are no javascript errors. If there are js errors on the page (possibly from another package) then nothing is saved.

    One issue I had when creating uhidesy was that if some other javascript on the page crashed then uhidesy would save incorrect json. So my solution was to NOT save anything at all. I figured better to save nothing than to save corrupted data.

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 16, 2011 @ 23:09
    Jeroen Breuer
    0

    I've also installed the Tab Hider package because it has some features uHidesy is missing so I needed to combine it. The Tab Hider package has the option to only show tabs to the root admin (with id 0). If uHidesy would also support this I could remove the Tab Hider package which probably causes the error.

    Jeroen

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 16, 2011 @ 23:17
    Anthony Dang
    0

    Ah yes that might be your issue Jeroen. There is probably some javascript crash or race condition between the 2 tab hiding jquery functions.

    uHidesy hides from every user that is not an admin. It does not take to account different admins. I've never needed to hide things from different admins before.

    If you take a look at the javascript in the uhidesy control you might be able to figure it out.

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 16, 2011 @ 23:18
    Anthony Dang
    0

    ps. the codebehind simply reads and saves the json from file and umbraco. nothing special there...the magic is in the jquery.

     

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 16, 2011 @ 23:34
    Jeroen Breuer
    0

    Thanks but I already did it myself by hiding the properties using events :).

    Jeroen

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 16, 2011 @ 23:53
    Anthony Dang
    0

    ah no worries.

     

  • Allan Hawkey 232 posts 303 karma points
    Sep 17, 2011 @ 10:17
    Allan Hawkey
    0

    I tried this again on a clean installation of Umbraco 4.7 with only the uBlogsy (not sure if the starter kit is exactly the same?) and uHidesy packages installed.  Same issue.  I added uHidesy to the uBlogsy landing page - I even tried it on a couple of different tabs (1 created in this template, another inherited from the parent doc type), but got the same error with hiding options not being saved in each case.

    I tried with firebug, and saw no errors.

    There must be something not quite right, as there are quite a few of us with the same problem!

  • Nigel Wilson 945 posts 2077 karma points
    Sep 19, 2011 @ 00:41
    Nigel Wilson
    0

    Hi Anthony

    I cannot use Firefox to access the admin secion - something occasionally goes wonky with me being able to log in.

    So the following is a screencast using IE8 and there are no javascript errors appearing on the bottom left corner.

    http://www.youtube.com/watch?v=CbyG5gfshGI

    I have checked the file permissions on the json file and it is fine - inherited correctly and with "update" access.

    One (random) thought is MIME types on IIS - does anything need set in this respect that you know of ?

    Cheers

    Nigel

  • Allan Hawkey 232 posts 303 karma points
    Sep 19, 2011 @ 08:48
    Allan Hawkey
    0

    Anthony

    The behaviour as shown in Nigel's screencast matches what I'm getting (in Firefox, in my case).

    Thanks
    Allan

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 19, 2011 @ 14:13
    Jeroen Breuer
    0

    Just watched the YouTube video and that's what's also happening with me.

    Jeroen

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 19, 2011 @ 22:27
    Anthony Dang
    0

    You've probably already tried this but have you guys tried deleting the json in the settings.json file?

    Perhaps it got corrupted somehow.

    I've uploaded a new version of uhidesy to help debug issues on save. An exception will occur if something wacky happens.

    Just replace the dll and pdb files

    http://our.umbraco.org/projects/backoffice-extensions/uhidesy

     

     

  • Nigel Wilson 945 posts 2077 karma points
    Sep 19, 2011 @ 23:10
    Nigel Wilson
    0

    Hi Anthony

    Thank you for your help here...

    I tried deleting the content of the settings.json file but then when browsing a node there was a server error message - reinstating the default code restored normal service.

    I have replaced the dll and pdb files as per above and yes there is definitely some additional information now displaying :-)

    Refer to screendump to see the output.

    I haven't spent any time trying to work out the issue yet but thought I'd post this up now so you can see the output.

    I hope to get some time to spend on this later this week.

    Cheers again for your help.

    Nigel

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 19, 2011 @ 23:18
    Anthony Dang
    1

    Ah!

    Ok.

    I'm guessing the json is being broken possibly by a property name or description.

    Do you have any descriptions or property names which have any character which is not alphnumeric?

    If so, change the name to be only alphnumeric.

  • Nigel Wilson 945 posts 2077 karma points
    Sep 19, 2011 @ 23:36
    Nigel Wilson
    0

    Eureka... :-)

    A description had quotes in it... removing those has now resulted in the selections being saved to the json file...

    Wicked wicked wicked.

    Cheers Anthony...

    Nigel

     

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 19, 2011 @ 23:42
    Anthony Dang
    0

    Damn those quotes!!!!!!!!!!

  • Allan Hawkey 232 posts 303 karma points
    Sep 20, 2011 @ 11:48
    Allan Hawkey
    0

    Yes - clearing quotes fixed it for me too.

    Incidentally, Anthony, there are quotes in quite a few of the descriptions in the uBlogsy package which you'll probably want to clear out for the next version.

    Thanks
    Allan

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Sep 20, 2011 @ 11:50
    Jeroen Breuer
    0

    Is is possible to keep the quotes somehow now that we know what the bug is? That would be the best solution of course :).

    Jeroen

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 20, 2011 @ 15:06
    Anthony Dang
    0

    Simple solution... excape single and doublee quotes in the javascript before postback.

    I'll get around to it asap. But you can implement that yourself since it is just js. Give it a go!

     

  • Frost 70 posts 99 karma points
    Nov 02, 2011 @ 00:03
    Frost
    0

    I had the same problem and uHidesy 1.13 fixed it. Thank you Anthony!

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Nov 02, 2011 @ 00:42
    Anthony Dang
    0

    Just an update on this topic.

    The new version of uhidesy removes the description. They clutter up the interface anyway. I assume quotes were in the descriptions right?

     

Please Sign in or register to post replies

Write your reply to:

Draft