ESU 10 Home > Network and Information Services > nis.esu10.org/teachers November 22, 2008

Macro Examples

Manila has many options for having dynamic information posted directly on your web page. One of these options is using macros. Manila intreprets anything in {braces} as a macro. Here is a list of a few macros that you may wish to use in your page.


Image Macros

G4: {pictureRef("Computer", align: right)} - This macro places the image to the justification you choose (ie: left, or right). Text will wrap around the image if using left or right justification. (Replace "Computer" with the shortcut of your image in quotes.)

{pictureLink ("lineText", "shortcutName")} - Generate a link to a picture.



Date & Time Macros

{day} - Display the number of the current day.
Example Output: 22

{dayName} - Display the name of the current day.
Example Output: Saturday

{lastUpdate} - Display the date and time a page was last updated.
Example Output: 4/27/04; 3:00:46 PM

{lastUpdateString} - Display the date and time a page was last updated, using a friendly format.
Example Output: Tuesday, April 27, 2004 at 3:00:46 PM

{month} - Display the number of the current month.
Example Output: 11

{monthName} - Display the name of the current month.
Example Output: November

{now} - Display the current time and date on the server.
Example Output: 11/22/08; 5:40:41 AM

{postTime} - Display the time and date when the page was orignially posted.
Example Output: 4/30/03; 10:22:04 AM

{year} - Display the number of the current year.
Example Output: 2008

Other Useful Macros

{printFriendlyLink("Print This Story")} - Display a page suitable for printing.
Example Output: Print This Story

{mailStory ("Mail This Story")} - Display a page allowing you to email the story to an email account.
Example Output: Mail This Story

{glossSub ("Your Shortcut", "Text to display")} - Link to a page in the shortcuts list, but use text other than the title of the shortcut. - You can also use it to open a new window for the link. See second example.
Example Output: Link to Macro's
Example Output: Link to Macro's

 


Copyright © 2008 manilaSupport
webmaster@esu10.org

Last updated on Tuesday, April 27, 2004 at 3:00:46 PM

Print This Story | Mail This Story

Login