Favorites 2.1 Saved

When placed within the {exp:weblog:entries} tag, this tag lets you use a conditional to determine whether a given entry has been saved by the currently logged in user.

Parameters

{exp:favorites:saved entry_id="{entry_id}"}

{if saved}

<p>You have already saved this link.</p>

{/if}

{if not_saved}

<p>Do you want to save this link?</p>

{/if}

{/exp:favorites:saved}

entry_id

entry_id = "some_entry_id"

The 'entry_id' parameter allows you to override the entry id or url title pulled from the url of the page. In those cases where your page shows a number of weblog entries, for each of which you want to display a favorites count, you should supply this parameter by feeding into it the entry_id variable from your weblog:entries tag. Like this entry_id="{entry_id}".

Conditionals

saved or not_saved

{if saved}

<p>You have already saved this link.</p>

{/if}

{if not_saved}

<p>Do you want to save this link?</p>

{/if}

{/exp:favorites:saved}

Any standard EE conditional format can be used with these two variables. These variables are only available for use in conditionals -- they are not available as stand-alone variables.