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.

Extra block with IE

October 28, 2010 6:19pm

Subscribe [3]
  • #1 / Oct 28, 2010 6:19pm

    hospitality

    19 posts

    Hi,

    I am using the backspace function to cut of the last 12 characters when listing the category that an entry belongs to. This works fine with Firefox but creates an additional block within IE. The block is also clickable just as the last category.

    The following link shows the page where it happens: Page with the categories of the entries listed horizontally underneath each entry

    When I take out the backspace function formatting looks fine in IE, but obviously I would like to use it so that the last characters are taken out.

    My code looks like this:

    <small>Category: </small>{categories backspace="12"}<a href="http://{path=%27directory/categories%27}" title="click for more companies in the {category_name} category">{category_name} » </a>{/categories}

    I run EE 1.6.9 build 20100430

    Hope someone can help me out with this.

    Regards,
    Tammo

  • #2 / Oct 28, 2010 11:37pm

    Rob Allen

    3114 posts

    The backspace is taking out the closing </a> tag.

    What are you trying to achieve by using backspace? There may be a better solution.

  • #3 / Oct 29, 2010 7:32am

    hospitality

    19 posts

    Strange that this is not a problem for Firefox and is for IE. By using the backspace function I am taking out the last » . So the category line (Associations » Hotel) does not have the » symbol at the end. Any other way of achieving this is of course also good.

  • #4 / Oct 29, 2010 8:07am

    Ingmar

    29245 posts

    You’re creating invalid code that way, regardless of how each browser handles it. Why not reverse the order, like so?

    {categories backspace="9"}
    <a href="http://{path=directory/categories}">{category_name}</a> » {/categories}
  • #5 / Oct 29, 2010 7:43pm

    hospitality

    19 posts

    Yes of course, I now see what you mean, the </a> should not be taken away by the backspace. I reversed the order as you suggested and put the backspace down to 7 and now all is fine. Thanks for your help!

    Regards,
    Tammo

  • #6 / Oct 31, 2010 12:53am

    Sue Crocker

    26054 posts

    Glad Ingmar was able to help. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases