\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{{[}deleted{]}} \pdfinfo{ /Title (redaxo-xform-table-manager.pdf) /Creator (Cheatography) /Author ({[}deleted{]}) /Subject (Redaxo xform Table Manager Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{0F5EA3} \definecolor{LightBackground}{HTML}{F0F4F9} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Redaxo xform Table Manager Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{{[}deleted{]}} via \textcolor{DarkBackground}{\uline{cheatography.com/24295/cs/5947/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}{[}deleted{]} \\ \uline{cheatography.com/deleted-24295} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 2nd November, 2015.\\ Updated 12th May, 2016.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{tabularx}{17.67cm}{x{3.8801 cm} x{7.0854 cm} x{5.9045 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Werte}} \tn % Row 0 \SetRowColor{LightBackground} Feldtyp & Beschreibung & speichert \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} be\_link & Ein Redaxo-Feld, um einen {\bf{Redaxo-Artikel}} auszuw{\"a}hlen & Artikel-ID \tn % Row Count 5 (+ 4) % Row 2 \SetRowColor{LightBackground} \seqsplit{be\_manager\_relation} & Ein Auswahlfeld / Popup, um ein oder mehrere {\bf{Datens{\"a}tze}} mit denen einer fremden Tabelle zu {\bf{verknüpfen}} & \seqsplit{Kommaseparierte} Liste \tn % Row Count 12 (+ 7) % Row 3 \SetRowColor{white} \seqsplit{be\_medialist} & Ein Redaxo-Feld, um ein oder mehrere {\bf{Medienpool-Dateien}} auszuw{\"a}hlen & \seqsplit{Kommaseparierte} Liste (Dateiname) \tn % Row Count 17 (+ 5) % Row 4 \SetRowColor{LightBackground} \seqsplit{be\_mediapool} & Ein Redaxo-Feld, um eine einzige {\bf{Medienpool-Datei}} auszuw{\"a}hlen & Dateiname \tn % Row Count 22 (+ 5) % Row 5 \SetRowColor{white} \seqsplit{be\_select\_category} & Ein Redaxo-Feld, um ein oder mehrere {\bf{Kategorien}} aus der Struktur auszuw{\"a}hlen & Artikel-ID des \seqsplit{Start-Artikels} \tn % Row Count 28 (+ 6) % Row 6 \SetRowColor{LightBackground} be\_table & Eine Reihe von Eingabefeldern, um {\bf{tabellarische Daten}} einzugeben. & {[}?{]} \tn % Row Count 33 (+ 5) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.8801 cm} x{7.0854 cm} x{5.9045 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Werte (cont)}} \tn % Row 7 \SetRowColor{LightBackground} \{\{fa-circle\}\} checkbox & Eine {\bf{Checkbox}} mit vordefinierten Werten & Zahl/String \tn % Row Count 3 (+ 3) % Row 8 \SetRowColor{white} \seqsplit{checkbox\_sql} & Eine {\bf{Checkbox}} mit Werten, die aus einer {\bf{SQL-Abfrage}} stammen & Zahl/String \tn % Row Count 8 (+ 5) % Row 9 \SetRowColor{LightBackground} date & Eine Reihe von Auswahlfeldern, in der ein {\bf{Datum}} (Tag, Monat, Jahr) ausgew{\"a}hlt wird & date {[}Format?{]} \tn % Row Count 14 (+ 6) % Row 10 \SetRowColor{white} \seqsplit{datestamp} & Ein unsichtbares Feld, in das ein {\bf{Zeitstempel}} gespeichert wird, wenn der Datensatz hinzugefügt oder bearbeitet wird. & date \seqsplit{(YmdHis/U/dmy/mysql)} \tn % Row Count 22 (+ 8) % Row 11 \SetRowColor{LightBackground} datetime & Eine Reihe von Auswahlfeldern, in der {\bf{Datum und Uhrzeit}} (Tag, Monat, Jahr, Stunden, Minuten, Sekunden) ausgew{\"a}hlt wird & date {[}Format?{]} \tn % Row Count 30 (+ 8) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.8801 cm} x{7.0854 cm} x{5.9045 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Werte (cont)}} \tn % Row 12 \SetRowColor{LightBackground} email & Ein {\bf{einfaches Eingabefeld}} für Text {[}wird das validiert?{]} & String \tn % Row Count 4 (+ 4) % Row 13 \SetRowColor{white} \seqsplit{emptyname} & Ein Feld ohne Eingabem{\"o}glichkeit {[}wofür?{]} & {[}?{]} \tn % Row Count 7 (+ 3) % Row 14 \SetRowColor{LightBackground} fieldset & Ein Fieldset gruppiert Formularfelder & -{}-{}- \tn % Row Count 10 (+ 3) % Row 15 \SetRowColor{white} float & Ein einfaches Eingabefeld für {\bf{Gleitkomma-Zahlen}} {[}wird das validiert? HTML5-Feld?{]} & Zahl \tn % Row Count 16 (+ 6) % Row 16 \SetRowColor{LightBackground} \seqsplit{hashvalue} & Ein Feld, das aus dem Wert eines anderen Feldes einen {\bf{Hashwert}} erzeugt. & {[}?{]} \tn % Row Count 21 (+ 5) % Row 17 \SetRowColor{white} html & Gibt {\bf{HTML-Code}} an der Stelle des \seqsplit{Eingabe-Formulars} im Backend aus. & -{}-{}- \tn % Row Count 26 (+ 5) % Row 18 \SetRowColor{LightBackground} index & {[}Nie benutzt, keine Ahnung{]} & {[}?{]} \tn % Row Count 28 (+ 2) % Row 19 \SetRowColor{white} integer & Ein einfaches Eingabefeld für {\bf{ganze Zahlen}} {[}wird das validiert? HTML5-Feld?{]} & Zahl \tn % Row Count 34 (+ 6) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.8801 cm} x{7.0854 cm} x{5.9045 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Werte (cont)}} \tn % Row 20 \SetRowColor{LightBackground} \seqsplit{lang\_textarea} & Ein {\bf{mehrzeiliges Eingabefeld pro Sprache}} für Text & Array \tn % Row Count 4 (+ 4) % Row 21 \SetRowColor{white} \seqsplit{mediafile} & {[}Nie benutzt, keine Ahnung{]} & Dateiname \tn % Row Count 6 (+ 2) % Row 22 \SetRowColor{LightBackground} php & Führt {\bf{PHP-Code}} an der Stelle des \seqsplit{Eingabe-Formulars} im Backend aus. & -{}-{}- \tn % Row Count 11 (+ 5) % Row 23 \SetRowColor{white} prio & Ein {\bf{Auswahlfeld}}, um Datens{\"a}tze in eine bestimmte Reihenfolge zu sortieren & Zahl \tn % Row Count 16 (+ 5) % Row 24 \SetRowColor{LightBackground} radio & Ein oder mehrere Auswahlfelder als {\bf{radio-Buttons}} & Zahl/String \tn % Row Count 20 (+ 4) % Row 25 \SetRowColor{white} select & Ein {\bf{Auswahlfeld}} mit vordefinierten Werten & Zahl/String \tn % Row Count 23 (+ 3) % Row 26 \SetRowColor{LightBackground} \seqsplit{select\_sql} & Ein {\bf{Auswahlfeld}} mit Werten, die aus einer {\bf{SQL-Abfrage}} stammen & Zahl/String \tn % Row Count 28 (+ 5) % Row 27 \SetRowColor{white} \{\{fa-circle\}\} submits & {[}Nie benutzt, keine Ahnung{]} & {[}?{]} \tn % Row Count 31 (+ 3) \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{3.8801 cm} x{7.0854 cm} x{5.9045 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{17.67cm}}{\bf\textcolor{white}{Werte (cont)}} \tn % Row 28 \SetRowColor{LightBackground} \{\{fa-circle\}\} text & Ein {\bf{einfaches Eingabefeld}} für Text & String \tn % Row Count 3 (+ 3) % Row 29 \SetRowColor{white} \{\{fa-circle\}\} textarea & Ein {\bf{mehrzeiliges Eingabefeld}} für Text & String \tn % Row Count 6 (+ 3) % Row 30 \SetRowColor{LightBackground} time & Eine Reihe von Auswahlfeldern, in der die {\bf{Uhrzeit}} ( Stunden, Minuten, Sekunden) ausgew{\"a}hlt wird & date {[}Format?{]} \tn % Row Count 13 (+ 7) % Row 31 \SetRowColor{white} upload & Ein {\bf{Upload-Feld}}, mit dem eine Datei in den Medienpool hochgeladen werden kann & Datei im files-Ordner \tn % Row Count 19 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{17.67cm}{x{5.5264 cm} x{11.7436 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{17.67cm}}{\bf\textcolor{white}{Validierung / Überprüfung}} \tn % Row 0 \SetRowColor{LightBackground} compare & Vergleicht zwei Eingabe-Werte {\bf{miteinander}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{compare\_value} & Vergleicht einen Eingabe-Wert mit einem {\bf{fest definierten Wert}} \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} \seqsplit{customfunction} & Ruft eine eigene {\bf{PHP-Funktion}} für einen Vergleich auf. \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} email & Überprüft, ob der Eingabe-Typ {\bf{eine E-Mail-Adresse}} ist \tn % Row Count 11 (+ 3) % Row 4 \SetRowColor{LightBackground} \{\{fa-circle\}\} empty & Überprüft, ob eine Eingabe {\bf{vorhanden}} ist. \tn % Row Count 13 (+ 2) % Row 5 \SetRowColor{white} intfromto & Überprüft, ob der Eingabe-Wert {\bf{zwischen zwei Zahlen}} liegt \tn % Row Count 16 (+ 3) % Row 6 \SetRowColor{LightBackground} size & Überprüft, ob der Eingabe-Wert eine {\bf{bestimmte Anzahl von Zeichen}} hat \tn % Row Count 19 (+ 3) % Row 7 \SetRowColor{white} size\_range & Überprüft, ob der Eingabe-Wert {\bf{zwischen zwei Zahlen}} liegt \tn % Row Count 22 (+ 3) % Row 8 \SetRowColor{LightBackground} \{\{fa-circle\}\} type & Überprüft, ob der Eingabe-Wert {\bf{einem bestimmten Typ}} korrekt ist {[}int, float, numeric, string, email, url, date, hex{]} \tn % Row Count 27 (+ 5) % Row 9 \SetRowColor{white} unique & Überprüft ob der Eingabe-Wert {\bf{noch nicht vorhanden}} ist \tn % Row Count 30 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \end{document}