Change image in blog_entry.php
Permalink
Hi gang!
Sloooowly getting the hang of C5, and I can *see* the beauty of it - but I can't quite touch it...? Point in case: I'm building a site, where I'd like to use the blog-funktion on the news page, i.e. when users want to post news, they add a Blog Entry page, fill it out, and post it. Only when it posts, it shows the dreaded blue-square-with-a-question-mark instead of an image-file?
I'm guessing the code refers to the default-files installed with the default theme (plain yoghurt), but I've deleted these, and would instead like for the blog_entry.php to point to a logo-file...but I can't seem to find out where to change this?
I've looked at the blog_entry.php to no avail, and the main.css, which I also wasn't able to decrypt...
Any C5-ninjas on duty today? There's karma in the balance! :-)
Best regards,
Johan
Sloooowly getting the hang of C5, and I can *see* the beauty of it - but I can't quite touch it...? Point in case: I'm building a site, where I'd like to use the blog-funktion on the news page, i.e. when users want to post news, they add a Blog Entry page, fill it out, and post it. Only when it posts, it shows the dreaded blue-square-with-a-question-mark instead of an image-file?
I'm guessing the code refers to the default-files installed with the default theme (plain yoghurt), but I've deleted these, and would instead like for the blog_entry.php to point to a logo-file...but I can't seem to find out where to change this?
I've looked at the blog_entry.php to no avail, and the main.css, which I also wasn't able to decrypt...
Any C5-ninjas on duty today? There's karma in the balance! :-)
Best regards,
Johan
Hi Ryan,
Exactly! I can't seem to find any code that outputs an image either? I haven't added any code, going with the defaults for the time being... :-) I also can't see any image-refs in header.php under /elements, so I'm pretty much scratching my head here? :-/
Tried using a completely fresh install on another site, and the image summoned on there was one of the standard-images, inneroptics_dot_net_aspens.jpg ?
I tried copying this file back to the current projekt (I'd erased all the stock-photos that came with the site), but to no avail? Maybe the time-friendly thing to do would be to nuke the site and start over? :-P
Thanks for your help - love how this community's so much on it's feet? Feels like the Apple Forums back in the day... ;-)
/Johan
Exactly! I can't seem to find any code that outputs an image either? I haven't added any code, going with the defaults for the time being... :-) I also can't see any image-refs in header.php under /elements, so I'm pretty much scratching my head here? :-/
Tried using a completely fresh install on another site, and the image summoned on there was one of the standard-images, inneroptics_dot_net_aspens.jpg ?
I tried copying this file back to the current projekt (I'd erased all the stock-photos that came with the site), but to no avail? Maybe the time-friendly thing to do would be to nuke the site and start over? :-P
Thanks for your help - love how this community's so much on it's feet? Feels like the Apple Forums back in the day... ;-)
/Johan
When you installed Concrete5, did you install the sample content? (I normally don't).
Do you have an image or slideshow block in your Header area on that page perhaps?
Do you have an image or slideshow block in your Header area on that page perhaps?
Turns out it was a question of changing the Defaults (yes, I installed the sample content): in the Dashboard, go Pages & Types -> Page Types -> click "Defaults" on the other side of Blog entry, and - while there - open the page for editing, remove the image-block on top, close the editing, and voila: no more images in new blog posts. :-)
Something must be outputting the img tag somewhere... have you added any code to the theme? Is it something hardcoded in header.php in /elements perhaps?
I don't think it would be something in the stylesheet, as missing graphics in there won't cause missing graphic icons to appear. Only broken img tags do that I believe.
I can post a few snippits of code that can explain how to add output a resized image to a page from a page attribute, but I reckon it would be better to fix your issue first.
Cheers
-Ryan