Version: 3.5.4 Reporter: Reusser Design, LLC —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
The conditional according to the documentation:
{if toggle_field}
Yes
{if:else}
No
{/if}
However, using this format will output “Yes” at all times. To correctly test for this fieldtype, it’s necessary to check if the field is equal to 1:
{if toggle_field == 1}
Yes
{if:else}
No
{/if}
In system/ee/EllisLab/Addons/toggle/ft.toggle.php
, add the following method:
public function replace_tag($data, $params = array(), $tagdata = FALSE)
{
// force loose type / improper type from the DB to always be 0/1
return (int) $data;
}
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```