User Tools

Site Tools


bigace:smarty_tags:tip_of_the_day

Table of Contents

{tip_of_the_day}

The {tip_of_the_day} TAG fetches or assign a random “tip”. See The available “tips” will be configured in the Administration

→ Since BIGACE 2.4 and extension version 1.3.

Attributes

  • assign - (required, string)

The name of the template variable the tip will be assigned to.

Example

This example shows how to fetch and display a tip.

{tip_of_the_day assign="tip"}
<html>
<head>
   <title>Tip of the Day - Example usage</title>
</head>
<body>
   Name: {$tip->getName()} <br>
   {if $tip->getLink() != ''}
   Link: <a href="{$tip->getLink()}">{$tip->getLink()}</a> <br>
   {/if}
   Text: {$tip->getTip()}
</body>
</html>
bigace/smarty_tags/tip_of_the_day.txt · Last modified: 2008/01/25 12:30 by kevin