Wed, 11/07/2012 - 10:53

Bookmarklet | erlaubt das posten von nodes wenn man auf anderen seiten ist Erlaubt das bookmarken von urls/querystrings wie z.B einer solr search Sehr bekannt, mit views integration, erlaubt das erstellen von Bookmarks jedlicher nodes/comments

Prepopulate Howto

INFO Beispiel: Im quelltext ist es:  submitted[liste] http://localhost/drupal_testumgebung/node/51?edit[submitted][liste]=1 For prepopulating lists i did not unterstand correctly: An example for prepopulating lits would be:
  1. <div class="webform-component-select" id="webform-component-liste">
  2. <div class="form-item" id="edit-submitted-liste-wrapper">
  3. <label for="edit-submitted-liste">LISTE: <span class="form-required" title="This field is required.">*</span></label>
  4. <select name="submitted[liste]" class="form-select required" id="edit-submitted-liste" >
  5. <option value="">select...</option>
  6. <option value="1" selected="selected"> dername</option>
  7. <option value="2"> noch ein name</option>
  8. </select>
To prepopulate a list you need to look for the content of the name attribute. In this example it says name="submitted[liste]" Url example: http://localhost/drupal_testumgebung/node/51?edit[submitted][liste]=1 As you see you need to use [submitted][liste], NOT submitted[liste]. After the "=" you need to put the content of "value" of the option object, to select it.

Javascript Nachschlagen


Add new comment
The content of this field is kept private and will not be shown publicly.

Plain text

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <drupal-entity data-*>
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.