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.

Moblog - override url title and retrieve file url

March 06, 2012 8:37am

Subscribe [1]
  • #1 / Mar 06, 2012 8:37am

    Fingo

    9 posts

    I’ve been spending all day on this and have looked at the documentation and forums for hours to no avail, so I hope somebody will be able to help me.

    I am trying to publish new posts with the Moblog Module.

    Half of the functionality I am looking for I got finally working, the other half I haven’t.

    This is the template I am using:

    {entry_title}
    {text}
    {/entry_title}
    
    {category} {text} {/category}
    
    {field:url_title format="none"}
    {text}
    {/field:url_title}
    
    {field:report_summary_email format="xhtml"}
    {text}
    {/field:report_summary_email}
    
    {field:report_download_email format="none"}
    {files} {file} {/files}
    {/field:report_download_email}


    Two questions:

    1. The URL title field is ignored - does that mean I cannot choose one?

    2. I am trying to pass the file URL into a field so that I can reference it on my report listings pages. First I tried to save it to a file field, but that didn’t work. Now I am trying to save the URL within a textarea field, but it just saves this: “{files} {file} {/files}” as text. What do I need to do to save the file URL in a channel field?


    Thanks in advance for any tips.

  • #2 / Mar 07, 2012 1:23pm

    Dan Decker

    7338 posts

    Hi Fingo,

    I’m sorry you aren’t getting the results you desire while using Moblog. I’m here to address the points you made and help in any way I can!

    1. The URL title field is ignored - does that mean I cannot choose one?

    Right, url_title is not one of the supported fields you can override in your email.

    You should be able to upload a file via an email attachment. Is that not the experience you are having? Moblog allows you to set the upload destination you want the attachments to be delivered to.

    Let me know if you have any other questions!

    Cheers,

  • #3 / Mar 07, 2012 1:39pm

    Fingo

    9 posts

    Hi Dan,

    Thank you for getting back to me.

    Shame about the url title, but we can probably live without that for now. Are there any plans to update the module to allow for this field to be edited?

    In terms of the file:

    Yes, the file is being uploaded and added to the file manager, but it is not actually linked with the new entry that is being created - does that make sense?

    Basically, I need to list all the published entries and link to the relevant file so users can download it on the listing’s page, but I don’t seem to be able to pass on the file URL path and save that with the entry together.

    I hope you’ll be able to help me with this.

  • #4 / Mar 09, 2012 2:08pm

    Dan Decker

    7338 posts

    Hi Fingo,

    Yes, the file is being uploaded and added to the file manager, but it is not actually linked with the new entry that is being created - does that make sense?

    That does make sense. Now let’s figure out how to get the 2 linked!

    I think you will have success if you follow this example:

    {files match="all"} View the <a href="http://{file}">presentation</a>. {/files}

    No need to wrap it in the field name.

    Cheers!

  • #5 / Mar 16, 2012 1:34pm

    Fingo

    9 posts

    Thanks Dan.

    I am still befuddled by this.

    Turns out this works in saving the text and file in one field:

    {field name="report_summary_email" format="XHTML"} 
    {text} 
    {files}
    <a href="http://{file}">Download File</a>
    {/files}
    {/field}

    But I really want to capture the file download in a seperate field, so that I can call it into my listing template seperately to the text.

    But this does not work:

    {field name="report_summary_email" format="XHTML"} 
    {text} 
    {/field}
    
    {field name="report_file_email" format="XHTML"} 
    {files}
    <a href="http://{file}">Download File</a>
    {/files}
    {/field}


    How can I get the text and the file into two seperate fields?

  • #6 / Mar 18, 2012 1:25pm

    Sean C. Smith

    3818 posts

    Hi Fingo,

    With the Moblog module it’s not currently possible to capture the attached file to a separate field. I would encourage you to make a Feature Request on this.

    Sean

  • #7 / Mar 19, 2012 6:17am

    Fingo

    9 posts

    Thanks for clarifying this Sean.

    Have submitted a feature request here: http://ellislab.com/forums/viewthread/213433/

  • #8 / Mar 19, 2012 6:43pm

    Sean C. Smith

    3818 posts

    Fingo,

    Awesome. I’m going to close out this thread, but feel free to post again when you have more questions.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases