1. NOTICE: If you are using Fabrik and update to Joomla 3.10, you will need to update to Fabrik 3.10. And, if you are using Fabrik, do not upgrade to Joomla 4, we do not have a supported version ready for release. More information on a release date coming soon. Also, please note that Fabrik 3.10 will not install on any Joomla sites less than 3.8.
    Dismiss Notice

Full calendar new label

Discussion in 'Community' started by elmarra, Aug 8, 2022.

  1. elmarra

    elmarra Member

    Level: Community
    Hello everybody.
    I created a new "full calendar" view for volunteer availability management.
    The view is linked to a list, where the volunteer gives his availability for a given day, selecting if available
    "morning"
    "afternoon"
    or "night".
    Now in the full calendar view I have selected the volunteer's name as the label.
    But in addition to the name, I would need to have the label "morning", "afternoon", "night" displayed in the calendar diagram.
    Is there any way I can add an additional label?
    Thank you
     
  2. lousyfool

    lousyfool Well-Known Member

    Level: Community
    Nope, there's only a single label using a single element.
    But you could use a calc element e.g. concatenating multiple elements whichever way you like, then set this as label.
     
  3. elmarra

    elmarra Member

    Level: Community
    Thanks for the advice.
    would you be kind enough to give me an example to be able to have two elements with calc ??
    I'm not very practical
     
  4. lousyfool

    lousyfool Well-Known Member

    Level: Community
  5. elmarra

    elmarra Member

    Level: Community
    Ok, perfect, I managed to get the desired result.
    only one thing is missing ..
    How can I add the space between the two fields?
    My code is this:
    "return '{disponibilit___volontario}'.'{disponibilit___disponibi_raw}';"
    Unfortunately I know it is php but I don't have the competence

    https://fabrikar.com/forums/index.php?threads/blank-space-for-a-calc-element.52827/

    I read this but didn't understand :(
    Thanks again for the help
     
  6. lousyfool

    lousyfool Well-Known Member

    Level: Community
    Try
    Code (Text):
    return '{disponibilit___volontario}'.' '.'{disponibilit___disponibi_raw}';
     
  7. elmarra

    elmarra Member

    Level: Community
    remained the same
     
  8. elmarra

    elmarra Member

    Level: Community
    My fault, this was the one working, obviously I had to update the record to see the calculation.

    Thanks again!
    Last favor if I don't ask too much.
    If I wanted to view the result from the beginning instead of alongside, is there an easy way?
    Thanks again
     
  9. lousyfool

    lousyfool Well-Known Member

    Level: Community
    Sorry, no idea what you mean. Maybe a screenshot with annotation, or a mockup of what it should look like?
     
  10. elmarra

    elmarra Member

    Level: Community
    Currently it is like this:
    "Volunteer, Morning"

    On one line.
    while I would like something like this in two lines like this:
    "Volunteer
    morning"
     
  11. lousyfool

    lousyfool Well-Known Member

    Level: Community
    Well, how about a simple HTML line break? :rolleyes:
    Code (Text):
    return '{disponibilit___volontario}'.'<br />'.'{disponibilit___disponibi_raw}';
     
    HyperOsmar and achartier like this.

Share This Page