CMS Development

michalo
メンバー

detect smart rules in editor view

Hi I'm investigating if there is any possibility to show some kind of alert in page editor view if page has any smart rules.

 

0 いいね!
2件の返信
Jaycee_Lewis
コミュニティーマネージャー
コミュニティーマネージャー

detect smart rules in editor view

Hey, @michalo 👋 Welcome to the community! Thanks for your question. You are not missing a documented option. I agree with you, something like this would be useful. You'll either need to add comments to your HTML where smart rules are added. Like this (a super basic example):

<!-- SMART RULE: This page uses a smart rule to display different content to different visitors -->

Or you can manually check for it.

 

I understand this isn't the alert you are looking for. And I don't want you searching for an option that doesn't exist.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 いいね!
michalo
メンバー

detect smart rules in editor view

I wish there is hubl function or any sign in html source of the page that we can check for  using JS for example. 

0 いいね!