Skip to content

Add Icons to Course Listing/Course Status Page ​

Display an icon on Course Listing and/or Course Status pages based on the Course Category entry, or a New icon if the New Course box is checked on the course record.

To add the icon:

  1. Create the Course Categories codes for your icons (if they don't already exist). For example, create a CONFERENCE category if you intend to place the CONFERENCE icon next to the course on the web.
  2. Assign the Course Category to all appropriate courses.
  3. Place a copy of the image file in the /wconnect/ace/images folder.  The image can be in either .gif or .jpg format.
  4. The image name must match the Course Category entry, so rename the image file if necessary (e.g. if you have a category called 'CONFERENCE', the image must be either CONFERENCE.gif or CONFERENCE.jpg).
  5. Add the appropriate tags to display the icon.

Course Status Page ​

Add the ##pcIcon## tag to XCourseStatus.htm where you want the icon to appear.

Course Listing Tables ​

Use the SHOWIMAGE() function in the ScheduleFields and/or AsyncFields INI settings.

ScheduleFields Example:

showimage(cocategory,.T.):;Course_Name:Title;Begins:Begins; Meets:Meets;Fee:Fee

AsyncFields Example:

showimage(cocategory,.T.): ;Course_Name:Title;cotype:Type;FullFee:Fee

IMPORTANT

the showimage() function is followed by a colon [:]. The colon is a necessary part of the entry.  If you leave it out, you will receive an error when trying to view course listings. :::

New Courses ​

You can display a NEW icon* next to new courses (i.e. the New Course box is checked on the course record). To do so, use one of the following showimage functions (in place of the one listed above)  in your INI setting:

Showimage(IIF(conew,[New],[]),.T.): - only shows the NEW icon--no other icons will be displayed.

Showimage(IIF(conew,[New],[]),.T.)+Showimage(cocategory,.T.): - shows the NEW icon AND other icons according to the entry in the course category field.

*You must also have an image named NEW in the wconnect/ace/images folder.

Displaying 2 Different Icons for a Category ​

You can actually use 2 different icons for a given category.  For instance, you can place an animated CONFERENCE icon on the Course Listing page, and a plain CONFERENCE icon on the Course Status page.  To use this feature

  1. Save the image for the Course Listing page in .gif format.  The image name must match the Course Category entry, so rename the image file if necessary.
  2. Save the image for the Course Status page in .jpg format.  The image name must match the Course Category entry, so rename the image file if necessary.
  3. Place both images in the /wconnect/ace/images folder.

The .gif will be used on the Course Listing page, and the .jpg will be used on the Course Status page.