Difference between revisions of "Page Templates:Functions"
From Whirlwind eCommerce Wiki
(changed linked pages, rebuilt descriptions) |
|||
Line 3: | Line 3: | ||
;Quick Output of State/Country Options in a Form Select | ;Quick Output of State/Country Options in a Form Select | ||
*[[functions:addressStateOptions|addressStateOptions]] - returns string of option tags for states | *[[functions:addressStateOptions|addressStateOptions]] - returns string of option tags for states | ||
− | *addressCountryOptions - returns string of option tags for countries | + | *[[functions:addressCountryOptions|addressCountryOptions]] - returns string of option tags for countries |
;Set Variables that Content Managers can use in the WYSIWYG copy editor | ;Set Variables that Content Managers can use in the WYSIWYG copy editor | ||
− | * | + | *[[functions:pageContentAttribsSet|pageContentAttribsSet]] - sets multiple variables that can be used by content managers in the page manager form (including the WYSIWYG editor) |
− | * | + | *[[functions:pageContentAttribSet|pageContentAttribSet]] - sets a single variable that can be used by content managers in the page manager form (including the WYSIWYG editor) |
− | * | + | *[[functions:pageContentAttribSetStart/pageContentAttribSetEnd|pageContentAttribSetStart/pageContentAttribSetEnd]] - wrapper that the contents of which is set as a single variable that can be used by content managers in the page manager form |
;Retrieve Page Content to Build Pages | ;Retrieve Page Content to Build Pages | ||
− | *[[ | + | *[[functions:pageMenuGet|pageMenuGet]] - returns menu item data |
− | * | + | *[[functions:pageChildrenGet|pageChildrenGet]] - returns page data for children of a specific page |
− | * | + | *[[functions:pageSearchGet|pageSearchGet]] - returns page data for pages qualifying for a keyword search |
− | *[[ | + | *[[functions:pageZoneGet|pageZoneGet]] - returns code to display an banner ad zone |
− | * | + | *[[functions:pageForumPostsGet|pageForumPostsGet]] - returns forum post data for posts submitted to a particular forum page |
− | * | + | *[[functions:pagePollQuestionsGet|pagePollQuestionsGet]] - returns question and answer data for building a poll |
− | * | + | *[[functions:pagePollResultsGet|pagePollResultsGet]] - returns poll submission data for building a report of poll results |
− | * | + | *[[functions:pageBreadcrumbsFamilyGet|pageBreadcrumbsFamilyGet(]] - returns breadcrumb data by traversing parent pages |
− | * | + | *[[functions:pageBreadcrumbsHistoryGet|pageBreadcrumbsHistoryGet]] - returns breadcrumb data by traversing linear browsing history |
− | * | + | *[[functions:pageProductsGet|pageProductsGet]] - returns product data for products related to a specific page |
− | * | + | *[[functions:recentlyViewedGet|recentlyViewedGet]] - returns data for recently viewed pages |
− | + | *[[functions:pageCustomSearchGroup:pageCustomSearchGroup]] - returns Custom Search Group data used to build a custom search widget | |
− | *[[ | + | |
;Retrieve User Content to Build Community (Web 2.0) Pages | ;Retrieve User Content to Build Community (Web 2.0) Pages | ||
− | * | + | *[[functions:usersGet|usersGet]] - retrieve user data from a list of user ids |
− | * | + | *[[functions:userBlogEntriesGet|userBlogEntriesGet]] - retrieve blog entry data belonging to a specific user |
− | * | + | *[[functions:userFriendsGet|userFriendsGet]] - retrieves data for users in a specific user's 'friend list' |
− | * | + | *[[functions:userWishListGet|userWishListGet]] - retrieves product data for products in a specific user's wish list |
− | * | + | *[[functions:usersAmbassadorGet|usersAmbassadorGet]] - retrieves user data for users that are classified as 'ambassadors' |
;Retrieve Order Content to Build Cart and Checkout Pages | ;Retrieve Order Content to Build Cart and Checkout Pages | ||
− | * | + | *[[functions:orderGetPayTypes|orderGetPayTypes]] - returns data relating to active paytypes in the system |
− | * | + | *[[functions:userGetAddresses|userGetAddresses]] - returns data for all addresses belonging to a specific user |
;Set Tracking Functions | ;Set Tracking Functions | ||
− | * | + | *[[functions:recentlyViewedAdd|recentlyViewedAdd]] - registers a page to the recently viewed history when viewed |
;User Management Functions | ;User Management Functions | ||
− | * | + | *[[functions:userAccountEdit|userAccountEdit]] - manages user account information |
− | * | + | *[[functions:userAddressAddEdit|userAddressAddEdit]] - manages user addresses |
− | * | + | *[[functions:userBlogEntryAddEdit|userBlogEntryAddEdit]] - managers user blog entries |
− | * | + | *[[functions:userBlogSetup|userBlogSetup]] - sets up a user with a blog |
;Shortcut Functions that just plain make your job easier | ;Shortcut Functions that just plain make your job easier | ||
− | * | + | *[[functions:redirect|redirect]] - redirects visitors to another page |
− | * | + | *[[functions:valueArrayFromQuery|valueArrayFromQuery]] - returns a single dimension array of values based on the contents of a specific column in all records of a query |
;Functions used by internal actions, you probably will not use | ;Functions used by internal actions, you probably will not use | ||
− | * | + | *[[functions:ipBlockCheck|ipBlockCheck]] - checks if an IP is registered to the block list |
+ | *[[functions:prodOptionString2Array|prodOptionString2Array]] - converts a string of product option data to an array |
Revision as of 15:19, 2 October 2008
A series of custom functions are created to allow content management to easily access content they require to build the copy in templates:
- Quick Output of State/Country Options in a Form Select
- addressStateOptions - returns string of option tags for states
- addressCountryOptions - returns string of option tags for countries
- Set Variables that Content Managers can use in the WYSIWYG copy editor
- pageContentAttribsSet - sets multiple variables that can be used by content managers in the page manager form (including the WYSIWYG editor)
- pageContentAttribSet - sets a single variable that can be used by content managers in the page manager form (including the WYSIWYG editor)
- pageContentAttribSetStart/pageContentAttribSetEnd - wrapper that the contents of which is set as a single variable that can be used by content managers in the page manager form
- Retrieve Page Content to Build Pages
- pageMenuGet - returns menu item data
- pageChildrenGet - returns page data for children of a specific page
- pageSearchGet - returns page data for pages qualifying for a keyword search
- pageZoneGet - returns code to display an banner ad zone
- pageForumPostsGet - returns forum post data for posts submitted to a particular forum page
- pagePollQuestionsGet - returns question and answer data for building a poll
- pagePollResultsGet - returns poll submission data for building a report of poll results
- pageBreadcrumbsFamilyGet( - returns breadcrumb data by traversing parent pages
- pageBreadcrumbsHistoryGet - returns breadcrumb data by traversing linear browsing history
- pageProductsGet - returns product data for products related to a specific page
- recentlyViewedGet - returns data for recently viewed pages
- functions:pageCustomSearchGroup:pageCustomSearchGroup - returns Custom Search Group data used to build a custom search widget
- Retrieve User Content to Build Community (Web 2.0) Pages
- usersGet - retrieve user data from a list of user ids
- userBlogEntriesGet - retrieve blog entry data belonging to a specific user
- userFriendsGet - retrieves data for users in a specific user's 'friend list'
- userWishListGet - retrieves product data for products in a specific user's wish list
- usersAmbassadorGet - retrieves user data for users that are classified as 'ambassadors'
- Retrieve Order Content to Build Cart and Checkout Pages
- orderGetPayTypes - returns data relating to active paytypes in the system
- userGetAddresses - returns data for all addresses belonging to a specific user
- Set Tracking Functions
- recentlyViewedAdd - registers a page to the recently viewed history when viewed
- User Management Functions
- userAccountEdit - manages user account information
- userAddressAddEdit - manages user addresses
- userBlogEntryAddEdit - managers user blog entries
- userBlogSetup - sets up a user with a blog
- Shortcut Functions that just plain make your job easier
- redirect - redirects visitors to another page
- valueArrayFromQuery - returns a single dimension array of values based on the contents of a specific column in all records of a query
- Functions used by internal actions, you probably will not use
- ipBlockCheck - checks if an IP is registered to the block list
- prodOptionString2Array - converts a string of product option data to an array