SOLVED

Creating a mktoList for icons/images?

Go to solution
austinc
Level 1

Creating a mktoList for icons/images?

Is there a way to create a list of 8-10 icons/images that would be used within a module? Something similar to a mktoList for text-color, or alignment for example.

 

I really have no idea if this is feasible, or worthwhile, but it's something that recently came to mind. Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Peter_Rytter
Level 2

Re: Creating a mktoList for icons/images?

You can use the MktoList for this as well. It won't be the most beautiful solution / user experience but it will work.

It's worth to mention that the icon names (file name) have to match the list values.

 

Meta:

<meta class="mktoList" id="module-icon" mktoName="Icon" values="icon1,icon2,icon3" mktoModuleScope="true">

 

Code example:

<img src="https://assets.yourdomain.com/rs/123-XYZ-456/images/${module-icon}.png">

View solution in original post

3 REPLIES 3
Peter_Rytter
Level 2

Re: Creating a mktoList for icons/images?

You can use the MktoList for this as well. It won't be the most beautiful solution / user experience but it will work.

It's worth to mention that the icon names (file name) have to match the list values.

 

Meta:

<meta class="mktoList" id="module-icon" mktoName="Icon" values="icon1,icon2,icon3" mktoModuleScope="true">

 

Code example:

<img src="https://assets.yourdomain.com/rs/123-XYZ-456/images/${module-icon}.png">

View solution in original post

austinc
Level 1

Re: Creating a mktoList for icons/images?

Exactly what I was envisioning, but wasn't sure if it was possible! Thanks so much!

 

A related inquiry.. is there a way to change the names of values in the dropdown list? 

 

For example:

<meta class="mktoList" id="text-color" mktoName="Text Color" values="#006341,#338267,#004f34" mktoModuleScope="true">

 

But the dropdown list would actually read something like:

Default Green

Light Green

Dark Green

 

 

Thanks again!

SanfordWhiteman
Level 10 - Community Moderator

Re: Creating a mktoList for icons/images?

Some people try adding a /* CSS comment */ in front of the hex code.