Insert Tags within a ForEach Tag
2 min
this information is key to having the tags inside your foreach loop return the data you expect this is important because inserting tags into a foreach loop in the way described below by using the relative select is critical it has to do with how the information is stored in your data source, where (in the database model) each row of information is associated with a number of columns when you use the relative select, you're accessing the data the foreach loop is holding rather than the data directly from your data source this ensures you call upon each row, in order you are not accessing the database (or other data source) each time if you were to try to do so by telling the software to select a column that's stored in the database, you'd get the same row returned over and over again this holds true for other situations in autotag, such as when you use the query tag docid 5xzs qscx7kdal0xol4o the basics the following is an example for a simple foreach loop to insert out tags within this table, you must reference the foreach var using ${var column} using “select column from table" does not work step by step instructions to insert a tag within a foreach tag click in the cell where you want the tag to appear and click the tag builder icon click the tags tab and click the \<out> tag icon click the select tab in the left pane, click the + sign next to the \<foreach> tag var name that you created to expand it drag the data subgroup into the select bar note be sure to drag and drop the correct data subgroup, as there may be multiple ones listed in the left pane drag and drop the data subgroup from the foreach var, not from the main data source listed below it evaluate the data by clicking the evaluate button save the tag