![]() |
Account:
[ Log in/Create Account ]
|
Create or Edit a Template »You can use this form to create or edit templates. These templates are what is applied to your data feeds when you trigger a publish action. |
Template Details Explained »Templates are what gets applied to your feeds when you trigger a publish action. Template Sections »You can break templates up into logical sections by defining the sections with special tags that look like the following: [ === SECTION 1 === ] Sections headers, like the one above, will not render in your actual feed and are only used internally by the fubnub bots. You can use any value you like to reference a section header so long as you use the format of [ === XYZ === ] (where XYZ is whatever value you want to use). The one exception is [ === BODY === ] which is what fubnub uses internally to know what section to apply to each item in your feed. This means that if you do define sections, you must make sure to define a [ === BODY === ] section that you want to apply to your each item in your feed (otherwise you'll just get your basic template back without any data from your feed injected into it). If you do not define any sections in your template, the entire template is considered to be one logical section (ie. the [ === BODY === ] section) and will be applied to each of your feed items. Template Fields »Within a template, you use a special place holder to reference the details from your feed. The syntax for this holder is: [' user '] The value you use within your place holder should relate to the tag name from your feed. For example, the last.fm recent track XML has a <name> tag, so if I want to use that name value in my template, I would define the place holder (in my [ === BODY === ] section) as [' name ']. |
|||
A Quick Example of the Process »
|
||||