Category
This section discusses:
IScript_GetCategoryLongName
IScript_GetCategoryImg
Syntax
IScript_GetCategoryLongName()
Description
IScript_GetCategoryLongName retrieves the category long name for a category in a section of a publication. It accepts inputs from the query string for the publication ID, section ID, and category ID.
The declaration is:
Declare Function IScript_GetCategoryLongName PeopleCode WEBLIB_WEBPUB.EO_PE_
CATEGORY FieldFormula;
Parameters
Function Call Parameters: None.
This table lists the Query String Parameters:
Parameter |
Description |
---|---|
PUB |
The publication ID is set in the query string by The function must have this query string parameter to retrieve the correct values from the database. This value is retrieved in the function and set to the variable &Publication. |
SECTION |
The section ID is set in the query string by The function must have this query string parameter to retrieve the correct values from the database. This value is retrieved in the function and set to the variable &Section. |
CATEGORY |
The category ID is set in the query string by The function must have this query string parameter to retrieve the correct values from the database. This value is retrieved in the function and set to the variable &Category. |
Returns
Returns the category long name.
Syntax
IScript_GetCategoryImg()
Description
IScript_GetCategoryImg retrieves the category image for a category in a section of a publication. It accepts inputs from the query string for the publication ID, section ID, and category ID. IScript_GetCategoryImg first retrieves the category image ID. Using this ID, it calls the IScript_GetImage function to retrieve the image information.
The declaration is:
Declare Function IScript_GetCategoryImg PeopleCode WEBLIB_WEBPUB.EO_PE_CATEGORY
FieldFormula;
Parameters
Function Call Parameters: None.
This table lists the Query String Parameters:
Parameter |
Description |
---|---|
PUB |
The publication ID is set in the query string by The function must have this query string parameter to retrieve the correct values from the database. This value is retrieved in the function and set to the variable &Publication. |
SECTION |
The section ID is set in the query string by The function must have this query string parameter to retrieve the correct values from the database. This value is retrieved in the function and set to the variable &Section. |
CATEGORY |
The category ID is set in the query string by The function must have this query string parameter to retrieve the correct values from the database. This value is retrieved in the function and set to the variable &Category. |
Returns
Returns the HTML image tag for the category image.