Bookmarks/Favorites

Mi., 11/07/2012 - 10:53
Body

Bookmarklet

http://drupal.org/project/bookmarklet | erlaubt das posten von nodes wenn man auf anderen seiten ist http://drupal.org/node/235074 http://drupal.org/node/347369 http://drupal.org/project/prepopulate http://drupal.org/project/favorites Erlaubt das bookmarken von urls/querystrings wie z.B einer solr search http://drupal.org/project/flag Sehr bekannt, mit views integration, erlaubt das erstellen von Bookmarks jedlicher nodes/comments http://drupal.org/project/favorite_nodes http://drupal.org/project/bookmarks

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

https://developer.mozilla.org/en/DOM/element

Scripts

http://ostermiller.org/bookmarklets/meta.html

Artikels

http://betterexplained.com/articles/how-to-make-a-bookmarklet-for-your-web-application/
Drupal
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.