Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mia Kabigting 1 post 71 karma points
    Feb 16, 2023 @ 21:22
    Mia Kabigting
    0

    Rendering Thumbnail Image Returns a Number

    Hi everyone! I'm new to the forums and adding features to an older version of Umbraco. I'll try my best to describe my issue, and any suggestions are welcome. In essence, I've created a section for a newsroom that is populated with articles. I've run into numerous roadblocks since I did not create the existing website and old tutorials either have broken links or don't contain the detail needed for my skill level.

    Here is the link to my test page: psta.net/about-psta/blog/
    Umbraco Version: 7.5.9

    So far, I have been able to display new articles on the page, albeit not in chronological order. I can use Sort, but it only sorts by Creation Date. However, if you look under each article link, you'll notice a 4-digit number. That is the result of my attempts to at least add a thumbnail image for each article. I need the image to populate, but I've scraped the edges of every keyword search result that I can imagine to no avail. My best guess is that I need to address the image under var and add razor code to properly include the thumbnail in a div container.

    Please note: I do not have access to the full web server. I can only access the site through the CMS. So, if the solution requires adding anything like a debugger or messing with the web.config file, that's a no-go.

    If I had to prioritize, here is a summary of my needs:

    Issue 1: Image Rendering - My template outputs a ID? number instead of an image.

    Issue 2: Layout - I need the articles to display at least in rows of 3. I have the HTML/grid code, but it impacts other areas of the site. I've tried to clone a somewhat functional template to a different name and change the partial view to display the articles, but I immediately get a 500 internal server error. Yikes!

    Issue 3: Sorting - I read that I can use a query builder to load the articles by publish date, but the resulting code doesn't match any of the examples that I've seen online. I'm assuming it's due to the old version that I'm working from.

    Things I've Tried:

    • Articles Parent and Articles Item: This is not what was used in the test page, because I could not get it to function. Everything was smooth sailing until I got to the query builder. My output did not have a Guid.Parse number, like several examples display. Another 500 error, d'oh!
    • Several YouTube Tutorials: They were either the wrong version or I could not follow without a clear visual.
    • Articulate Plugin: I downloaded the appropriate version compatible with Umbraco 7.5.9, but when I tried to customize the themes, the documentation said it was strongly typed and I would need to create a new theme. As far as I understand, that requires web server/file access (which I don't have).
    • Umbraco 7 Editors Manual: In regards to sorting, I read the section on List View Pages and created a copy that has a table matching that of the guide, but the published page returned yet another 500 error.

    Does anyone have a newbie-friendly solution to at least display an image for each article? If not, are there any affordable support solutions out there? I definitely can't foot the bill for Umbraco Professional pricing, hahaha. Thanks for reading, if you made it this far. And I look forward to reading any and all suggestions!

    ~ Mia

Please Sign in or register to post replies

Write your reply to:

Draft