How to alter font type and color on dynamic page

Is there an example on how to alter a font type, color, size, on a dynamic page for a text element?

Thanks!

Deborah

You can do it with HTML!

Sorry, I’m still confused. I don’t understand how and where you would employ this on a page with dynamically generated elements.

  1. would I run a hook and change the attributes on an element upon insertion?

  2. Is this something I need to install on the template for the dynamic page of interest in an html frame rather than using the normal editor to add a “text” element?

Is this something I can view in the developer window and insert into the existing code?

And if I add it via an html frame, is there an option for me to “pass into” the code a specification on the font type via a dataset entry?

I basically need a mechanism for dynamic pages to conditionally change the font for each page.

You do not need an HTML frame.The above mentioned HTML option is for your text element, you can change it like you would change a text on html, so you can use the font color bold tags etc.

Thanks, Maria, but I still don’t understand how I am to do this ON DYNAMIC pages as I would need to obtain a variable representing the font type, color, etc … .

I am trying to generate dynamic pages and would like a variation of fonts/colors on individual pages.

Is this not possible?

Hi Deborah,

You can either use a random combination of color and font, or get the info from the current item if you want to have a specific font and color combination for each item. Make sure to add the color and font representation in your collection item.
To get the info use getCurrentItem on your dynamic page dataset.