-
Notifications
You must be signed in to change notification settings - Fork 38
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
Date module - views api #1073
Comments
Tried the form with javascript disabled and it seems it is calling the missing function 'ctools_dependent_pre_render' from date_views_filter_handler_simple.inc where we have |
Suggestions please - I have no idea what to do to fix this. |
http://php.net/manual/en/language.types.array.php php 5.3? $form[$prefix]['#pre_render'] = array ('ctools_dependent_pre_render'); |
What should one do when a module uses a function provided in ctools but not in Backdrop? Copy across the whole function? |
I'm not 100% sure about this, but from what I recall when merging Views in Backdrop core, the necessary bits required from CTools were also moved in core (see #136 and #138 for example). From Views added to core it seems that In general, I believe that if things are to be used by other modules already in core or to-be-merged, then we move the functions in core in order to avoid code duplication. |
Yes, for the most part, CTools has been merged into core. The one notable In the case of On Mon, Aug 3, 2015 at 12:03 AM Gregory Netsas notifications@github.com
|
If anyone is interested in this problem, I ported the Feeds and Job Scheduler modules to Backdrop except for the CTools code, which someone will probably have to explain how it works in Backdrop. Or, if anyone is familiar with the where CTools stuff is Backdrop, you are welcome to fork and go from there. Thanks! I actually have time tonight, so I think I will start porting: Relevant links: |
@biolithic I am very interested in this problem, and also am having difficulty when faced with CTools functions. I made a start on Feed Import - backdrop-ops/contrib#104 - and found it difficult to understand what was going on. And I was just (in the last 24 hours) looking at Feeds so I will now take a look at what you have done. Thanks for the link to #487 - I think this is a most important feature to have available for Backdrop. |
Hi Graham, I just spent an hour and a half trying to figure out Feeds On Wed, Aug 5, 2015 at 12:23 AM, Graham Oliver notifications@github.com
|
I got back to this issue and tried the simple expedient of deleting the line |
|
@quicksketch Thanks for the link to the FormAPI #states example which is very helpful. I was also stuck on understanding how exactly to change from using #dependency to #states until I found your commit for views quicksketch/backdrop@1b9ed86 |
Looks like you've solved this issue already, as it's in the main PR and in commit 490d0561a6372d4ad1849ddef24ce92b0958c9b6. |
Ref issue #1063
![book group - next content - browsers bookshop 2015-07-30 16-42-47](https://cloud.githubusercontent.com/assets/10559274/8987677/1f82f868-36da-11e5-913f-68f4a9c7d68a.png)
Cannot remove a date from filter criteria
Selecting the entry in the Views form does not produce the required options.
The text was updated successfully, but these errors were encountered: