I am wondering if it's possible to just show the time reserved on the calendar, not开发者_开发知识库 the title of the event, using jQuery’s FullCalendar plug-in?
Thank you very much for your help!
You can do everything you want with altering CSS class :
To hide event title:
.fc-event-time {
display: none;
}
If you want to keep time of events but keep the same background between title and body, you should unset opacity:
.fc-event-vert .fc-event-bg {
opacity: 0;
}
Somewhere along the lines of 3665 inside the fullCalendaer normal version look for this code
(!event.allDay && seg.isStart ?
"<span class='fc-event-time'>" +
htmlEscape(formatDates(event.start, event.end, opt('timeFormat'))) +
"</span>"
:'') +
"<span class='fc-event-title'>" + htmlEscape(event.title) + "</span>" +
Remove
"<span class='fc-event-title'>" + htmlEscape(event.title) + "</span>" +
So that it still makes sense i jscript syntax and viola! no more title just time.
With this, install the module Auto Entity Labels or Auto Nodetitles and when you go and edit the Content Type created, you'll see tabs such as "Edit", "Manage Fields", "Auto Label", etc...
When you click on "Auto Label', set the Automatic Label Generation to "Automatically generate the label and hide the label field" and set the Pattern for the title to <none>
.
Now when you create content from the content type, i.e. FullCalendar, it will just show the timeslot you've entered without the title of the node.
精彩评论