• Resolved justmigrating

    (@justmigrating)


    Is there a way to limit the length either in words or characters of the event description? Perhaps an excerpt length? I am formatting the most recent three events in columns and I want to keep the columns similar in height.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author bramwaas

    (@bramwaas)

    Hi Justmigrating,
    That seems like a good improvement, unfortunately I haven’t made an option for that yet.
    I will add this option with a parameter excerptlength (chars) shortly.

    But if I think about it again this is not a 100% solution, not every sign takes up the same amount of space. I think you also need CSS to make it all right.
    Maybe you should use max-height and overflow: hidden and maybe text-overflow: ellipsis on the element.

    Regards Bram

    • This reply was modified 3 years, 5 months ago by bramwaas.
    Plugin Author bramwaas

    (@bramwaas)

    Hi @justmigrating,

    Published version 1.4.0:
    Added parameter excerptlength to limit the length in characters of the description in respons to a comment of justmigrating. (@justmigrating).

    Hope this solves your issue.

    Regards Bram

    Thread Starter justmigrating

    (@justmigrating)

    Thanks, but I have moved on to another Google Calendar plugin. For some reason, your plugin displays an event multiple times for the same day and also skips letters in the description. It doesn’t seem to be syncing correctly.

    Plugin Author bramwaas

    (@bramwaas)

    Hi @justmigrating,

    Thank you for your constructive comments. Of course it is up to you to choose the plugin that best fits your needs.
    But I’m sorry that your choice is forced by a bug in my plugin. All the more so since I saw those errors myself when adding the excerpt length option and thought I had solved them.
    Did you also notice the error in version 1.4.0 and if so,
    could you help me a bit with definitively solving the error by providing the url of the calendar file, or add the downloaded .ics file in you reply

    Thanks and regards
    Bram Waasdorp

    • This reply was modified 3 years, 5 months ago by bramwaas.
    Thread Starter justmigrating

    (@justmigrating)

    Bram- I can email you the URL of the ics, but I don’t know how to find your email address.

    Here’s a link to a page with my client’s Google Calendar displayed using the Simple Google Calendar plugin. https://www.jdaviswebdesign.com/client/events/calendar/. It displays the events correctly (both grid and list form).

    Here’s a link to a page that uses your plugin to display the same Google Calendar (list form). https://www.jdaviswebdesign.com/client/test/. It doesn’t display the events correctly.

    Plugin Author bramwaas

    (@bramwaas)

    Hi Justmigrating,

    you can send it to: bram at waasdorpsoekhan.nl

    (replace ‘ at ‘ by the @ sign)

    That woould be very helpfull.

    Thanks Bram

    Plugin Author bramwaas

    (@bramwaas)

    Hi @justmigrating,

    I have looked at the webpages you send me, and I have been able to copy some of the events to my own google test calendar.
    The content of the .ics (ical) link from that calender is however different from what must be feeded to my plugin on your test page. All the HTML is stripped from the Description. The display of that file is correct, but maybe not what you would expect.

    It seems that the feed on your test page contains all the HTML in the Description, my plugin uses the htmlspecialchars function get rid of their special meaning. So the HTML tags are displayed as text. In my opinion this is good practice when you display data from an unknown source, so I will not instantly change this behaviour.
    But I can agree with you when you say that your own agenda is not an unknown source so maybe I should think about a better solution.

    For now I’m just going to make a clear statement in the FAQ and I wish you good luck with the other plugin that does meet your requirements. And of course thanks for your helpfull posts.

    Thanks and regards
    Bram Waasdorp

    • This reply was modified 3 years, 5 months ago by bramwaas.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Limit description length’ is closed to new replies.