Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
1. In views selected: Row Style -> Fields (Fullcalendar)
2. Checked "Use a custom event title" option, and chosen a field from those added before.
Fullcalendar continues to show the node title as title.
Even if I use the rewrite output for node title, to include through tokens other fields, only the title is shown.
I'm using Views 6.x-3.0rc2
Comment | File | Size | Author |
---|---|---|---|
#33 | FCLive.png | 29.32 KB | bjlewis2 |
#33 | FCPreview.png | 23.93 KB | bjlewis2 |
#33 | FCRewriteRule.png | 36.21 KB | bjlewis2 |
#31 | fullcalendar_render_selected_custom_title-1335550-31.patch | 807 bytes | fengtan |
#13 | calendar.jpg | 114.05 KB | lupas |
Comments
Comment #1
landing CreditAttribution: landing commentedI have the same issue
Comment #2
tim.plunkettCan you export your view and paste it here? http://paste.pocoo.org
Sorry you're having this bug, thanks for helping to resolve it.
Comment #3
landing CreditAttribution: landing commentedHere's my code http://paste.pocoo.org/show/505512/
I am displaying a calendar for a node that has separate date fields. The dates are displaying correctly in my view, but ideally I would like the title for each view result to be the label for that field. Is this possible?
Comment #4
tim.plunkett@landing, that shows you have the title field set to 'counting'. Not sure what that is.
I don't think it currently supports that, and likely not in D6. Let me brainstorm on a way to accomplish that though.
Comment #5
landing CreditAttribution: landing commented@tim.plunkett - http://paste.pocoo.org/show/505555/ here's the correct export. I have the title set to a custom text field, yet the export shows "nothing" for the title.
A thought on implementing titles on a per field basis: Can you use the views field label value as the title for a view result/row?
Comment #6
landing CreditAttribution: landing commentedUpdated to dev and it's working as it's supposed to. I would still be interested in have more custom options available for text that is shown in event displays.
Comment #7
tim.plunkettYou can use Views field rewriting to accomplish whatever you need to display in events.
Comment #9
achrelam CreditAttribution: achrelam commentedHello,
Am sorry, i re-opened this ticket because am having the same problem.
First, i tried to rewrite one of my field, by using pattern replacement, but it won't work, it shows only the real value of the field.
I also tried to create a custom php field, and include the other fields, but this time fullcalendar displayed the node title.
Any idea ?
Thank you so much for this module.
Comment #10
tim.plunkett@achrelam You need to edit the fullcalendar field settings and customize the title field to explicitly use the rewritten field.
Comment #11
lupas CreditAttribution: lupas commentedSame issue here. I have tried rewritting the Title field with no success. Tried also rewriting another field and it won't work either.
Neither creating a new custom Markup field.
Changing the "Custom title" option under the row plugin style settings doesn't make any difference.
Comment #12
aspilicious CreditAttribution: aspilicious commentedI still can't believe that. I would like a bunch of screenshots here
1) the views settings page
2) the calendar
3) an event node that appears in the calendar
4) the fullcalendar settings (be sure the rewriting is on the screenshot)
5) the rewriting settings of the field
And also check if the development version works
Comment #13
lupas CreditAttribution: lupas commented@aspilicious, please find attached all the screenshots from my settings. And below are the modules versions.
; Information added by drupal.org packaging script on 2011-12-08
version = "6.x-2.x-dev"
core = "6.x"
project = "fullcalendar"
datestamp = "1323303967"
; Information added by drupal.org packaging script on 2011-12-18
version = "6.x-3.x-dev"
core = "6.x"
project = "views"
datestamp = "1324212224"
Comment #14
landing CreditAttribution: landing commentedIt seems like I'm still facing the same problem, except that when I choose the a custom text field as the title field, it resorts back to displaying the node titles for each event on the calendar.
I've got the same set up as lupas.
Comment #15
lupas CreditAttribution: lupas commentedAny progress on this issue?
Comment #16
akaita CreditAttribution: akaita commentedSame thing here.
I have views 6.x-3.0, and I tried both fullcalendar 6.x-2.0-alpha2 and 6.x-2.x-dev (december 31).
I'd like to add that I can change the custom title to the first date field. Not to the second date field, not to any other field; fullcalendar always shows the node's title, except when I choose the first date field.
Comment #17
tim.plunkettOkay, thanks @akaita, that's some useful information. Reopening.
Comment #18
akaita CreditAttribution: akaita commentedBy the way, I tried and the exact same thing (can customize to first date, any other field goes to default) happens if I try to customize the "event redirect URL".
Hope it helps.
Comment #19
pauljb CreditAttribution: pauljb commented+1
Comment #20
pauljb CreditAttribution: pauljb commentedIs there any progress on this issue?
Thanks
Comment #21
akaita CreditAttribution: akaita commentedI applied http://drupal.org/node/1076576#comment-5425134 for another problem I was having, and I can select any custom title I want now!
Right now:
FullCalendar 6.x-2.0-alpha2
Views 6.x-3.0
patch: http://drupal.org/node/1076576#comment-5425134
Custom title working ok!
Comment #22
tim.plunkettMarking back, then.
Comment #24
Azol CreditAttribution: Azol commentedSorry for opening this again, but the latest code does not work for me,
I am looking at this fragment of theme.inc (comments were added by me to better illustrate my point):
and honestly I do not understand why it tries to look for actual values in $node object instead of $vars['row'] array which contains actual Views data with all the rewrite rules applied!
Comment #25
andyb85 CreditAttribution: andyb85 commentedHmm I did the same and doesn't seem to resolve my issue. Maybe my bad luck :(
Comment #26
aspilicious CreditAttribution: aspilicious commentedWell create a patch so others can test it. :)
Comment #30
rlnorthcuttThe problem here is that we aren't respecting the display of the field selected. In my case, I am trimming the title to 60 characters, so even if the title is pulled in properly, its not trimmed by the display plugin. I was able to hack it by changing:
to
Unless I am missing something, it seems that we should just be using template_preprocess_fullcalendar() to check for the options and then loop through the results to build the output. It just doesn't seem that doing this at the field level is really helping us unless there is an easier way to get the actual rendered display for the selected fields.
Comment #31
fengtan#30 works for me, thanks. I rolled the code into a patch for convenience, if anyone is interested.
Comment #32
kevinquillen CreditAttribution: kevinquillen commentedThe View preview does not reflect this change or other Custom field changes - but the View on the frontend does. It is very confusing.
Comment #33
bjlewis2 CreditAttribution: bjlewis2 commentedI'm going to echo @kevinquillen. I was confused because the preview shows no text, but the live calendar displays the placeholders.
Here's my rewrite rule:
Here's the preview:
And here's the live view:
Hope that helps!
(Oh, and this was using:
Core: 7.27
FullCalendar: 7.x-2.0
FullCalendar Library: 1.6.4)
Comment #34
jsheffers CreditAttribution: jsheffers commentedDoes this work for the google calendar as well? I can't seem to get it change at all.