Hi all,
The following is a list of tokens available globally in the CMS. This means they can be used on any page. There are other tokens which only work on specific pages, they will be detailed elsewhere in the near future.
This document is a work in progress, but we anticipate we should have the majority of the remaining tokens up by the end of the week.
{{ current_page }} - If you're at "http://www.rake.com/foo/bar.html", it will return "/foo/bar.html"
{{ current_page_url }} - If you're at "http://www.rake.com/foo/bar.html", it will return "http://www.rake.com/foo/bar.html"
{{ captcha }} - inserts the captcha code to a form and should be added within the <form></form> tags. Only works in the “Contact Us” and “Full Member Signup” forms.
{{ site_name }} - returns the current website’s name (“Rake Tracker”)
{{ rss_news_link }} - returns the html code that makes browsers aware of an RSS feed, and should be put in the <head></head> part.
{{ tld }} - returns the websites domain name, includes the “http://” part. ([example: "http://www.raketracker.com")
{{ title }} - returns the SEO Title for the current page or news post, to be used in the <title></title> part of the HTML code. It gets pulled from the SEO options in the CMS.
{{ meta_keywords }} - returns the meta keywords to be used in the <meta></meta> tag. It gets pulled from the SEO options in the CMS.
{{ meta_description }} - returns the meta keywords to be used in the <meta></meta> tag. It gets pulled from the SEO options in the CMS.
{{ user }} - returns the current authenticated member. Member attributes can also be accessed through this object but we will detail them later.
{{ signed_in }} - returns “true” if there is a signed in Member.
{{ current_date }} - returns the current date.
{{ current_month_name }} - returns the current month name in English: “January”, “December”, etc.
{{ last_month_name }} - Returns the previous month name in English, as above.
{{ next_month_name }} - See above.
{{ analytics_tracking }} - outputs the Google Analytics tracking code that you entered in the publisher admin. To be used in the <head></head> part of the layout.html page.
{{ news_posts }} - returns an ordered collection of all the news posts that are displayable for the website (with most recent on top).News post can also be accessed through each object in the collection but we will detail them later.
{{ rakeback_offers }} - returns an ordered collection of all working rakeback offers. Offer attributes can be accessed through the attributes listed below.
{{ bonus_offers }} - returns an ordered collection of all working bonus offers. Offer attributes can also be accessed through the attributes listed below.
Attributes: attributes are additional parameters you can supply to a token to get additional related information. The following attributes work for both {{ rakeback_offers }} and {{ bonus_offers }} :
- account_identifier: The naming convention that the Poker Room uses for their user name. ie: "Screename, Login, Pokername, etc"
- bonus: the bonus amount/percentage offered.
- image: The path to the poker room's standard image, ie: /images/offers/ft.png
- icon: The path to the poker room's icon (also an image, but smaller), ie: /images/offers/ft-icon.png
- tny_image: The path to the offer's Poker Room small icon (also an icon, but even smaller), ie: /images/offers/ft-icon.png
- name: The offer name.
- network: The network the poker room belongs to.
- rake_type: The poker room's rake type (dealt, contributed, etc.).
- reward: The offer's reward. If rakeback offer, returns the percentage. If bonus offer, returns the bonus.
- signup_url: The offer's signup URL.
- review_page: URL for the offer's review page. ie: "http://www.raketracker.com/rakeback/party-poker.html"
- signup_code: Offer's signup code.
Example: {{ rakeback_offers.review_page }} would return the offer's review page.
If you want to use multiple attributes, you must use multiple instances of the token + attribute, as only one attribute can be appended to a token at a time.
Example: {{ rakeback_offers.name }}
{{ rakeback_offers.network }}
would return the name and network of the rakeback offer.
Happy hacking!
Cena

LinkBack URL
About LinkBacks
Reply With Quote

