Deprecated tags

Following Saurus API tags are abandoned during development process. Each tag is replaced by more flexible API tags or features.
  • {print_menu} - prints the default vertical menu which consist section from levels 2-4.
  • {print_topmenu} - prints default horizontal menu which consist section from level 1.
  • {print_header} - prints default header article which is one of a system article.
  • {print_footer} - prints default footer article which is one of a system article.
  • {print_navbar} - prints default location bar, which displays full path of user's navigation in your site.
  • {print_comments} - prints default comment board.
    Additional parameter "targeturl" added since version 3.3.1 .
    {print_comments targeturl=http://www.neti.ee}, which defines the page where user will be sent after submission.
  • {print_box} - Prints add-on boxes.
  • {print_users_form} - prints user profile fields table. 4

 

{print_box}

Print_box allows you to insert Saurus CMS add-on boxes (like gallups, link lists etc.) to your page templates.
This functionality is deprecated in version 4, please use various SAPI tags instead.

Parameters

  • position - defines the location of add-on boxes in the page. Default value: 8
  • name - variable name where the returned data is saved. Default value is "box".
  • parent - parent ID. If parent is undefined, current page ID is used.
  • is_custom - if parameter value is set to 1, then you can use print_box tag's elements to customize your add-on boxes HTML-code, otherwise it will print default HTML-code.
  • url - additional URL part, is added to the end of the generated links. 3.3.15 4.0.6

Attributes

  • buttons - action-buttons for every add-on box.
  • title - add-on boxes title.
  • contents - add-on boxes content.

Examples

{*Add-on box with default HTML*}
{print_box position="10"}

{*Add-on boxes with custom HTML*}
{print_box position=2 name="box" is_custom=1}
{foreach from=$box item=curr_obj}
    buttons: {$curr_obj.buttons}<br>
    title: {$curr_obj.title}<br>
    contents: {$curr_obj.contents}<br>
{/foreach}

 

{print_comments}

Prints the entire comment board page: the list of comments and the new comment box below.

You can can overwrite all comment board styles using your own custom CSS. Following styles are used in the comment board HTML:

/* COMMMENTS FOR ARTICLES, DOCUMENTS, IMAGES ETC. */

/* The area that fits the comments and the form to submit new comment */
#scms_comments_area_table {
}

/* The "adding new" comment area */
#scms_comment_add_table {
}

/* All new comment input fields */
#scms_comment_add_table INPUT,
#scms_comment_add_table TEXTAREA {
}

/* New comment message text input area */
#scms_comment_add_table TEXTAREA {
width: 445px;
height: 100px;
}

/* New comment submit posting button */
#scms_comment_add_table .searchbtn {
}


{print_users_form}

NB! Deprecated starting from version 4.4.3.

Use more flexible tags {init_profile}, {save_profile}, {init_mailinglist}, {save_mailinglist}, {init_sso}, {save_sso} instead. For a comprehensive example see the registration template in "saurus4" example .


Prints a table with each user's profile field is in one row: label and form input field.

Parameters

  • profile_id - user profile ID value to use. Optional parameter, default user profile is used by default.
  • group_id - group ID value where a new user is assigned to. Optional parameter, group "Everybody" is used by default. 4.3.4

 Example (see full example in content template "User registration and profile" in Saurus4 default extension)
 {print_users_form group_id="3"}