Copied to clipboard

Flag this post as spam?

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


  • Paul Sørensen 304 posts 650 karma points
    Mar 03, 2013 @ 16:10
    Paul Sørensen
    0

    GetProperty value

    Hi

    I'm using 6.0.1

    When I call item.GetProperty("newsTeaser").Value my script fails but when I iterate over item.PropertiesAsList 

    I see a property with the alias newsTeaser and with a value.

    item.GetProperty("newsTeaser") also returns false

    Is this a bug or am I doing something wrong?

    /Paul S

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 03, 2013 @ 17:01
    Jan Skovgaard
    0

    Hi Paul

    What error message do you get? And what does your full code look like?

    /Jan

  • Paul Sørensen 304 posts 650 karma points
    Mar 03, 2013 @ 18:14
    Paul Sørensen
    0

    Hi

    I left i for a couple of hour and in the progress of writing an answer I just wanted to see the error message again - and now it works ! - no idea what has happened

    Thanks for participating, Jan

    /Paul S

  • Charles Afford 1163 posts 1709 karma points
    Mar 03, 2013 @ 20:51
    Charles Afford
    0

    Hey, what type is newTeaser?  Did you publish the page in the time between you asking the question and it working.  What value were you trying to get?

  • Paul Sørensen 304 posts 650 karma points
    Mar 04, 2013 @ 16:55
    Paul Sørensen
    0

    Hi

    newsTeaser is of tye string and no I didn't publish in between - so sort of caching issue I would guess but I don't know.

    /Paul S

  • gary 385 posts 916 karma points
    Mar 05, 2013 @ 03:28
    gary
    0

    Hi Paul

    Can you check something, please? In the Content Section, pick a node you have created previously, go to the properties tab, look at the last published date, then hit save and publish.

    Does it show current date and time? If you hit save and publish again, what does it show?

    I had a very similar issue - then found this - if I double save everything, it works. This does only seems to happen on a previously created node ie a new node publishes correct first time, but it will not show in a list until I have double published. I have upgraded to 6.0.1, then 6.0.2 and it is still the same. 

    Would appreciate your feedback because if it is a bug, fixing it would maybe solve many issues.

    Regards G

  • Paul Sørensen 304 posts 650 karma points
    Mar 08, 2013 @ 22:42
    Paul Sørensen
    100

    HI

    It makes the pages crash - I'm rebuilding the site now

    /Paul S

  • Charles Afford 1163 posts 1709 karma points
    Mar 23, 2013 @ 18:44
    Charles Afford
    0

    Paul did you get this sorted?  Charles :)

  • gary 385 posts 916 karma points
    Mar 23, 2013 @ 18:51
    gary
    0

    Hi Guys

    Have reported this as a bug and Morten has fixed it. You can read his explanation here and I think it does cover how this type of error was being produced.

    http://issues.umbraco.org/issue/U4-1883

    Only some properties were being updated.

    Regards

    G

  • Paul Sørensen 304 posts 650 karma points
    Mar 24, 2013 @ 00:05
    Paul Sørensen
    0

    Hi all

    I have rebuild the complete site - maybe I could have been saved by this solution but I spend weeks trying to solve this.

    The site had lived and been upgraded since 4.3 so the 'spring cleaning' also had lots of benefits. It looks to me as if the current database model is a lot better now than it was previously.

    /Paul S

Please Sign in or register to post replies

Write your reply to:

Draft