What is the difference between include tags and embed tags in expressionengine?

The discussion forum module for the expression engine uses the {include: file} tags in its templates, as in forum_themes / developer / forum_index / main_forum_list.html:

{include:table_heading} {include:table_rows} {include:table_footer} 

I was looking for documentation with an include tag but can't find it anywhere? What is the include tag and when / where should it be used? Does it depend on the discussion forum module?

+6
source share
4 answers

I can't talk about the {include: file} tag, but for most purposes, the {embed} tag is what you will use in ExpressionEngine to include / insert other bits of code.

Other alternatives, depending on the information that you would like to include on your page, are Snippets , global variables, or for more complex information. LowVariables

+9
source

Forums are pretty tricky to set up, and there is very little documentation, but inclusion for forums basically acts like embedding.

To set up your forums, I would recommend looking at the theme of the forest on Devot: ee

+8
source

It should also be noted that {include: file} only works in forum template code, and most standard EE tags (for example, the {embed} tag) do not work in forum templates. What for? I don’t know, but dems yes rules. :)

+7
source

There is no documentation for the {include: XXX} tag because it is used only in Forum templates.

You will never use this tag in regular EE templates. In EE templates, you will use the {embed = "group / template"} tag or snippet depending on your needs.

+4
source

All Articles