Back to Main Site

Smart Ads Module: Category-Based Content Injection

Last updated on Jun 23, 2026 22:30

Target your audience with relevant call-to-actions. The Smart Ads Module allows you to inject rich text blocks, ad banners, or custom HTML codes automatically at the end of post body layouts based on categories.

Core Features

Manage and configure injection templates under Smart Ads in the admin sidebar:

1. Granular Category Targeting

Assign unique content blocks to specific post categories. When a reader opens a post in that category, the module appends the assigned content automatically.

2. TipTap Rich Text Editor

Build rich text layout banners directly. The module integrates the core TipTap block editor, allowing you to design call-to-actions, lists, styles, and buttons.

3. Google AdSense & HTML Codes Ready

Includes a raw HTML block configuration mode. Embed custom third-party scripts, Google AdSense <script> tags, custom banners, or tracking pixels safely.

4. Dynamic Template Placeholders Macros

Personalize content. Use placeholders like {{post_title}}, {{post_url}}, {{category_name}}, {{category_url}}, and {{author_name}} to inject matching post metadata.

5. Priority Resolution & Active Control

If a post belongs to multiple targeted categories, the priority sorting rule determines which template takes precedence. Control active statuses with direct toggle switches.


PolyCMS is an open-source content management system for modern web applications, inspired by the WordPress plugin and theme ecosystem but built on top of the Laravel framework. It is designed to provide a complete foundation for content publishing, e-commerce, multi-language support, and extensible module architecture — powered by a Vue 3 admin panel with data served entirely through RESTful APIs.

Whether you're building a blog, a documentation site, an online store, or a multi-tenant SaaS platform, PolyCMS aims to give you a comprehensive starting scaffold so you can ship quickly and extend easily through integrated modules and themes. In particular, themes in PolyCMS follow a multi-theme architecture — one Main theme and an unlimited number of Sub themes can run side by side on the same installation.

We hope this ready-made foundation proves useful for building your next website, blog, or web app, saving you from having to start completely from scratch.