2.2.2 How to edit articles



From the articles list it is possible to edit any of the articles via clicking on the title of the article to be edited.

The layout of the article editor is as shown below.



At the top of the article edit interface is the notes area. Where other users of the back office have left notes regarding the article which is being edited, these appear at the top of the page to anyone that enters this article editing facility.



The notes may be displayed in red or black, depending on whether or not they have already been read by another a staff member.

In addition to the notes area, the article editing interface is divided into three large areas. At the top of the page, it is possible to view the article with a default visual and layout set by the author. Further down, on the left-hand side of the screen either are the article contents ready to be edited. The number and name of the text boxes made available depends on the structure defined by the website technical staff. Finally, on the right-hand side is the tool bar.

To carry out editing of an article, changes only have to be made to the contents of the text boxes. Hence, in an article structure with 3 fields, e.g., title, summary and text, the look of the editing area will be the following.




In the boxes it is possible to insert not only text but also HTML code.

You can establish hyperlinks with other articles on the website. If you intend to do so you can use the $LOCATE command.
This command is inserted in any of the text boxes, at the point where the hyperlink with other articles is to be established. The $LOCATE command ought always to initiate the text line and to be followed by the word, or words, by which you intend to search articles.

Example:
Search by “Working law”



In order to start the article search with the stated words, select the option “View” in the lower right-hand corner of the article editor. In the text box, the command “$LOCATE” will be replaced by hyperlinks to the related articles



Notes:

The command $LOCATE only establishes hyperlinks to articles approved by an Editor.
- The searched fields are the ones defined as “searchable” by the technician staff. If the technical staff has only defined the article title as searchable, then the command $LOCATE will only search this field.

Since version 1.2.1 of Sitemaker the $LOCATE command supports "piping". You can filter the output with two commands: "NLIMIT (limit the number of results) and "DLIMIT" (limit the number of results based on the article age). This is something unix shell users are familiar with and quite neat (coded by pls@mrnet.pt). Both commands can be used together:

  • "$LOCATE string" finds articles containing "string"

  • "$LOCATE string | NLIMIT 10" finds only the last 10 articles containing "string"

  • "$LOCATE string | DLIMIT 10" finds articles with less than 10 days containing "string"

  • "$LOCATE string | DLIMIT 10 | NLIMIT 5" finds the last 5 article with less than 10 days containing "string"




    PreviousNext