multiple image sizes/classes within same array - frontpage tweaks

multiple image sizes/classes within same array - frontpage tweaks

Tuesday 11 May 2004 11:54:49 am - 7 replies

Author Message

steve walker

Wednesday 12 May 2004 1:44:55 am

Hi there,

No replies (as usual :((((( ), but live in hope...

I have started to try a work around to achieve the above. On my frontpage it references the 4 latest new articles. The first one is large format style, second two small format, and the fourth one is again large.

It used the 'line view' (article_view.tpl) to list the news items. What I have started doing is creating a new line view called 'mline' - I have put identical template override as article_view.tpl but have specified the smaller image.

However, when I try to use my new view I've created, debug gives message of:

"None of the templates design:node/view/mline.tpl could be found"

However, in my template admin panel I can clearly see 'Template view /node/view/mline.tpl' so it should be there??

Do I need to register this new view anywhere so that my line:

'{node_view_gui view=mline content_node=$news.item}' uses the new view it up as intended.

A quick reply or pointer would be greatly appreciated.

Steve.

http://www.oneworldmarket.co.uk

Alex Jones

Wednesday 12 May 2004 6:48:16 am

Steve, I don't think you have to register the mline template anywhere else. You mentioned that you can see the template in the admin view, but you may want to check that it is placed in the proper directory of your site view as well: /design/your_site/templates/content/view/mline.tpl.

Alex

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

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

steve walker

Wednesday 12 May 2004 7:28:53 am

Alex, thankyou for the response.

I had the new view originally stored in:

/design/<name_of_site>/templates/node/view/mline.tpl

and I changed it as you said to

/design/<name_of_site>/templates/content/view/mline.tpl

but didnt get any change... still have message of: "one of the templates design:node/view/mline.tpl could be found".

The error message suggests it should be in 'node/view' rather than 'content/view'? Any other thoughts?

Thanks, Steve.

http://www.oneworldmarket.co.uk

Alex Jones

Wednesday 12 May 2004 7:43:23 am

Hrrrm, try using <i>{content_view_gui view=mline content_node=$news.item}</i> instead of <i>{node_view_gui view=mline content_node=$news.item}</i>, clear the cache and see if that helps.

Alex

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

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

steve walker

Wednesday 12 May 2004 8:16:11 am

Alex,

Araid it then gives error: "Missing parameter content_object".

Is there anywhere I might have somehow configured an incorrect path in the ini files? I had to change the site name midway through build... I've tried making other new views for test purposes, but always same result.

Thanks, Steve.

http://www.oneworldmarket.co.uk

steve walker

Wednesday 12 May 2004 8:22:59 am

Alex,

Fixed it! I has the /var/* path set wrong in site.ini.append, have changed this and am now getting some sense back!

I'd like to thank you very much for your help, its been really appreciated.

Kind regards, Steve.

http://www.oneworldmarket.co.uk

Alex Jones

Wednesday 12 May 2004 8:42:07 am

I'm glad you are up and running!

Alex

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

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

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.