CSS testing

How to use Paligo elements for Zendesk

 

Boxes

Admonitions

Paligo offers a set of Admonitions.

Admonition for "Available for" and "Recommendation" is not available, but other admonition can be used and customized directly in the topic.

The headers show in the menu and are hidden by javascript. They are searched by the hyperlink which contains the title. Only available for, note, tip, recommendation, and important will be hidden. Other titles will be shown in the menu

 

Available for

Available for:

  • Ultimate editions

  • Admins and unrestricted PMs

Box "Available for" is "caution" admonition. It is necessary to add the title to overwrite the Paligo's default title.

Tip

This is a tip - easy to add from the menu

  • can have normal bullets

  • like this

the lists and paras are condensed (0 top and bottom margin

  1. normal numbers

  2. like this

We should probably avoid using colored lists and procedures here (too much color).

  1. procedures or colored bullets

  2. might not look good

Note

This is a note

Added directly from the menu

Important

this is Important box - also added directly from the menu

Recommendation

This is a "warning" admonition used for the Recommendation box. You need to add the new title to overwrite the "Warning" title added by Paligo

 

Single-line boxes

As a workaround for single-line boxes, we can use para and style it with a role attribute.

Note: para with role=note and the word Note with role=title

 

Tip in a header 3 - test

To make sure this title will show headers in the menu even with the word "Tip" in it

 

Code box

Using programlisting for code box

{  "prompt_for_name": {    
    "message": "What's \"your\" $1 name? I have 20$$ and I can give it to you",
    "description": "Ask for the user's name",
    "maxLen": "14"  
},  
"hello": {
    "message": "Hello, $USER$",
    "description": "Greet the user",
    "placeholders": {
      "user": {
          "content": "$1",      
          "example": "Cira",
	  "maxLen": "4"
      }
    }
  }
 
 

Lists

simple list

  • one

    • two

      • three

  • four

Simple numbers

  1. one

    1. two

      1. three

  2. four

List with role=list-bullet for itemizedlist element

  • one

    • two

      • three

  • four

Procedure

  1. one

    1. two

      1. three

  2. four

 

Spans

Testing menu button Save in the para using guilabel.

This is just an example, we can style it however we want. Perhaps using the bellow mentioned guibutton, guimenu, and filename would be also useful.

The easiest way to refer to UI components (buttons, menus, toolbars, etc) is to use one element as a generic UI element: guilabel. Since this is so common (and recommended practice instead of using bold or italic for such terms), there is also a keyboard shortcut for it: AltG.

If you want to be more granular, you can use very specific elements instead, using guilabel only for labels, guibutton for buttons, guimenu and its sub elements for menus, etc. Another common need is to write file names and paths, and for this you have the element filename.

Using code for <span code> inside a para element.

 

 

Images

Paligo default settings:

  • Paligo has a script to pop-up all images.

  • Size can be customized with element attribute width.

  • The image context menu offers 'title' attribute, but this will be in HTML as alt, not title and will not show in mouse-over tooltip.

  • Uploading a new version of the file (context menu) is possible

  • uploading a new version of images in a batch using the same file names is not possible - new files with the same name are created

 

Lotus settings

  • We have a script to show magnifying glass and pop-up images

  • The class must be set as role to element mediaobject

  • There is a class img or img150, img250, img350, img450 or img550.

  • The number of the class also sets the width of the image and adjust the position of the magnifying glass icon,

 

Paligo Image inserting

  1. Inline image editors.svg easy to insert

  2. Small image with no class and no title on mouseover

    Typo3Config.png
  3. Large image with a class added to mediaobject role=img450. I had to adjust the JS to get the link from div/img

    content of the image was changed.
  4. Figure will show text above and under the image - nicely grouped in one element, but it is not possible to get rid of the "Figure 1" in the title.

    Figure 1. Title of the image

    Title of the image

    The text under the image

 
 

Skipping level in headers

If I want to create header 4 directly in the text without having header 3 and 2 as well it seems not possible.

 

Header 4

To create a header 4 I had to create two empty sections with empty titles. Deleting the titles of the empty section creates an invalid XML.

 
 
 

Links

Inserting links has three options:

Cross reference - external

This link is to any topic in Paligo and is automatically set as target=_blank, class = xref linktextconsumer.

BitBucket Cloud Article

AEM Plugin Article

 

Cross reference - internal

For this case, only section inside the topic can be selected. class = xref

Cross reference - external

 

External link

External link to any target. target=_blank, class="link"

www.memsource.com

 
 

Table and collapsible sections

  • Long tables can have grayed out even rows with role=table-long

  • Short tables will have all rows white, no role setting required

  • Paligo adds Table 1 to each table caption, even if the caption is empty. Deleting the caption entirely will break the table.

  • I can hide the table's caption completely, if we don't intend to use it (we have not so far)

long table with grey even rows: role = table-long

Table 1. Table's title - long table with grey even rows: role = table-long

TH1

TH2

TH3

longtitlewithnobreak

kdjfkjkj

kjkjhkjhjhj j jhjh

jhjhkjh jh

jhj jhvalue 1

Value 2

value3

 

 

 

 

sgdgsdg

sdfhtzhtjztj

js jkhsfu asufh jsdfiuashf asudfh asdfka sdfu asdufha sdf af asdfjhausf ajhdf asjdfheu weiurh fnasjdfniwuef a fhuefh afiuehf ewuhf aeufh

 

 

 

 

idf asdf asdif aosidf

sadfh shfhsaf

hsdf sadfhusdf asdfhasdfi

Typo3Config.png

 

 

 

 

sdfjh asdjf asf

dhf sjdf sadjfhas dfj asdfj asdf

  1. sdjfh j

  2. ksdfjk

  3. sadfhhak akd

  4. ejr r g jasjdf

 

 

 

 

dfasdf

kfja

jfjrgh jqh

sdfhsa jdfh jasd

jsahdfjahsf

jdjasj asdf

 

 

 

 


testing a short table with all rows white

Table 2.

table with no role

and not title

jhdfj kjh

jh wjehrj

shdf sdf

jhkj fajh


Testing table with no title / caption

deleted title

dfdf

dfgsdf

  • dfghsffdfasdfasf dgdf

fhdshgjh

shfuihdifu

Testing collapsible sections with role=accordion

Section one collapsed

Accordions are sections of content that can be expanded or collapsed. They are useful when:

  • You have long, complex procedures. You can break the procedure down into sub-sections, and make each sub-section an accordion.

  • The reader can then expand/collapse each section in turn.

Section two collapsed

You have content that is useful, but not essential, such as examples. If you make them into accordions, your readers can choose whether they want to see that information.

 

 
 
 
 
Was this article helpful?

Comments

0 comments

Article is closed for comments.