Herzlich Willkommen.

Linktipp: Drupal 7 Views 3: Search in nodes via Search API with node as base table (does not seem possible)

15.04.2015 - 16:14

Note to myself: If you used the search.module (Core) before and switch to Search API, there seems to be no valid replacement for Views search fields if using "node" as base table.

You have to use the search api tables as base table like documented in the linked document below.

Please tell me, if there is an other solution. Converting all views is simply too big.


DrupalGap

DrupalGap + Windows Phone 8.1 (WP8.1) via Cordova / Phonegap

10.04.2015 - 10:55

WP8.1 plus DrupalGap seems to be a never ending story... after hours or even days I was not able to make it work because of problems with AJAX calls.
I've googled through hundreds of solutions but nothing worked so far.

So if you want to achieve the same, please help us to collect information here: https://github.com/signalpoint/DrupalGap/issues/291


ActiveCollab change Notebooks print templates

07.04.2015 - 10:33

Today I'd like to give you a short hint how to change the output of the print display of ActiveCollab Notebooks. We wanted to do that because we did not like the print output a lot and use AC Notebooks for requirement specifications.


Snippet: HOWTO Create .bat file for your UI-less Java .jar programm to leave the shell open after execution (and for result output)

06.04.2015 - 09:29

Simply paste this single line into a batch ("RUN.bat") or other to execute your Java .jar file in the same directory with double click and keep the Shell window open after execution to see all results and program status. I had to search a bit for that.


java -jar "YourJarFileName.jar" & pause

Don't forget to replace "YourJarFileName" by your .jar file name Wink

Happy coding!


Snippet: HTTP Authentication mit PHP trotz CGI/SuExec

27.03.2015 - 17:33

Eine Herausforderung des heutigen Tages lag darin, auf einer PHP-Website eine HTTP-Authentifizierung via PHP umzusetzen, obwohl PHP auf der Seite als CGI läuft.

Wie wir wissen, ist das ein Problem da die nötigen Variablen nicht belegt werden:

  1. $_SERVER['PHP_AUTH_USER']
  2. $_SERVER['PHP_AUTH_PW']

sind stets leer!

Zum Glück konnte ich einen Workaround finden:


Drupal Multisite as folder not working? Use a symlink pointing to .

27.03.2015 - 15:53

Your Drupal Multisite as subfolder does not work? (http://www.mydomain.com/mymultisitealias)

If you already have a correct sites.php in the "sites" folder ("sites/sites.php") then the solution may be to create a symlink in the drupal home directory.

In the example above that means your sites.php looks like this:

  1. $sites['mydomain.com'] = 'default';


Phonegap / Drupalgap / jQuery Mobile: Use "pageinit pageshow" events together to ensure functionality

27.03.2015 - 14:16

Today I have an important note for you that cost me a lot of time and debugging my Drupalgap / Phonegap App using jQuery Mobile.


Drupal 7 FAPI's #states: Take care of Internet Explorer (IE)!!! (Conditional fields not working in IE)

26.03.2015 - 15:21

Today I ran into a very very mad bug: ‎Conditional Fields‎ did not correctly work in IE, as discussed in this issue:
https://www.drupal.org/node/1373656

But as I later found out and posted here this problem is based on the FAPI #states API!


Drupal subscriptions.module: Exclude (current) user from notifications about own changes via HOOK

19.03.2015 - 19:08

With the following little HOOK snippet you can exclude users from receiving notifications about own changes in the ‎Subscriptions‎:

  1. /**
  2.  * Implements HOOK_subscriptions_queue_alter.
  3.  */
  4. function MYMODULE_subscriptions_queue_alter(&$event){
  5.   global $user;
  6.   if(!empty($user)){
  7.     // Prevent users from receiving notifications about own changes.


Drupal 7 set JavaScript / jQuery trigger on autocomplete field option

19.03.2015 - 15:02

With this little snippet you can easily set a trigger on autocomplete field options (suggestions) click:

  1. $(document).on('click', 'div.reference-autocomplete', function(e) {
  2.   // Do what you need to do Wink
  3. });

It's not that easy because the selection click does not trigger any change event on the parent input.


Inhalt abgleichen