• Newspublisher: problems with radio option TVs#

  • giannirapetti Reply #1, 8 months, 3 weeks ago

    Reply
    Hi All (and Bob if he's on-air...),

    there must be a huge mistake in my snippet call, because it's too simple...

    NewsPublisher does not write TVs whose Input Type is check box, radio button or options list.
    I have a TV called TV_newspos that have the following characteristics:

    - Input Type: Radio Options
    - Input Option Values: riga A"asx"||riga"bsx"||riga C"csx"||riga D"dsx"
    - Default: blank, but it doesn't work with a value here too
    - Allow Blank: yes or no does not influence the result
    - Column: 1

    - Output Type: Default

    TV_newspos is linked to the correct template, used in the NP call.
    Another TV, Input Type Text, could be changed without any problem.

    I have an edit resource with the following call:

    <h1>Company News Edit</h1>

    <p>
    [[!+modx.user.id:memberof=``:then=`
    [[!NewsPublisher?
    &parentid=``
    &cancelid=``
    &initrte=`1`
    &rtcontent=`1`
    &template=`intra`
    &aliastitle=`1`
    &published=`1`
    &searchable=`1` &show=`pagetitle,longtitle,description,content,TV_tag,TV_newspos,pub_date,unpub_date,TV_aside,TV_module,TV_idparent,TV_idedit,TV_idarchtrgt` ]]
    `:else=`

    `]]
    </p>

    TV_module is a TV managed through the back-end. The other TVs are Text so I don't have problems with them.

    When I acess the Edit resource, the form opens regularly and the radio option field shows and works correctly, allowing me to choose one option. After submitting the form the TV results empty. If I try to edit with NP a resource with TV_newspos already evaluated, after submitting the form the value is blank.

    Is there something that I should activate to have check boxes, radio etc. recognized ?

    Many thanks in advance
    Ciao

    gianni




  • BobRay Reply #2, 8 months, 3 weeks ago

    Reply
    It should work automatically. Try taking the quotation marks out of the TV input option values and see if that fixes it.


  • giannirapetti Reply #3, 8 months, 3 weeks ago

    Reply
    Thanks Bob, it works perfectly now.
    Damned quotes...
    Bye

    gianni



  • BobRay Reply #4, 8 months, 3 weeks ago

    Reply
    I'm glad it worked. Thanks for reporting back.