Attachment Permalinks (broken?) (4 posts)

  1. AJ Troxell
    Posted 5 years ago #

    If you view this page: http://support.cmsdecatur.com/?ticket=stuff-testing You can see the Attachments: section, and click to view or download the attachments accordingly. But if you click to view the attachments within the individual updates....it goes to the page where you SHOULD be able to view the attachments...but instead... you find nothing. Any ideas as to why this is like this? Or how to remedy this problem?

    WONDERFUL theme by the way!

  2. Spencer Finnell
    Posted 5 years ago #

    Ah I see the problem. The link is using the loop.php template file, which looks for ticket status (which an attachment doesn't have). So a quick fix would be to change how it links to attachments.

    If you you look in updates.php, and find the function quality_update_ticket_attachment and change the line:

    $updates[] = apply_filters( 'quality_comment_attachment_added', sprintf( __( 'File Attached: <a href="%s">%s</a>', 'quality' ), get_permalink( $attachment ), get_the_title( $attachment ) ) );


    $updates[] = apply_filters( 'quality_comment_attachment_added', sprintf( __( 'File Attached: <a href="%s">%s</a>', 'quality' ), wp get attachment url( $attachment ), get_the_title( $attachment ) ) );

    Let me know if that fixes it. I'll be sure to update it for the next release.

  3. AJ Troxell
    Posted 5 years ago #

    I did make the change, but it still outputs the same attachment permalink. So...no change. Hhmmmm, any other ideas?

  4. Spencer Finnell
    Posted 5 years ago #

    It won't make the change for tickets/updates that have already been created. You need to test it on new updates.

Topic Closed

This topic has been closed to new replies.

About this Topic