Free-Conversant Support / How-To Add Labels To Weblogs
 Home   About Conversant   Free Sites   Hosting   Support   XML-RPC 

Search



Documentation >> Outline of How-To Docs >> How-To Add Labels To Weblogs

Content

If the labels aren't already displayed in your Weblog, we'll see here how to add them. If you're using several weblogs, you'll have to do this for each of them. We'll:

Edit the template

Each Weblog has two templates called Day Template and Item Template. We'll edit the Item Template.

It's located at:

"/yourSite/admins/conversation/yourSite/structure$path=yourSite%2FpageName"

... were pageName is your weblog's name.

This template is used for each message displayed in the weblog.

Macros

Here are the macro you may call from this template. As usual, macro calls are on the form "<!--#macroName-->".

  • label
    This will be replaced with a colored block (colored with the label's color, of course). You may use it alone.
  • labelColor
    This will be simply replaced with the label's color. Use it if you want to display the label's name on a background of its color, for example.
  • labelTextColor
    This will be simply replaced with the label's text color. You may call it from a <font> tag, for example.
  • labelName
    This will be replaced with the label's name.
  • labelId
    This will be replaced with the label's id (the unique, non-editable identifier that each labels has).

Example

Here's what we added to the default item template:

<!--#label-->

If you want to display the label's name on a background of its color, you could use:

<span style='background-color:<!--#labelColor-->'>
	<font color='<!--#labelTextColor-->'><!--#labelName--></font>
</span> 

When you're done editing the template (and pasting it back in the File Properties screen if you edited it in an external text editor), click on Change File Properties. The page will reload, confirming the changes.

That's it, you're done. Click on "View Page" to jump to your weblog.

More Infos

If you're adding labels to your whole conversation, you may want to go back to the labels documentation, where you'll find links to the other How-To's about labels.

If you need more infos about the Topics Page, see the Weblog documentation.

View in DG