def portal_type_to_resource(portal_type):
resource = portal_type.lower()<EOL>resource = resource.replace("<STR_LIT:U+0020>", "<STR_LIT>")<EOL>return resource<EOL>
Converts a portal type name to a resource name

    :param portal_type: Portal type name
    :type name: string
    :returns: Resource name as it is used in the content route
    :rtype: string