ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Styling a Custom Field

July 19, 2010 4:08am

Subscribe [3]
  • #1 / Jul 19, 2010 4:08am

    jeramiah

    301 posts

    Tried searching the forums for “styling custom fields” but nothing is coming up.  But that’s exactly what I’m trying to do.  How would one go about creating a custom field that outputs to a css list or anything else for that matter?

    Thank you for any help!

  • #2 / Jul 19, 2010 11:03am

    Boyink!

    5011 posts

    I might not be fully understanding the question - but typically you create the custom field to hold content and then in your template code surround the field name with markup:

    <div id="style">
    {custom_field}
    </div>

    or

    <span class="style">{custom_field}</style>

    or

    <h2>{title}</h2>

    For lists specifically there is a list maker plugin that reads a custom field and translates carriage returns to list markup.

    In that case you’d have something like:

    {exp:list_maker}
    {custom_field}
    {/exp:list_maker}
  • #3 / Jul 19, 2010 1:45pm

    jeramiah

    301 posts

    Oh man!  That’s exactly what I was looking for “List Maker module”  I had no idea that existed.  I wonder why I never remember seeing that in the addons section.  At any rate that’s exactly what I need, thank you so much!!

  • #4 / Jul 19, 2010 1:48pm

    Boyink!

    5011 posts

    Not a problem.  Typically if you need content programmatically styled a certain way there is a plugin for it..😉

    Devot-ee.com is a great place to keep an eye on too.

  • #5 / Jul 19, 2010 3:04pm

    Ingmar

    29245 posts

    Glad to see Boyink was able to help. Please don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases