Basic Example

Simple as can be. Adding, removing and viewing local content.

Adding/Removing Items

{exp:channel:entries channel="news"}
	<h2>{title}</h2>
	{exp:shortlist:item entry_id="{entry_id}"}
	{if in_list}
		<a href="{remove_url}">Remove Item</a>
	{if:else}
		<a href="{add_url}">Add Item</a>
	{/if}
	{/exp:shortlist:item}
{/exp:channel:entries}

Will give you something like this :

<h2>Entry One</h2>
<a href="http://site.url?ACT=12&p=…">Add Item</a>

<h2>Entry Two</h2>
<a href="http://site.url?ACT=13&p=…">Remove Item</a>

<h2>Entry Three</h2>
<a href="http://site.url?ACT=13&p=…">Remove Item</a>

Viewing Items

{exp:shortlist:view}
	{if count==1}
	<h3>Your Shortlist ({total_results} Items)</h2>
	<ul>
	{/if}
	<li>{title} (<a href="{remove_url}">Remove</a>)</li>
	{if count==total_results}</ul>{/if}
	{if no_results}Your list is empty{/if}
{/exp:shortlist:view}

Will give you something like this :

<h3>Your Shortlist (2 Items)</h3>
<ul>
<li>Entry Two (<a href="http://site.url?ACT=13&p=…">)Remove</a></li>
<li>Entry Three (<a href="http://site.url?ACT=13&p=…">)Remove</a></li>
</ul>