Zum Hauptinhalt gehen

CMS_INPUT_DOM - Listoutput without spanning 'p' tags

Kommentare

7 Kommentare

  • Zendesk API User
    Author: rbitdd - 8/19/2010 10:08

    By using inline tables you have the same "problem" with spanning p-tags.

    I edited my sectionformattemplate like written above and edited the table-template like this:

    $CMS_VALUE(endTag)$<table>$CMS_VALUE(#content)$</table>$CMS_VALUE(startTag)$

    Due to the fact that there are no nested tables possilbe you don't need to count the "listLayer" or here "tableLayer"

    0
  • Zendesk API User
    Author: rbitdd - 8/23/2010 14:48

    If the first element in the dom is a list you get an ERROR "undefinded variable listLayer".

    I changed my sectionformattemplate like this:

    $CMS_SET(listLayer,0)$
    $CMS_SET(startTag,"<p>")$
    $CMS_SET(endTag,"</p>")$
    $CMS_IF(!#content.toString.trim.equals(""))$
      $CMS_SET(output,startTag + #content + endTag)$
      $CMS_VALUE(output.replaceAll(startTag+endTag,""))$
    $CMS_END_IF$

    without newlines! :smileywink:

    0
  • Zendesk API User
    Author: rrichter - 10/15/2010 9:57

    another example: if you use generic linktemplates to place floating pictures or boxes spanned with <div>-Tags into <p>-Tags, you will get a <p><div>...</div>...</p> construct that causes problems.

    Place the linktemplate-code between $CMS_VALUE(endTag)$...$CMS_VALUE(startTag)$ and configure your <p>-Template as above mentioned and the problem will be solved.

    0
  • Zendesk API User
    Author: Sebastian_N - 2/7/2011 13:38

    If you like well formatted Sourcecode, use the $CMS_TRIM(level:4)$ - Option. After I formatted this code, I spend 2 houres to find this misstake :smileyconfused:.

    But now it works perfect, thank you very much.

    0
  • Zendesk API User
    Author: C_Klingbeil - 4/24/2012 13:26

    Since 4.2.462.49171there is only one replacement of <p></p> in the beginning, but no replacement for the following <p></p> if there are multiple lists or a list containing another list. How can I fix that problem?

    0
  • Zendesk API User
    Author: tomator - 12/4/2013 10:08

    How does the code have to be changed to accomodate the fact that lists can be placed in inline-tables? Using the code as is would generate additional </p> and <p>-Tags inside the table cell, also in the wrong order (<td></p><ul>...</ul><p></td>).

    Would extending the conditional placement of the end and start tag in the format-template "ul" to do so only if the list is not rendered in the format-template "table" be sufficient?

    0
  • Zendesk API User
    Author: Peter_Jodeleit - 5/21/2015 17:15

    Please see here: CMS_INPUT_DOMEDITOR and standard conform HTML

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.