Thanks.
No the TV does not have a default value (there is another that does and that always remains).
Yes, the TVs that are not shown, that are not in the show list, do get wiped.
For example:
We have a press release template and tied to it (and to many of our templates for that matter) are some SEO variables such as seodescription.
Client needs the SEO person to control that and they do so in the back end.
But for other people, they may need to edit that page in the front end but have no access to the SEO variables.
We have this to designate what the Edit button in NewsPublisher should do:
[[!NpEditThisButton? &np_id=`[[doclookup? &alias=`edit/edit-[[*NpId]].html`]]`]]
Where doclookup gets the ID via alias (since we have 60 contexts we have a lot of unique IDs so we go by alias within each context).
So when we are editing an existing press release page it has a NpID of press. When a user clicks edit they are directed to the document with the alias edit/edit-press.html. Under each context we have a series of these documents to handle the various types of documents to edit (as many have different tvs).
So the edit-press.html document has this call:
[[!NewsPublisher?
&initrte=`1`
&rtcontent=`1`
&initdatepicker=`1`
&show=`pagetitle,longtitle,pub_date,introtext,published,pressauthor,content,pressquote,pdfdownload`
&parentid=`[[doclookup? &alias=`press/`]]`
&template=`Press Principal`
]]
We can edit the page wonderfully but when we do submit it, the seo variables are cleared. So for example, seodescription will now be blank whereas before it had content. The NpID stays intact in this instance because we've set it to inherit the value set in the Press Index document (ie. a page that lists press releases like a blog). So we've done that for the other document we were having trouble with previously.
To add new press releases users can click on an Add Press Release link:
<p><a href="edit/edit-press.html">Add New Press Entry</a></p>
This works wonderfully as well in regard to generating a new document under the Press index page and filling it with content. But again, if someone goes into the backend and does some SEO work and then this document is edited from the front end, those variables are wiped clean.