When using the ChannelEntry model to fetch entries, and using the Partial Data option to only select relevant fields, will give me inconsistent results. It is best shown via this video.
The main thing being that in some cases, you need to explicitly add channel_id
to the fields list in order to fetch certain custom fields. In the video, I limit the fields to entry_id, channel_id, title, field_id_1, field_id_2, field_id_75
. When I remove channel_id
from the list, field_id_75
is removed as well.
In the debugger, I can see a query being generated with this WHERE clause, which looks wrong:
WHERE (
`Channel_channels`.`channel_id` IN (NULL)
)
Also, the custom fields are only added to the result set when the value is not NULL, where I expect the keys to always be present, possibly with a value of NULL
.
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); } ```