Results 1 to 3 of 3

Thread: section.edit() toggles, doesn't just set on

  1. #1
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,044

    section.edit() toggles, doesn't just set on

    The .edit() method of the Section class, per the wiki, is supposed to put the section in edit mode. In fact, however, both in RC7 release and the latest RC8 pre-release, it toggles edit mode.

    Which is actually great, if (and only if) there is an attribute that we could use to know whether the section was in fact in edit mode already.

    This is so in dev/run and in runtime.

    So, the $64,000 question: is there a way to know whether a section is in editmode?

    thanks,

    Hank

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,083
    If you want to put the section into editmode and not untoggle it if it is already in editmode use the following (which can be an inline delegate ir coded as below)

    Lianja.showDocument("page: page1.section1?action=editmode")

    this puts the section into editmode but does not toggle it out of editmode if its already in that state.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,044
    Quote Originally Posted by barrymavin View Post
    If you want to put the section into editmode and not untoggle it if it is already in editmode use the following (which can be an inline delegate ir coded as below)

    Lianja.showDocument("page: page1.section1?action=editmode")

    this puts the section into editmode but does not toggle it out of editmode if its already in that state.
    Glad I asked!

    thanks,

    Hank

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us