Can any one say that how i show my kickstart price slider in front page.
I read many reference but still at no where .
I use the multiblock module but the block produced is only shows in the search page.
Then I also try through view . I create another facet block using facet api but there is no option for changing the display widget.
is there any way or i am missing something .
Any help is most appreciable .
thank you in advance.
got it myself i create a facet block with price field and a search block of index type which will show the facet in every where the search page will shown .i restricted it for only front page .Then it works for me.
Related
I've 3 jsons files linked with 3 controllers, and I need to search on them using ionic/angularjs. I would like the results appear as dropdown menu, like Facebook search or like here in Stackoverflow.
Thank you.
So there are two things here that you want to do:
Be able to search inside JSON file, I think you can do that, there is a SO thread for same : Angular Search for value in JSON and display corresponding data
Display an Auto-complete drop-down, I think there bunch of directives out there, like: https://www.versioneye.com/javascript/sn0opr:ionic-autocomplete/0.1
You can also check following Ionic forum thread for type ahead recommendation:
https://forum.ionicframework.com/t/recomendation-for-a-typeahead-widget/55
If you want to create your own have look at following tutorial:
http://www.sitepoint.com/creating-a-typeahead-widget-with-angularjs/
I've created a calendar views wherein i can see all the events I've created. I also add contextual filter(start_date_of_event) to set the date to current on the first load of the page. It is working fine but my problem is that when i put an exposed filter(start_date_of_event) same field i use in my contextual filter, and tried to run it ? it seems it wont work.
To further explain. Below are the sample link:
1. with contextual filter (working) : http://test.com/test-calendar-listing/2014-12
2. with contextual filter and exposed filter (not working) :http://test.com/test-calendar-listing/2014-12?field_state_country_value=All&field_sample_method_of_delivery_tid=All&field_topics_tid=All&field_provider_type_value=All&field_event_status_value=1&field_start_date_value%5Bvalue%5D%5Bmonth%5D=11&field_start_date_value%5Bvalue%5D%5Byear%5D=2014
What i did so far is used filter harmonizer but no luck.I also tried to used hook_form_alter to redirect the page the link i want but not working also. can you please suggest what is the best thing to do? or what are things i am missing ? thanks for your help.
I just can't seem to wrap my head around Drupal relationships. I have been reading and watching tutorials, but as soon as I try to get my own project done - I fail. I think it's very basic, so I would love to understand it. Maybe someone here can help me understand how it works :)
On my drupal site, I want to keep track of some private game tournaments.
I have created a content type called contestant, which has fields like: Tournament date, Player name, Final Position. I can then create a view that list the information from one tournament. I used the help I got from this thread: drupal views dynamic filter
I would like to have the view described above as a block. And then place that block-view on a "tournament description" page. I could do this, by simply creating a new block each time, and then manually place it on the page it should be shown (structure-->Blocks-->configure), but that is not an elegant way to do it. I am pretty sure this is where Relationships should be used. But I fail to understand how to create this relationship, so that the specific block view, that matches the specific tournament description page will be displayed together.
Use a Content:Nid as a Contextual filter.
WHEN the Filter value is not in the URL >>
Provide default value
Content ID from URL
Is there a drupal block module that allows you to change the text of the block on a per page basis with the option of a default text for every page?
Thanks in advance
If you want different text in a block on a per page basis, one way to do this is to add a textarea field to the node for that page, and when block is rendered, look up the node for that page and pull the text from that field into that block.
It looks like this module does this for you:
https://www.drupal.org/project/cck_blocks
Here's a tutorial on how it works:
https://www.ostraining.com/blog/drupal/cck-blocks/
I have been trying to create a component like the Bakery's Paginator Recall that would allow me to save pagination data for CakePHP 2.4 and run into the following issue.
All solutions involve saving the Paginator parameters in the session and then retrieving and applying them upon returning to that same page without specifying any.
This approach would have worked if only the Paginator helper functions like numbers(), first() and previous() would include the page:1 named parameter in the links that they generate for moving to the first page like the corresponding function of the 1.3 version.
Unfortunately all of these functions create URLs without the page parameter when they refer to the first page, so when users click on the first page link, the component does not find any paging info and hence it returns them to the previous position.
There must be some way to work around this, but for the moment I am completely stuck.
NOT including the page number in the link to the first page is by design.
Read the reason on the CakePHP 2.4 Migration guide.
I would suggest to use the same convention. When you do not have pagination information assume is page one, and do not add it to your URLs.
So all you have to do is code this special case when then pagination is missing. And in this special case your "recall" component will simply not add that page.
I believe that I have managed to create a working solution. Thanks to the advice I have received I have now created a working component like the original PaginationRecallCompoent.
I have written all the details in the following blog post.