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 sinistra=="asx"||riga B=="bsx"||riga C sinistra=="csx"||riga D sinistra=="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=`[[*TV_module]]`:then=`
[[!NewsPublisher?
&parentid=`[[*TV_idparent]]`
&cancelid=`[[*TV_idparent]]`
&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=`
<div class="notice warning brdr btmspc">Siamo spiacenti, ma non sei autorizzato ad accedere alla pagina.</div>
`]]
</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
It should work automatically. Try taking the quotation marks out of the TV input option values and see if that fixes it.
Thanks Bob, it works perfectly now.
Damned quotes...
Bye
gianni
I'm glad it worked. Thanks for reporting back.