content_image tag not showing images

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

content_image tag not showing images

Post by applejack »

I have a clean install of CMS 1.11.2.1 and the content_image tag is not showing images or any output.

When editing a page the drop down lists the images. I have tried this using a very basic template and still no joy.

Code: Select all

{process_pagedata}<!DOCTYPE html>
<__html>
<head>
	<meta charset="utf-8" />
	<title>Untitled</title>
{metadata}	
</head>
</__body>

{content}
{content_image block='mainphoto1' dir='images/mainphotos' sort='1' label='Main Image 1' width='704' height='590' id='photo1'}
{content_image block='mainphoto2' dir='images/mainphotos' sort='1' label='Main Image 2' width='704' height='590' id='photo2'}

<__body>
</__html>
Anyone else having issues.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: content_image tag not showing images

Post by applejack »

Bump. Someone must know whether or not this works with CMS 1.11.2.1 it is part of the core so if it doesn't it is not good. I would love to use CMS 1.11+ but have come across too many bugs and incompatibilities for it to be considered ready for primetime.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: content_image tag not showing images

Post by applejack »

Bump...

It would be nice to hear from someone else besides the Dev's as I would like to get a user opinion and the Dev's do enough as it is.

So come on this is supposed to be a community make an effort as I try and do by helping others.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: content_image tag not showing images

Post by calguy1000 »

Before 1.11.2 was released another dev-team member, and myself verified that {content_image} works.

Additionally, I've verified it on 2 different sites since then.

Must be something unique about your setup.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: content_image tag not showing images

Post by applejack »

I don't doubt you but it is somewhat odd. I would need to test this on a different server.

As mentioned in my "bug report" I use Centos 5+ and am curious as to the importance of Curl.2.19+

As I am sure you know Centos 5 is a widely used platform and so I am somewhat curious as to the fact that CMS no longer supports it. I could possibly install Curl from other repos but that involves different issues.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: content_image tag not showing images

Post by applejack »

I have now tried this on a completely different server and still doesn't work. The filenames are stored in the DB it just doesn't display on the front end. Would be nice to hear from anyone else who has this working or not.
milehigh

Re: content_image tag not showing images

Post by milehigh »

Something does seem off a little off here...Try this:

{content_image block='mainphoto1' dir='images/mainphotos'}

Switch back and forth between having the image and not having it. When I had all the extra parameters..I couldn't get the image to go away...even if I selected "None"...and I didn't get it to show until I started playing with the additional parameters.

I'll try on one of my VPS's later, this was on a shared host but I'm short on time now.
Simon66
Power Poster
Power Poster
Posts: 250
Joined: Wed Aug 29, 2007 4:36 am

Re: content_image tag not showing images

Post by Simon66 »

Applejack
Not sure if you fixed this but I found a solution to make the images show up.

Code: Select all

{content_image block='leftimage' dir='images/content_images'}
The trick for me was to make the block name one word, lower case with no spaces. And secondly remove all the parameters, 'Name', 'ID','Class' etc.

This made the image show up on the page. Then I added back all the parameters (I even changed the block name) and it just kept working???

Code: Select all

{content_image block='Left Image' dir='images/content_images' label='Left Image' class='liquid' name='wibble'}

Simon66
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: content_image tag not showing images

Post by applejack »

Thanks Simon I'll give it a go when I get the chance.
Post Reply

Return to “CMSMS Core”