i use the expense date which is coming from expense content type.
i have select the expense date in context filter.
and add the return date('m', REQUEST_TIME);.

Then change the pager to show all entries, not five, if you want to see all.

so its display ajax error like this " An AJAX HTTP error occurred "

so how can i sort out ???

Files: 
CommentFileSizeAuthor
#10 demo.png137.4 KBpriyankprajapati

Comments

Niklas Fiekas’s picture

Edit your view. Advanced -> Contextual filters -> Add User: Birthdays (birthday:month) -> Provide default value: PHP Code, return date('m', REQUEST_TIME);.

Then change the pager to show all entries, not five, if you want to see all.

Admittedly this is not very straight forward and requires one bit of PHP code. So change to feature request? Further questions?

kgrigsby’s picture

Category:support» feature

Thank you. That works.
I was looking for some settings under the Filter Criteria to accomplish this.

To me it seems this would be a common use case so I will change the category to a feature request.

milos.kroulik’s picture

Yes, I agree, that it would make sense to have some pre-defined value for this, just like the contextual filter for the Date module.

expansion’s picture

Hi,

Where is the "PHP Code" option ? If you choose to display users in a view, you don't have this.

Niklas Fiekas’s picture

You do. Did you follow Advanced -> Contextual filters -> Add User: Birthdays (birthday:month) -> Provide default value?

expansion’s picture

Yep, but no 'PHP Code' option in the 'Type' list under.

MHLut’s picture

You will get the PHP option when you install and enable the Views PHP module. Note that this module only has a development release, you will want to check the issue queue before you use this.

(This Views PHP issue is especially nasty: #1140896: Variable $row does not contain correct values ($data->_field_data does))

Niklas Fiekas’s picture

(Note that for Contextual filters Views PHP is not required.)

hawkdavis’s picture

Issue summary:View changes

I know this thread is two years old but is there any way to add another filter that would filter out all days that are greater than today?
I want to display all birthdays for this month but not the ones that have already passed.

maybe something like this?
Edit your view. Advanced -> Contextual filters -> Add User: Birthdays (birthday:day) -> Provide default value: PHP Code, return date('d', >"greater than" REQUEST_TIME);.

priyankprajapati’s picture

Issue summary:View changes
StatusFileSize
new137.4 KB

i use the expense date which is coming from expense content type.
i have select the expense date in context filter.
and add the return date('m', REQUEST_TIME);.

Then change the pager to show all entries, not five, if you want to see all.

so its display ajax error like this " An AJAX HTTP error occurred "

so how can i sort out ???