Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

I've searched for the include tag documentation but I can't find it anywhere? What is the include tag and when/where should it be used? Is it specific to the discussion forum module?

like image 447
user1569800 Avatar asked Oct 23 '12 15:10

user1569800


1 Answers

I cannot speak to the scope of the {include:file} tag but for most purposes the {embed} tag is what you will be using in ExpressionEngine to include/embed other bits of code.

Other alternatives, depending on the information you would like to include in your page, are the Snippets, Global Variables, or for more complex information LowVariables

like image 110
Allan Kukral Avatar answered Oct 05 '22 04:10

Allan Kukral