Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Ubercart - Adding Pr

bendiy's picture
Offline
Joined: 09/07/2007
Juice: 75
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Ubercart - Adding Pr

I've completed theming my products pages with a custom node-product.tpl.php. With the help I've received here, I'm really happy with the outcome. Thanks!

I'm just about finished with my model page:
http://www.xikar.com/redesign/Final_Site/Xi1_model_page.pdf

I'm using Views to bring in the custom teasers from node-product.tpl.php and then adding some HTML to the Views footer section to achieve the layout I want.

I've got one question. I'm trying to access an array that is in my product nodes located here:

<?php
print $node->content['image']['#value'];
?>

However, when on a views list, the $content variable does not load because the nodes are only sending their teaser info. I cannot do the following because $node does not have $content in views:

<?php
$node
= node_load(1);
print
$node->content['image']['#value'];
?>

Is there any way to access the variables that do not load in teaser mode other than doing a database query?

One last question, how do I get an array of all of the node IDs that should load in a given Views category? For example, I have a category "fruit" and a Views page that loads all of the nodes inside of "fruit". How can I get an array of all of the fruit node IDs?

Thanks for the help! All I have left is my main vocabulary catalog pages and I'll be done theming!

Ubercart deployment strategy for site redesign By: bendiy (21 replies) Fri, 09/07/2007 - 17:12