• Resolved tconner

    (@tconner)


    One more little question…
    Under the Event Details Options on the Calendar Output Settings, there is an option to enter in Event URL link text. I’ve tried putting various text and tags into this field, but whenever I use the {link} tag in a template, all I see is the URL. Isn’t this option supposed to replace the URL with the text or tag I specify, or am I confused? Any help would be most appreciated. Thanks!

    http://wordpress.org/extend/plugins/my-calendar/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    No, {link} is just that: the URL. The details options are for customizing the output in the default grid view, not for customizing the output of template tags. The template tags are themselves a customization output, and that would get very confusing.

    What are you trying to accomplish?

    Thread Starter tconner

    (@tconner)

    I am trying to change the Event Details Page template so that it will display the event’s URL (if it has one) as a link with the text “Join on Facebook” … I’ve done something similar already with the location’s link by adding <a href="{sitelink}">{sitelink}</a> into the template. I realize I could do the same by replacing the first {sitelink} with {link} and the second with “Join on Facebook”, but I was hoping to make this link display only if the event has one. Otherwise it would lead the viewer nowhere. I thought I could do this by changing the Event URL Link Text option under settings, but I guess not.

    Plugin Author Joe Dolson

    (@joedolson)

    You can use template tag attributes:

    {link before="<a href='" after="'>Join on Facebook</a>"}

    That should work for you. Be careful with your nested quotes, however! As above, it should work.

    Thread Starter tconner

    (@tconner)

    Works beautifully! Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: My Calendar] Event URL Link Text’ is closed to new replies.