We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Location tag doesn't strip tabs, etc from content for marker tags

Erin Dalzell May 9, 2015 by Erin Dalzell

I had this for my marker tags:

    {{ location:map_listing folder="location" locate_with="where" }}
        {{ if name }}
            Name: {{ name }}</br>
        {{ /if }}
        {{ if slack }}
            Slack: <a href="https://statamic.slack.com/team/{{ slack }}">@{{ slack }}</a>{
        { /if }}
    {{ /location:map_listing }}

But with that Statamic leaves the /t/t in the content so there are "empty" markers. To work around it I had to do this:

    {{ location:map_listing folder="location" locate_with="where" }}
{{ if name }}Name: {{ name }}</br>{{ /if }}
{{ if slack }}Slack: <a href="https://statamic.slack.com/team/{{ slack }}">@{{ slack }}</a>{{ /if }}
    {{ /location:map_listing }}

Please remove those space characters.

>>>>>>> Unanswered <<<<<<<
0 Replies
1 Follower