Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7618541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:25:49+00:00 2026-05-31T03:25:49+00:00

How to create custom markup (template) tags for use in CMS pages in magento

  • 0

How to create custom markup (template) tags for use in CMS pages in magento ? I mean tags like {{block}}.

I have some block that is going to be used often, something like:

{{block type=”module/very_long_block_type_title” template=”long/path/to/template/file.phtml” id=”2″}}

Type and template is always the same, only argument “id” changes. Its quite annoying to retype or searching for copy all the time i have to insert that block, so i thought it would be cool to create my own tag, like:

{{yeah id=”2″}}

That is kind of override for tag above.

Somebody know how to do that ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:25:51+00:00Added an answer on May 31, 2026 at 3:25 am

    You could rewrite Mage_Core_Model_Email_Template_Filter and add a yeahDirective() to do what you want, but that’s overkill to solve what is essentially an issue of laziness (no rudeness intended). There are any number of snippet managers available for all major platform which you could use.

    You can set a template parameter on the block via the block _construct() or _prepareLayout() methods if you like. This pattern of setting a “default” template is used by the core team.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to create a custom WPF Page class that all of my Pages
I have some rendering logic for custom markup (a'la bbcode, but not bbcode). So
I have sample HTML that I have marked up with some special tags that
I want to create a custom control (partial view, template) and have it function
I want a create a custom/user control that has children. For Example, I want
I would like to create an implicit DataTemplate that works on an array or
I'm trying to create a custom set of classes that can be added to
I'm looking to create my own custom domain specific language that outputs HTML. Basically,
by using the default simple_form 2 wrapper, it generates a markup that looks like
I'm trying to create a node form for a custom type. I have organic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.