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.

expanding "category descriptions"

November 25, 2007 4:19pm

Subscribe [2]
  • #1 / Nov 25, 2007 4:19pm

    stef25

    268 posts

    is there a way to expand the category descriptions so that i can use a rich text editor for the content (bold text, bullet points) and tie several images to it, rather than just the one that is allowed in the standard installation?

    is an extension available for this? or would it be hard to modify this myself?

  • #2 / Nov 26, 2007 4:30pm

    asozzi

    262 posts

    Hi Stef,

    Instead of trying to cram more info into the existing category description, You could try either:

    1) Add a custom category Field to the category:

    OR

    2)Add a custom entry status such as “category_description” to a posting and in the template do a check for the status:

    {!-- Show Category Description if there is one--}
    {exp:weblog:category_heading weblog="YourWeblog"} 
        <h1>{category_name}</h1>
        {if cat_description}
            {cat_description}
        {/if}
    {/exp:weblog:category_heading}
    
    {!-- Show Entry with status categroy_description if there is one --}
    {exp:weblog:entries weblog="YourWeblog" limit="1" status="category_description"}
       {if weblog_body}
            {weblog_body}
       {/if}
    {/exp:weblog:entries}
  • #3 / Nov 26, 2007 5:01pm

    stef25

    268 posts

    thanks for your reply!

    option 1 only applies to posting in that category though right? i was more looking for a way to have an extended “meta description” of the category itself, not to entries in that category

    i have a category for every country in the world and id like to add a short description of the country and some statistics, a flag image, a map image. id rather tie that to the category than make it a posting in that category.

  • #4 / Nov 26, 2007 5:26pm

    asozzi

    262 posts

    Stef,

    Since 1.6 Categories (the actual category itself) can have custom fields. Just try it, go to: CP Home›Admin›Weblog Administration›Category Groups
    Hit: “Manage Custom Fields” and add a field (i.e. “longDescription”).
    Not each Category (for the Weblog you added the custom field) will have the added custom Field( i.e.  Category Name,Category URL Title, etc….,longDescription)

  • #5 / Nov 26, 2007 5:31pm

    stef25

    268 posts

    Channel Administration? i just have

      * Weblog Administration
      * Members and Groups
      * Specialty Templates
      * System Preferences
      * Utilities

    in v1.6.1

  • #6 / Nov 26, 2007 5:39pm

    asozzi

    262 posts

    Sorry I rename Weblog to Channel for my installations.

    I edited the post to reflect the “out-of-box” name “Weblog”.

    PS: don’t be afraid to try stuff… it shouldn’t be hard given that I posted the documentation url….

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

ExpressionEngine News!

#eecms, #events, #releases