At: Home » Administer » User management » Permissions (/admin/user/permissions), check “date module / view date repeats” checkbox for “unauthenticated user” and then click “Save permissions.” Then view a page (or View) while not logged in (unauthenticated) that should show a repeating dates statement, and that does show it when logged in as User/1.
It doesn’t appear.
Content Export of Date field of Events Content Type (is this what’s meant by a “Content Copy”?):
<?php
$content['type'] = array (
'name' => 'Event',
'type' => 'event',
'description' => 'An event date content type that is linked to a Views calendar.',
'title_label' => 'Title',
'body_label' => 'Body',
'min_word_count' => '0',
'help' => '',
'node_options' =>
array (
'status' => true,
'promote' => true,
'sticky' => false,
'revision' => false,
),
'language_content_type' => 0,
'upload' => 1,
'old_type' => 'event',
'orig_type' => 'event',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'image_attach' => 0,
'image_attach_size_teaser' => 'thumbnail',
'image_attach_weight_teaser' => 0,
'image_attach_size_body' => 'thumbnail',
'image_attach_weight_body' => 0,
'comment' => 2,
'comment_default_mode' => 4,
'comment_default_order' => 1,
'comment_default_per_page' => 50,
'comment_controls' => 3,
'comment_anonymous' => 0,
'comment_subject_field' => 1,
'comment_preview' => 1,
'comment_form_location' => 0,
'fivestar' => 0,
'fivestar_stars' => 5,
'fivestar_labels_enable' => 1,
'fivestar_label_0' => 'Cancel rating',
'fivestar_label_1' => 'Poor',
'fivestar_label_2' => 'Okay',
'fivestar_label_3' => 'Good',
'fivestar_label_4' => 'Great',
'fivestar_label_5' => 'Awesome',
'fivestar_label_6' => 'Give it @star/@count',
'fivestar_label_7' => 'Give it @star/@count',
'fivestar_label_8' => 'Give it @star/@count',
'fivestar_label_9' => 'Give it @star/@count',
'fivestar_label_10' => 'Give it @star/@count',
'fivestar_style' => 'average',
'fivestar_text' => 'dual',
'fivestar_title' => 1,
'fivestar_feedback' => 1,
'fivestar_unvote' => 0,
'fivestar_position_teaser' => 'hidden',
'fivestar_position' => 'below',
'fivestar_comment' => 0,
'print_display' => 1,
'print_display_comment' => 0,
'print_display_urllist' => 1,
'print_mail_display' => 1,
'print_mail_display_comment' => 0,
'print_mail_display_urllist' => 1,
);
$content['fields'] = array (
0 =>
array (
'label' => 'Date',
'field_name' => 'field_date',
'type' => 'datetime',
'widget_type' => 'date_popup_repeat',
'change' => 'Change basic information',
'weight' => '-4',
'default_value' => 'blank',
'default_value2' => 'blank',
'default_value_code' => '',
'default_value_code2' => '',
'input_format' => 'M j Y - g:i:sa',
'input_format_custom' => '',
'year_range' => '0:+2',
'increment' => '15',
'advanced' =>
array (
'label_position' => 'above',
'text_parts' =>
array (
'year' => 0,
'month' => 0,
'day' => 0,
'hour' => 0,
'minute' => 0,
'second' => 0,
),
),
'label_position' => 'above',
'text_parts' =>
array (
),
'description' => '',
'group' => false,
'required' => 1,
'multiple' => 1,
'repeat' => 1,
'todate' => 'optional',
'granularity' =>
array (
'year' => 'year',
'month' => 'month',
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
),
'default_format' => 'long',
'tz_handling' => 'site',
'timezone_db' => 'UTC',
'repeat_collapsed' => '1',
'op' => 'Save field settings',
'module' => 'date',
'widget_module' => 'date',
'columns' =>
array (
'value' =>
array (
'type' => 'datetime',
'not null' => false,
'sortable' => true,
'views' => true,
),
'value2' =>
array (
'type' => 'datetime',
'not null' => false,
'sortable' => true,
'views' => false,
),
'rrule' =>
array (
'type' => 'text',
'not null' => false,
'sortable' => false,
'views' => false,
),
),
'display_settings' =>
array (
'weight' => '-4',
'parent' => '',
'label' =>
array (
'format' => 'hidden',
),
'teaser' =>
array (
'format' => 'default',
'exclude' => 0,
),
'full' =>
array (
'format' => 'default',
'exclude' => 0,
),
4 =>
array (
'format' => 'default',
'exclude' => 0,
),
2 =>
array (
'format' => 'default',
'exclude' => 0,
),
3 =>
array (
'format' => 'default',
'exclude' => 0,
),
'token' =>
array (
'format' => 'default',
'exclude' => 0,
),
),
),
);
$content['extra'] = array (
'title' => '-5',
'body_field' => '-2',
'menu' => '-3',
'attachments' => '0',
'print' => '-1',
);
?>
Comments
Comment #1
karens commentedThe 'view repeats' permission is permission to view the 'repeats' tab on the node, added so you can keep that tab from showing up for everyone. It has nothing to do with Views. If you want to control access to the data for this field, use the Content Permissions module and set permissions on the field. The permissions will be honored in both the node view and in Views.
Comment #2
Joel MMCC commentedThanks!
Comment #3
Joel MMCC commentedOkay, I tried that. It still doesn’t work. Content Permissions is part of the CCK core as of Drupal 6, and the regular Permissions page lists it, but it only provides Edit and View permissions at the field level, not the sub-field level (e.g. the Repeating portion of a Date display).
Thus, there is no specific permission for the Date Repeat info. I can show or hide the entire Date field information based on Role, but not the Date Repeat info. It remains hidden for all non-Root Users, regardless of what I do. There are no settings that I’ve been able to find to enable it.
Root user sees this:
Repeats every month on the Thursday until Sat Dec 31 2011 .
Thursday, May 14, 2009 - 5:30pm
Everyone else sees this, even with all View Field Content Permissions enabled for all Roles:
Thursday, May 14, 2009 - 5:30pm
Note also the missing Ordinal word in what the Root user sees (should read “…on the Second Thursday…” in this particular case), but that’s another Issue that I posted days ago:
#460776: Repeating Date Rule Display missing Ordinal word (e.g. “Second”) when displayed in View, e.g. Upcoming
Comment #4
karens commentedWell this is a different issue, in fact a couple different issues, please keep to one issue at a time. You already have another issue for the second point, no need to confuse things by bringing that up again here. It makes it hard for anyone reading this to figure out what *this* issue is about and encourages 'Me too' responses for problems that are being fixed somewhere else.
I won't make you open a new issue for this, but I'll reword it to reflect what we're talking about now.
Comment #5
Joel MMCC commentedRight. When I first opened this, I thought it was just unauthenticated users. But then after some tests I saw that it was more than that. Your proposed title is much better.
The only reason I mentioned the other issue is because it shows up in the copy/paste of my examples (note that I didn’t mention the stray space after the date but before the period). Also, I had seen no acknowledgment that you’d even seen that issue, so I thought it may have somehow fallen through the cracks, as it were.
That one I may assign to and try to solve myself. Since it worked fine in 2.1, and I still have a copy of 2.1, I should be able to find it with WinMerge. If so, should I post my proposed line fix in that issue, and you would incorporate it into the next version if it’s up to snuff? Or should I submit it to CVS, or what? I’m still a n00b here.
Comment #6
karens commentedI can't reply to every issue as soon as it is posted, there are hundreds of issues in my queues and some will remain there without any response until I can get to them or someone else responds. I have addressed several hundred issues in the last couple of weeks. That's not every issue but it's as much as I can do. I do this in my *free* time, it's not a job anyone is paying me to do.
So what I'm saying is don't bring up other issues, even if I haven't responded to them, it just adds to the huge amount of noise I already have to deal with, plus it confuses the topic because other people read that and start adding their own, unrelated information, until sometimes I have to close issues just because they are so polluted no one knows what they are about any more.
If you think you can identify the cause of a problem, please post anything you find on the relevant issue. You can't post patches directly to cvs, you don't have permission and that's not the way it works anyway. You post a patch in the issue so we can look at it and discuss if it's the right fix. And don't limit yourself to patches, any information you find that helps identify the source of a problem is useful, especially if you find things like 'this only happens on the node edit form for datestamp fields with a granularity of year, month, and day'.
Comment #7
Joel MMCC commentedThanks for the helpful info.
For now, I think it would suffice if the Date Repeat line simply respected the existing View Date Field permissions. Later it may be useful to decide who does and does not see the Repeat line independently of who does and does not see the absolute Date info, but for now, at least for our purposes, and I think for many others, generally we either want people to see all of the Date info, or none of it.
Would that be easier to implement? The independent View Date Repeat Line permission could be added in a later feature release.
Comment #8
arlinsandbulte commentedAlready, this short issue is very noisy and hard to follow.
I am going to close it out.
Please open a new issue with a more clear report and goal if you wish to pursue this further.
Comment #9
acontia commentedHi,
I had the same problem trying to show repeated nodes in the Calendar module. It was displayed only to the admin.
I finally solved it adding the "Start date" and "To date" fields to the Sort criteria, in the view settings. I don't really understand why... but it works for me.
Regards