CMS Development

Kihulane
Participant

Custom module for triggering classes

SOLVE

Is it possible to create a custom module for triggering classes in blog post html?

If a blog post creator enables the trigger in the edit blog view, it will add an extra class to the post-body or vice versa.

 

It can look something like this: Screenshot 2019-12-10 at 13.25.07.png

 

My main goal is to have a 2 different hero image area layout selection for blog posts. If there's a wide picture , then use class A, if theres a narrow picture then use class B. 

0 Upvotes
1 Accepted solution
DanielSanchez
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Custom module for triggering classes

SOLVE

Hi @Kihulane ,

 

U can create one custom module to header of your blog post. In this header u can create one field with the user that will an post, select type of header.

 

I use this for that Content Editor can disable one content. Look one example:

 

Is an dropdown field (choose field), when i use the value of options, to change a class of link in custom module. 

 

In content editor

disable.PNG

 

In Design Manager

card-link-postt.PNG

 

You can use this to change the header class.

 

I hope this content helps you.

 

Did this post help solve your problem? If so, please mark it as a solution.

Best Regards!

View solution in original post

2 Replies 2
DanielSanchez
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Custom module for triggering classes

SOLVE

Hi @Kihulane ,

 

U can create one custom module to header of your blog post. In this header u can create one field with the user that will an post, select type of header.

 

I use this for that Content Editor can disable one content. Look one example:

 

Is an dropdown field (choose field), when i use the value of options, to change a class of link in custom module. 

 

In content editor

disable.PNG

 

In Design Manager

card-link-postt.PNG

 

You can use this to change the header class.

 

I hope this content helps you.

 

Did this post help solve your problem? If so, please mark it as a solution.

Best Regards!

Kihulane
Participant

Custom module for triggering classes

SOLVE

Thank you @DanielSanchez 

 

I will try this method out and will get back to you.

 

Gert

0 Upvotes