lipflip.org via email or RSS.
Compose tips
Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <i> <b> <p> <blockquote> <q>
Linodef
Linodef is a filter for internal links. It uses a simple but unique markup so Linodef doesn't interfere with other filter modules.
The ID of a node or of a taxonomy term and optionally a fieldname are the solely elements stored in your text. One advantage of this method in comparison to similar filter modules is the fact that the links don't break if you change the node title or term name. Furthermore, if you change the title of the node or the value of a field or the name of a term then those are automatically updated in your text, too.Embed elements
To embed elements into your text, prepend the element ID with the hash key # and surround them by brackets []: [#ID]. That way a node title is inserted and linked. To embed the content of a field, add the field name: [#ID:field_name]. Moreover it is possible to add a field value number in the case you have a field with multiple values and want to use a different value than the first: [#ID:field_name:number].
HelpThe syntax is as following:
Tag Description You Type You Get Embed node title and link to the node. [#ID]node titleEmbed field value and link to the node. [#ID:field_name]field valueEmbed field value and link to the node. [#ID:field_name:field_value_number]certain field value of a multiple values fieldExample for nodes and fields:
We have a node with id=8 and a title Perry Rhodan. It contains a multiple value field called firstnames. The first value is Gucky, second is Atlan. Note that the field value numbers start at 0, so first value has number "0", second has number "1" etc. If the node has a path alias then the link contains this instead of the default drupal path (the examples are limited to the default paths).
HelpYou Type You Get [#8]Perry Rhodan[#8:field_firstnames]Gucky[#8:field_firstnames:0]Gucky[#8:field_firstnames:1]AtlanAlter embedding by tag options
Options set the ID type (embedded element type) and the embed method. They are entered right after the ID or the field settings and are separated by a comma. The number of options a tag can have is not limited.
Tag Description You Type You Get Embed an element with options. [#ID,option1,option2="optionvalue",...]Depends on the options used.Embed a field value with options. [#ID:field_name,option1,option2="optionvalue",...]Depends on the options used.Embed a certain field value with options. [#ID:field_name:field_value_number,option1,option2="optionvalue",...]Depends on the options used.Example for element (ID) type and modification options:
Here we use the modification "nolink" to have an output without a link to the element and the ID type option "tid" to embed a taxonomy term instead of a node. The taxonomy term has the id=5 and the name Jupiter. If the term has a path alias then the link contains this instead of the default drupal path (the example is limited to the default path). Furthermore we have a node (optional option "nid") with id=5 and the title Kallisto.
HelpYou Type You Get [#5,tid]Jupiter[#5,tid,nolink]Jupiter[#5,nid,nolink]Kallisto[#5,nolink]KallistoUse comments to flag your tags for editors
Comments act as an indicator for Linodef tags, to describe your tag for yourself or other editors. A comment can be inserted inside the tag prepended with a space and it may consist of all UTF-8 characters except the closing bracket ].
Comments are visible only during editing and never appear by viewing a text. The nature of comments is that they must not modified automatically and therefore will not change unless you change it. This is important to understand since the content the tag displays can change automatically and so the comment may be outdated. So try to use a common description.
Tag Description You Type You Get Use comments to give information about the tag during editing. [#ID comment]node titleComment a field content. [#ID:field_name:field_value_number comment]node titleComments work together with options. [#ID:field_name:field_value_number,option1,option2="optionvalue",... comment]Depends on the options used.Create links with own linktext
Use the option "linktext" to create links to elements using a custom text: [#ID,linktext="your Text"]
Example:
You Type You Get [#8,linktext="your Text"]your Text- Quick Tips:
- Two or more spaces at a line's end = Line break
- Double returns = Paragraph
- *Single asterisks* or _single underscores_ = Emphasis
- **Double** or __double__ = Strong
- This is [a link](http://the.link.example.com "The optional title text")
- Typogrify.module brings the typographic refinements of Typogrify to Drupal.
- Wraps ampersands (the $ldquo;&” character) with <span class=\"amp\">&</span>.
- Prevents single words from wrapping onto their own line using Shaun Inman's Widont technique.
- Converts straight quotation marks to typographer's quotation marks, using SmartyPants.
- Converts multiple hyphens to en dashes and em dashes (according to your preferences), using SmartyPants.
- Wraps multiple capital letters with <span class=\"caps\">CAPS</span>.
- Wraps initial quotation marks with <span class=\"quo\"></span> or <span class=\"dquo\"></span>.
- Adds a css style sheet that uses the <span> tags to substitute a showy ampersand in headlines, switch caps to small caps, and hang initial quotation marks.
