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.

Quick Attachment Upload Question

October 23, 2008 4:46pm

Subscribe [2]
  • #1 / Oct 23, 2008 4:46pm

    gmg_admin

    14 posts

    Hi I did a search and followed the instructions found on this post. http://ellislab.com/forums/viewthread/90244/

    Basically I have a weblog with a custom field called curriculum_vitae. I use the upload manager in the admin console to upload and place a url in the custom field.

    On my template I’m using the code found below to display the link.

    {if curriculum_vitae != ""}
            <a href="http://{curriculum_vitae}">View Curriculum Vitae</a>
    {/if}

    The problem is that when I click on the link I get the following link

    http://www.mywebsite.com/ee/cra/http://mywebsite.com/ee/uploads/documents/sampledoc.pdf

    So basically it looks like the url is getting called twice which throws out a 404 error.

    My upload directory is set to http://mywebsite.com/ee/uploads/documents. Also the link in the custom web field after uploading a file looks like this ==> https://ellislab.com/asset/images/ent-partner-work/sampledoc.pdf

    Is there a simple solution to this problem? Thanks in advance.

  • #2 / Oct 23, 2008 5:04pm

    Ingmar

    29245 posts

    Make sure the formatting of the custom field is set to “None”, and also that you have “Automatically turn URLs and email addresses into links?” set to “No” in CP > Admin > Weblog Administration > Weblog Management > Edit Weblog.

  • #3 / Oct 23, 2008 8:56pm

    gmg_admin

    14 posts

    awesome. The setting of the custom field to “none” did the trick.

    Thank you!

  • #4 / Oct 23, 2008 8:57pm

    Greg Aker

    6022 posts

    gmg_admin:

    I’m glad Ingmar got you squared away.  I’m going to close this thread out, but please don’t hesitate to open a new thread if you run into any other questions!

    -greg

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

ExpressionEngine News!

#eecms, #events, #releases