Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Possibility to customize the calendar modal #7523

Closed
Hypocrite opened this issue Jan 27, 2019 · 3 comments
Closed

[Feature request] Possibility to customize the calendar modal #7523

Hypocrite opened this issue Jan 27, 2019 · 3 comments
Labels
Stale Issues that have been inactive for more than 180 days and will soon be closed

Comments

@Hypocrite
Copy link

Currently it seems that its not possible to change the date format and View event -link text in the modal of the calendar list. Also I would like to control in which order the attributes are shown in the modal.

Would be nice if you could change these in the dashboard. Could there be an page for setting the calendar dialog settings where you could drag and drop the calendar attribute order and also customize some built in settings like date format and button text?

@jasteele12
Copy link
Contributor

Have you seen this tutorial (time format) and the second link on view specific options?
Customize the core Calendar block time format

See also: FullCalendar formatDate - formatString

I agree it would be nice to set in the dashboard, but can be done with templates. Take a look at view.php in concrete/blocks/calendar/ and conrete/blocks/calendar_event/

I don't see where the calendar uses attribute sets (which would allow you to put them in a specific order), so you would need to hack something together like adding a separator + number in the key name and stripping it before display :(

See this still open #6155 issue...

Hope that helps -John

@Hypocrite
Copy link
Author

Hypocrite commented Jan 28, 2019

Yes, I saw those but if I understand correctly, that time format only applies for the actual calendar view with Full calendar and not for the Magnific popup which opens the event details.

Also attribute sets would not probably be enough since not all elements in the popup are attributes. Like currently the View event link gets printed in the middle of the information when I would like to display it in the end of the popup which would be the logical place in my opinion.

Seems to be that the order is hardcoded in the calendar controller.php where the link is coming before the attributes.

$lightboxProperties = [
            'title' => t('Title'),
            'date' => t('Date'),
            'description' => t('Description'),
            'linkToPage' => t('Link to Page'),
        ];
        foreach ($this->eventAttributes as $ak) {
            $lightboxProperties['ak_' . $ak->getAttributeKeyID()] = $ak->getAttributeKeyDisplayName();
        }
        $this->set('lightboxProperties', $lightboxProperties);

Probably could of course hack this but would still be nice to be able to cuistomize this in the admin panel.

@Hypocrite Hypocrite changed the title Possibility to customize the calendar modal [Feature request] Possibility to customize the calendar modal Feb 19, 2019
@stale
Copy link

stale bot commented Jul 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

@stale stale bot added the Stale Issues that have been inactive for more than 180 days and will soon be closed label Jul 6, 2020
@stale stale bot closed this as completed Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Issues that have been inactive for more than 180 days and will soon be closed
Projects
None yet
Development

No branches or pull requests

3 participants