The mgiRotate TagTag BehaviorThe mgiRotate tag randomly rotates the display of a database value, text file or image each time a page is served. Tag SyntaxThe mgiRotate tag has one required parameter and no optional parameters for all sources. In addition, the mgiRotate tag has required parameters for specific sources. The tag form is: <mgiRotate source="Source"> Required Parameters:
Database Source Required Parameters:
TextFileFolder Source Required Parameters:
ImageFolder Source Required Parameters:
Example Usage and OutputRotating Database Information One of the exciting positions now available is <mgiRotate source="Database" databaseFileLocation="Jobs" tableName="Current" fieldName="Position"> In this example, current positions in a job database are randomly rotated in the sentence "One of the exciting positions now available is". The positions are in a database named "Jobs", in a table named "Current", and in a field named "Position". Rotating Text Files <mgiRotate source="TextFileFolder" folderLocation="Text/Welcome/"> In this example, welcome messages are randomly rotated on a home page. The welcome messages are located in a folder named "Welcome" that is located in a folder named "Text". Rotating Images <mgiRotate source="ImageFolder" folderLocation="FreeBanners"> In this example, free banner ads are randomly rotated at the top of a Links page. The banner ads are located in a folder named "FreeBanners". Suggested Usage
|
[Return to the Referencing MGI Menu]
[User Guide Main Menu] [Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]