Share » Forums » Setup & design » Uploaded Image visible in Admin but...

Uploaded Image visible in Admin but not in User version

Uploaded Image visible in Admin but not in User version

Monday 08 December 2003 8:59:59 am - 4 replies

Author Message

Ben Muller

Monday 08 December 2003 9:13:20 am

I also meant to mention that I've verified the code on my page. I've created an override template which includes this code:

{attribute_view_gui attribute=$node.object.data_map.title}
{attribute_view_gui attribute=$node.object.data_map.intro}
{attribute_view_gui attribute=$node.object.data_map.thumbnail}
{attribute_view_gui attribute=$node.object.data_map.body}

The override seems to be working, it's just not displaying the image.

Alex Jones

Monday 08 December 2003 9:23:17 am

Ben, could you also include the code you use in the thumbnail template ({attribute_view_gui attribute=$node.object.data_map.thumbnail})? This might help us track down the problem.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Ben Muller

Monday 08 December 2003 10:21:49 am

this code:
{attribute_view_gui attribute=$node.object.data_map.title}
{attribute_view_gui attribute=$node.object.data_map.intro}
{attribute_view_gui attribute=$node.object.data_map.thumbnail}
{attribute_view_gui attribute=$node.object.data_map.body}

is just about the entire template. There is other code in pagelayout.tpl that wraps around this content.

I'm just getting into coding with ez, but I understood this operator to display the content class object's attribute. Please correct me if my understanding is incorrect. This is based on the code in the demo site.

Ben Muller

Thursday 11 December 2003 9:20:49 am

I believe the problem was that I had problems with caching, so I applied someone's recommendation to change the

[FileSettings]
VarDir=var/"my design"

to

[FileSettings]
VarDir=var/

this messed up the photo storage. I changed it back to
[FileSettings]
VarDir=var/skanner

and my images appear now.

Thanks!

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu