Examples

Below are a couple of examples to quick start with the Gmaps module

Full example

<h4>Wishlist Items</h4>
<h5>All items</h5>
<ul>
{exp:wishlist:entries}    
<li>
    {title} 
    <a href="{wishlist:remove_from_wishlist}">[Remove from wishlist]</a>
    <a href="{wishlist:toggle_public}">[Set public]</a>
</li>
{/exp:wishlist:entries}
</ul>

<h5>Only public</h5>
{if wishlist:has:items}<p>Yes, there are public items</p>{/if}
<ul>
    {exp:wishlist:entries public="yes"}
    <li>
        {title}
        <a href="{wishlist:remove_from_wishlist}">[Remove from wishlist]</a>
        <a href="{wishlist:toggle_public}">[unset public]</a>
    </li>
    {/exp:wishlist:entries}
</ul>



<h2>Entries</h2>
<ul>
{exp:channel:entries dynamic="no" channel="wishlist"}
    <li>
        {title} <a href="{exp:wishlist:add entry_id="{entry_id}" only_link="yes"}">Add to wishlist</a>
    </li>
{/exp:channel:entries}
</ul>

Public page

<h1>Public wishlist Items</h1>
<ul>
    {exp:wishlist:entries hash="{segment_3}"}
    <li>
        {title}
    </li>
    {/exp:wishlist:entries}
</ul>