Mercurial > p > roundup > code
comparison doc/customizing.txt @ 673:604c84696461
link() htmltemplate function now has a "showid" option for links & multilinks.
When true, it only displays the linked node id as the anchor text. The
link value is displayed as a tooltip using the title anchor attribute.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 02 Apr 2002 01:40:59 +0000 |
| parents | e429649ed124 |
| children | 5b23ff865f3a |
comparison
equal
deleted
inserted
replaced
| 672:d92e06a3a56e | 673:604c84696461 |
|---|---|
| 319 | |nodes, hyperlinked to the item views on those nodes. | | 319 | |nodes, hyperlinked to the item views on those nodes. | |
| 320 | |For other properties, link to this node with the property as the | | 320 | |For other properties, link to this node with the property as the | |
| 321 | |text. | | 321 | |text. | |
| 322 | |Options: | | 322 | |Options: | |
| 323 | |property (property name) - the property to use in the second case. | | 323 | |property (property name) - the property to use in the second case. | |
| 324 | |showid - use the linked node id as the link text (linked node | | |
| 325 | | "value" will be set as a tooltip) | | |
| 324 +---------+-------------------------------------------------------------------+ | 326 +---------+-------------------------------------------------------------------+ |
| 325 |count |For a Multilink property, display a count of the number of links in| | 327 |count |For a Multilink property, display a count of the number of links in| |
| 326 | |the list. | | 328 | |the list. | |
| 327 | |Arguments: | | 329 | |Arguments: | |
| 328 | |property (property name) - the property to use. | | 330 | |property (property name) - the property to use. | |
| 513 | 515 |
| 514 As shown in the example, the editor template can also request the display of a | 516 As shown in the example, the editor template can also request the display of a |
| 515 "note" field, which is a text area for entering a note to go along with a | 517 "note" field, which is a text area for entering a note to go along with a |
| 516 change. | 518 change. |
| 517 | 519 |
| 520 The <property> tag used in the index may also be used here - it checks to see | |
| 521 if the nominated Multilink property has any entries. This can be used to | |
| 522 eliminate sections of the editor section if the property has no entries:: | |
| 523 | |
| 524 <td class="form-text"> | |
| 525 <display call="field('superseder', size=40, showid=1)"> | |
| 526 <display call="classhelp('issue', 'id,title', label='list', width=500)"> | |
| 527 <property name="superseder"> | |
| 528 <br>View: <display call="link('superseder', showid=1)"> | |
| 529 </property> | |
| 530 </td> | |
| 531 | |
| 532 The "View: " part with the links will only display if the superseder property | |
| 533 has values. | |
| 534 | |
| 518 When a change is submitted, the system automatically generates a message | 535 When a change is submitted, the system automatically generates a message |
| 519 describing the changed properties. | 536 describing the changed properties. |
| 520 | 537 |
| 521 If a note is given in the "note" field, the note is appended to the | 538 If a note is given in the "note" field, the note is appended to the |
| 522 description. The message is then added to the item's message spool (thus | 539 description. The message is then added to the item's message spool (thus |
| 541 of messages displays the "date", "author", and "summary" properties on the | 558 of messages displays the "date", "author", and "summary" properties on the |
| 542 message nodes, and selecting a message takes you to its content. | 559 message nodes, and selecting a message takes you to its content. |
| 543 | 560 |
| 544 The <property> tag used in the index may also be used here - it checks to see | 561 The <property> tag used in the index may also be used here - it checks to see |
| 545 if the nominated Multilink property has any entries. This can be used to | 562 if the nominated Multilink property has any entries. This can be used to |
| 546 eliminate sections of the spool section if the property has no entries.:: | 563 eliminate sections of the spool section if the property has no entries:: |
| 547 | 564 |
| 548 <property name="files"> | 565 <property name="files"> |
| 549 <tr class="strong-header"> | 566 <tr class="strong-header"> |
| 550 <td><b>Files</b></td> | 567 <td><b>Files</b></td> |
| 551 </tr> | 568 </tr> |
