In a template I am building, I have a content type which has some CCK values within it. On this content type, there are a few of the CCK values I want to place in the right side bar along with the blocks that already appear there.

My question is... is it possible to add something to the right sidebar from the node-content_type.tpl.php template? I'm sure I can create a page template for this content type but I would really rather not duplicate the page.tpl.php file if at all possible.

Any options? I've not attempted the _phptemplate deals and honestly have no idea what I can do there, but is that a way to do it?

Thank you for your time. Any help is appreciated.

Comments

WorldFallz’s picture

Why not just make a block view with whatever fields you want?

kirkage’s picture

So far in CCK, all I've done is to make a block that shows most recent nodes for specific content types. How would I go about pulling the fields from a node that a user is at?

Basically it's a node that allows "external links" as a CCK text field that has multiple values. Each value is a link and I display these as links on the page.

I created a block with the external links as a field but it shows 10 blank rows and there are only 5 entered total in all of my test nodes.

Any pointers on how to get this to show the links associated to the node that is being viewed or a tutorial that explains some of this?

Thank you for your time.

kirkage’s picture

I've figured it out. In case anyone else runs into a similar question, here are the options I put:

  • Arguments
    • Node: Nid
      • Action to take if argument is not present: Provide default argument
      • Default argument type: Node ID from URL
  • Fields
    • Content: External Links

It appears that setting the Argument causes it to only pull in ones for the current node. I'm not completely clear on why since there is also a Filter section that name suggests it should be done there.

I'll be looking into more about these.

WorldFallz’s picture

Yep you got it. Arguments are basically interactive filters-- filters are always applied exactly as configured. With arguments you can filter views interactively via the URL.