QUESTION: Is there a way to simulate tags for content in classic content in SFMC?
PURPOSE: Ideally, the goal is to make it easier for a user to dynamically include content depending on which tags are selected.
EXAMPLE: If an email (e.g., 'feb_promo') had the tags 'sale' and 'international', it would know to pull in the Content Areas called 'sale' and 'international', respectively, without having to manually copy/paste the HTML snippets for those sections into every email.
ALTERNATIVES: If there is a more commonly used way that this can be accomplished, please share. Tags (i.e., attributes) seemed pretty straightforward until I realized it just might not have support.
CODE: I'm not a SFMC wiz, so I'm not sure how this would be written in AMPScript. I've constructed the basic logic with Python. In this case, all emails are instantiated with a list of tags supplied by the user (I know they aren't, but this would be the goal). Here, 'feb_promo' is created with the tags 'sale' and 'international'. For each of those user-supplied tags, the appropriate content area is pulled in. I've used basic 'if' statements for simplicity, but this would be abstracted to check for N number of tags among all possible content areas.
class Email():
def __init__(self, tags=[]):
self.tags = tags
feb_promo = Email(tags=['sale', 'international'])
for tag in feb_promo.tags:
if tag == 'sale':
%%=ContentAreaByName('My Contents\sale')=%%
if tag == 'international':
%%=ContentAreaByName('My Contents\international')=%%