Tags

    Getting a WebTemplate Name

    There are many times when a web template name needs to be integrated into a project design. For example, if a construction occurs on multiple webtemplates, it may be helpful to know which one is used for specific actions. Here is how to get the name of the webtemplate. Note that we are talking about the export name, not the name in the framework window.

    Name.tiff










    The environmental variable, SCRIPT_NAME, is used to extract the portion of the URL that contains the webtemplate name. In some circumstances, the suffix, .jsp, may be used. The construction tests for, and removes .jsp when it exists.

    Comments

    /groups/commonground/search/index.rss?tag=hotlist/groups/commonground/search/?tag=hotWhat’s HotHotListHot!?tag=hot0/groups/commonground/sidebar/HotListNo items tagged with hot.hot/groups/commonground/search/index.rss?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcomelist/groups/commonground/search/?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcomeRecent ChangesRecentChangesListUpdates?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcome0/groups/commonground/sidebar/RecentChangesListmodifiedDateallRecent ChangesRecentChangesListUpdateswiki/welcomeNo recent changes.reverse5search