We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Solspace Tag Module: Tag form not showing up for all gallery entries

Development and Programming

arin721's avatar
arin721
6 posts
17 years ago
arin721's avatar arin721

i’ve been playing around with this for a couple of days now and i’m at a loss…

i’m trying to use the tag form so users can add tags to gallery entries and… it works… on SOME entries. on others, the form doesn’t show up at all. and i’m just completely stumped as to what the cause could be.

my code looks like this:

{exp:gallery:entries gallery="{gn}" limit="1" log_views="on"}
        

        

        <span class="category"><b>{title}</b></span> - 
        <i><b>tagged as:</b>
        {exp:tag:tags entry_id="{entry_id}" type="gallery" backspace="2" orderby="clicks" sort="desc"}
        <a href="http://{path={gn}/tags}{websafe_tag}" title="{tag_name}">{tag}</a>,
        {/exp:tag:tags}
        </i>
         
        {if width >= 640 }
        <div class="drop-shadow">
        <a href="http://{image_url}">{image_url}</a>
        </div>
        
        <hr >
        
        <div class="sidetext">
        {caption}
        </div>
        
        <div class="sidetext">
        {views} {if views == 1}view{/if}{if views != 1}views{/if}
         •         
        {if allow_comments}
        
        {/if}
        </div>

        {exp:tag:form form_name="addtags" entry_id="{entry_id}" type="gallery"}
        <div class="sidetext">
        <h4>Add your own tags</h4>
        <div class="small">Each tag should be separated by a space.</div>
        <textarea name="tags" cols="50" rows="4"></textarea>
        <input type="submit" name="submit" value="Submit" />
        </div>
        {/exp:tag:form}         
        
        {if:else}
        <div class="drop-shadow">
        <a href="http://{image_url}">{image_url}</a>
        </div>
        
        <hr >
        
        <div class="sidetext">
        {caption}
        </div>
        
        <div class="sidetext">
        {views} {if views == 1}view{/if}{if views != 1}views{/if}
         •         
        {if allow_comments}
        
        {/if}
        </div>

        {exp:tag:form form_name="addtags" entry_id="{entry_id}" type="gallery"}
        <div class="sidetext">
        <h4>Add your own tags</h4>
        <div class="small">Each tag on a separate line</div>
        <textarea name="tags" cols="50" rows="4"></textarea>
        <input type="submit" name="submit" value="Submit" />
        </div>
        {/exp:tag:form} 
                
        {/if}

        {/exp:gallery:entries}

i’ve tried pulling the form out of the {exp:gallery:entries}. that seems to make no difference. shows up on the same entries and not on the others. the conditional based on width doesn’t seem to be a common factor either.

the overwhelming majority of entries do NOT show the form though. i’m totally at a loss.

any ideas?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.