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.

Category Question

October 27, 2007 7:32pm

Subscribe [0]
  • #1 / Oct 27, 2007 7:32pm

    nullbreached

    116 posts

    I am making some progress on making the categories work for me but have a couple questions that have popped up during my trails.

    Currently, I have all the categories listing properly in my “gallery” section. They are called using the following code:

    {exp:weblog:categories weblog="{galleries_weblog}" style="linear"}
    <div id="category_outside">
      <div id="category_inside">
    <h3>{category_name}</h3>
    <p>     <a href="http://{path=final/category-listing}">{category_image}</a><br />
              <br />
                   {category_description}<br />
    </div><br />
    </div><br />
    {/exp:weblog:categories}

    They show up beautifully.. here’s my question…. I want the galleries to link to a list of all the paintings that fall within that category. It does it for the most part since I created the category-listing template. But for some it’s also adding an additional segment to the end of the URL causing the graphics below the category images to not show up.

    Here’s what the link looks like:

    http://mysite.com/index.php/final/category-listing/C8/

    Where does the “C8” come from and how do I get rid of it without messing up what I need to have done? and allow the graphics in my footer to still show up?

    make sense?

  • #2 / Oct 27, 2007 7:45pm

    Daniel Walton

    553 posts

    The “C8” basically identifies to any tags on that page that you are looking for entries within category id 8.

    If you are using relative (../images/myimage.jpg) URL’s on the image paths, try using absolute (http://www.example.com/images/myimage.jpg) ones instead.

  • #3 / Oct 27, 2007 8:07pm

    nullbreached

    116 posts

    I thought that was the issue at first but it’s also eliminating all the text as well within the footer:

    on a normal page it’s:

    <div id="highlighted"> <a href="http://mysite.com/images/uploads/book.gif0xNp1WXt50GlUj3JFLCC0wM5DD9xlBRTtypography_img_src_end id=reads alt=A Life of Picasso: The Triumphant Years, 1917-1932 ">http://mysite.com/images/uploads/book.gif0xNp1WXt50GlUj3JFLCC0wM5DD9xlBRTtypography_img_src_end id=reads alt=A Life of Picasso: The Triumphant Years, 1917-1932 </a>
    
                <h5>This is a great book</h5>
    <p>            </p><h6>A Life of Picasso: The Triumphant Years, 1917-1932</h6>
    <p>            I love reading about the life Picasso. He was a genius!</p>
    
    <p>            <a href="http://www.amazon.com" class="extlink">Buy this Book</a><br />
    </div>

    but on a /category-listing/c8/ page it comes out as:

    <div id="highlighted">
    
            </div>

    It completely erases everything.

  • #4 / Oct 27, 2007 8:10pm

    nullbreached

    116 posts

    FYI..

    It does the same thing when I go one step further and look at a detail of a painting. Everything gets erased. and it’s the very last segment that seems to throw everything off.

  • #5 / Oct 27, 2007 8:19pm

    Daniel Walton

    553 posts

    The text/images in the footer… are they controlled by an entries tag maybe?

    If so add dynamic=“off” to the parameters on the tag.

  • #6 / Oct 27, 2007 8:30pm

    nullbreached

    116 posts

    Worked PERFECTLY!!  Thank you! What does that all mean? Any literature you can point me to?

  • #7 / Oct 27, 2007 8:33pm

    Daniel Walton

    553 posts

    Sure, setting dynamic=“off” just tells the tag to disregard any categories/url_titles present in the URL.

  • #8 / Oct 27, 2007 8:41pm

    nullbreached

    116 posts

    Thank you! Makes perfect sense now….

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

ExpressionEngine News!

#eecms, #events, #releases