Form:ProductPage: Difference between revisions
More actions
m 产品表单:资源下载扩展为 3 组(下载1/2/3),每组 类型/名称/文件 |
Replace spec fields with single VE text area for free-text specs |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div class="techdocs-form-help"> | <div class="techdocs-form-help"> | ||
Changing the "Product Title" only changes the displayed title; the URL and page history remain unchanged. Setting the document status to "Draft" or "Archived" will hide the auto-synced cards from the homepage, but the product page and history are preserved. | |||
</div> | </div> | ||
{{{for template| | {{{for template|ProductInfo}}} | ||
<details class="techdocs-form-section" open> | <details class="techdocs-form-section" open> | ||
<summary> | <summary>Basic Info</summary> | ||
{| class="formtable" | {| class="formtable" | ||
! | ! Product Title | ||
| {{{field| | | {{{field|title|mandatory|size=70}}} | ||
|- | |- | ||
! | ! Model | ||
| {{{field| | | {{{field|model|mandatory|size=40}}} | ||
|- | |- | ||
! | ! Doc Status | ||
| {{{field| | | {{{field|status|input type=dropdown|values=Published,Draft,Archived|default=Draft}}} | ||
|- | |- | ||
! | ! Module | ||
| {{{field| | | {{{field|module|mandatory|input type=combobox}}} | ||
|} | |} | ||
</details> | </details> | ||
<details class="techdocs-form-section" open> | <details class="techdocs-form-section" open> | ||
<summary> | <summary>Images</summary> | ||
{| class="formtable" | {| class="formtable" | ||
! | ! Main Image | ||
| {{{field| | | {{{field|image1|mandatory|uploadable|image preview|input type=text with autocomplete|values from namespace=File}}} | ||
|- | |- | ||
! | ! Aux Image | ||
| {{{field| | | {{{field|image2|uploadable|image preview|input type=text with autocomplete|values from namespace=File}}} | ||
|} | |} | ||
</details> | </details> | ||
<details class="techdocs-form-section" open> | <details class="techdocs-form-section" open> | ||
<summary> | <summary>Product Introduction</summary> | ||
{| class="formtable" | {| class="formtable" | ||
! | ! Intro | ||
| {{{field| | | {{{field|intro|input type=textarea|editor=visualeditor|class=toolbarOnTop|rows=5|max height=320|cols=90}}} | ||
|- | |- | ||
! | ! Highlights | ||
| {{{field| | | {{{field|highlights|input type=textarea|editor=visualeditor|class=toolbarOnTop|rows=8|max height=420|cols=90}}} | ||
|} | |} | ||
</details> | </details> | ||
<details class="techdocs-form-section"> | <details class="techdocs-form-section"> | ||
<summary> | <summary>Specifications</summary> | ||
{| class="formtable" | {| class="formtable" | ||
! | ! Specs | ||
| {{{field| | | {{{field|specs|input type=textarea|editor=visualeditor|class=toolbarOnTop|rows=8|max height=400|cols=90}}} | ||
| | |||
| | |||
| | |||
|} | |} | ||
</details> | </details> | ||
<details class="techdocs-form-section"> | <details class="techdocs-form-section"> | ||
<summary> | <summary>Hardware & Usage</summary> | ||
{| class="formtable" | {| class="formtable" | ||
! | ! Hardware | ||
| {{{field| | | {{{field|hardware|input type=textarea|editor=visualeditor|class=toolbarOnTop|rows=9|max height=480|cols=90}}} | ||
|- | |- | ||
! | ! Usage | ||
| {{{field| | | {{{field|usage|input type=textarea|editor=visualeditor|class=toolbarOnTop|rows=11|max height=520|cols=90}}} | ||
|} | |} | ||
</details> | </details> | ||
<details class="techdocs-form-section"> | <details class="techdocs-form-section"> | ||
<summary> | <summary>FAQ</summary> | ||
{| class="formtable" | {| class="formtable" | ||
! | ! FAQ | ||
| {{{field| | | {{{field|faq|input type=textarea|editor=visualeditor|class=toolbarOnTop|rows=10|max height=500|cols=90}}} | ||
|} | |} | ||
</details> | </details> | ||
<details class="techdocs-form-section"> | <details class="techdocs-form-section"> | ||
<summary> | <summary>Downloads</summary> | ||
{| class="formtable" | {| class="formtable" | ||
! | ! DL1 Type | ||
| {{{field| | | {{{field|dl1Type|size=20}}} | ||
|- | |||
! DL1 Name | |||
| {{{field|dl1Name|size=50}}} | |||
|- | |||
! DL1 File | |||
| {{{field|dl1File|uploadable|input type=text with autocomplete|values from namespace=File}}} | |||
|- | |||
! DL2 Type | |||
| {{{field|dl2Type|size=20}}} | |||
|- | |||
! DL2 Name | |||
| {{{field|dl2Name|size=50}}} | |||
|- | |||
! DL2 File | |||
| {{{field|dl2File|uploadable|input type=text with autocomplete|values from namespace=File}}} | |||
|- | |||
! DL3 Type | |||
| {{{field|dl3Type|size=20}}} | |||
|- | |||
! DL3 Name | |||
| {{{field|dl3Name|size=50}}} | |||
|- | |||
! DL3 File | |||
| {{{field|dl3File|uploadable|input type=text with autocomplete|values from namespace=File}}} | |||
|- | |||
! DL4 Type | |||
| {{{field|dl4Type|size=20}}} | |||
|- | |||
! DL4 Name | |||
| {{{field|dl4Name|size=50}}} | |||
|- | |||
! DL4 File | |||
| {{{field|dl4File|uploadable|input type=text with autocomplete|values from namespace=File}}} | |||
|- | |||
! DL5 Type | |||
| {{{field|dl5Type|size=20}}} | |||
|- | |||
! DL5 Name | |||
| {{{field|dl5Name|size=50}}} | |||
|- | |||
! DL5 File | |||
| {{{field|dl5File|uploadable|input type=text with autocomplete|values from namespace=File}}} | |||
|- | |||
! DL6 Type | |||
| {{{field|dl6Type|size=20}}} | |||
|- | |||
! DL6 Name | |||
| {{{field|dl6Name|size=50}}} | |||
|- | |||
! DL6 File | |||
| {{{field|dl6File|uploadable|input type=text with autocomplete|values from namespace=File}}} | |||
|- | |||
! DL7 Type | |||
| {{{field|dl7Type|size=20}}} | |||
|- | |||
! DL7 Name | |||
| {{{field|dl7Name|size=50}}} | |||
|- | |||
! DL7 File | |||
| {{{field|dl7File|uploadable|input type=text with autocomplete|values from namespace=File}}} | |||
|- | |||
! DL8 Type | |||
| {{{field|dl8Type|size=20}}} | |||
|- | |- | ||
! | ! DL8 Name | ||
| {{{field| | | {{{field|dl8Name|size=50}}} | ||
|- | |- | ||
! | ! DL8 File | ||
| {{{field| | | {{{field|dl8File|uploadable|input type=text with autocomplete|values from namespace=File}}} | ||
|- | |- | ||
! | ! DL9 Type | ||
| {{{field| | | {{{field|dl9Type|size=20}}} | ||
|- | |- | ||
! | ! DL9 Name | ||
| {{{field| | | {{{field|dl9Name|size=50}}} | ||
|- | |- | ||
! | ! DL9 File | ||
| {{{field| | | {{{field|dl9File|uploadable|input type=text with autocomplete|values from namespace=File}}} | ||
|- | |- | ||
! | ! DL10 Type | ||
| {{{field| | | {{{field|dl10Type|size=20}}} | ||
|- | |- | ||
! | ! DL10 Name | ||
| {{{field| | | {{{field|dl10Name|size=50}}} | ||
|- | |- | ||
! | ! DL10 File | ||
| {{{field| | | {{{field|dl10File|uploadable|input type=text with autocomplete|values from namespace=File}}} | ||
|} | |} | ||
</details> | </details> | ||
{{{field|displayMode|hidden|default={{{displayMode|Detail}}}}}} | |||
{{{field|cardPage|hidden|default={{{cardPage|{{PAGENAME}}}}}}}} | |||
{{{field| | |||
{{{field| | |||
{{{end template}}} | {{{end template}}} | ||
<div class="techdocs-form-actions"> | <div class="techdocs-form-actions"> | ||
{{{standard input|summary|default value= | {{{standard input|summary|default value=Update product info via product form}}} | ||
{{{standard input|save}}} {{{standard input|changes}}} {{{standard input|cancel}}} | {{{standard input|save}}} {{{standard input|changes}}} {{{standard input|cancel}}} | ||
</div> | </div> | ||
Latest revision as of 21:27, 1 August 2026
Changing the "Product Title" only changes the displayed title; the URL and page history remain unchanged. Setting the document status to "Draft" or "Archived" will hide the auto-synced cards from the homepage, but the product page and history are preserved.
ProductInfo <details class="techdocs-form-section" open> <summary>Basic Info</summary>
| Product Title | title |
|---|---|
| Model | model |
| Doc Status | status |
| Module | module |
</details>
<details class="techdocs-form-section" open> <summary>Images</summary>
| Main Image | image1 |
|---|---|
| Aux Image | image2 |
</details>
<details class="techdocs-form-section" open> <summary>Product Introduction</summary>
| Intro | intro |
|---|---|
| Highlights | highlights |
</details>
<details class="techdocs-form-section"> <summary>Specifications</summary>
| Specs | specs |
|---|
</details>
<details class="techdocs-form-section"> <summary>Hardware & Usage</summary>
| Hardware | hardware |
|---|---|
| Usage | usage |
</details>
<details class="techdocs-form-section"> <summary>FAQ</summary>
| FAQ | faq |
|---|
</details>
<details class="techdocs-form-section"> <summary>Downloads</summary>
| DL1 Type | dl1Type |
|---|---|
| DL1 Name | dl1Name |
| DL1 File | dl1File |
| DL2 Type | dl2Type |
| DL2 Name | dl2Name |
| DL2 File | dl2File |
| DL3 Type | dl3Type |
| DL3 Name | dl3Name |
| DL3 File | dl3File |
| DL4 Type | dl4Type |
| DL4 Name | dl4Name |
| DL4 File | dl4File |
| DL5 Type | dl5Type |
| DL5 Name | dl5Name |
| DL5 File | dl5File |
| DL6 Type | dl6Type |
| DL6 Name | dl6Name |
| DL6 File | dl6File |
| DL7 Type | dl7Type |
| DL7 Name | dl7Name |
| DL7 File | dl7File |
| DL8 Type | dl8Type |
| DL8 Name | dl8Name |
| DL8 File | dl8File |
| DL9 Type | dl9Type |
| DL9 Name | dl9Name |
| DL9 File | dl9File |
| DL10 Type | dl10Type |
| DL10 Name | dl10Name |
| DL10 File | dl10File |
</details>
displayMode cardPage {{{end template}}}
summary save changes cancel