Neil Nand
  • Member for 7 years, 1 month
  • Last seen more than a month ago
Display Solr search form on every pages
Accepted answer
1 votes

I managed to work this one out, to get the block ready to be displayed I used preproccess_region (see code below) function THEMENAME_preprocess_region(&$variables){ $site_search_block = ...

View answer
Show workflow transition bar in all states
Accepted answer
0 votes

I worked out what the issue is, you can only see that bar when you're looking at the Latest Version of a node (using the "Latest Version" tab) not when viewing the latest published version of the node ...

View answer
Filtered HTML adding two <br> tags, not one
Accepted answer
0 votes

The only way I've found of resolving this is to replace the two <br /> tags with one using a str_replace in the field preprocess function. I've placed an example below. function ...

View answer
Modal with content depending on opening hours
Accepted answer
0 votes

I've managed to work it out, was a very simple problem. When I installed the colorbox module (not colorbox node) I just installed the module but I need to copy the colorbox plugin into the Drupal ...

View answer
View which filters based on URL matching field value
Accepted answer
0 votes

I wasn't able to do exactly what I wanted but what I did instead was create an exposed filter for the field in the content type being searched & use the URL parameter it created when in use to ...

View answer
Programmatically render menu on search view
0 votes

I worked it out, turns out the problem is different to what I thought. Because the search view isn't in the menu structure I need to add different values to the $config array. Firstly I needed to add ...

View answer
Display all menu levels
Accepted answer
0 votes

I've managed to find an answer in a Stack Overflow answer https://stackoverflow.com/a/30570027/1094862 For completeness I've copied the relevant code below: $main_menu_tree = menu_tree_all_data('...

View answer
Search facet user entered date field display
Accepted answer
-1 votes

If anyone else has this same problem, there is a patch on drupal.org. If you've not used to patches, See this beginner's guide.

View answer