I made a content type product, and set it's url path to "myurl/?q=node/product", but the content of it only shows up if I promote it to the front page. How can I get it to show up under "myurl/?q=node/product", but not on the front page, "myurl/"? If I demote it from the front page, "Welcome to your new Drupal website!" shows up on both. Thanks!

Comments

coltrane’s picture

Try "node/product" for the url path instead of including your site url with a query.

couloir007’s picture

I followed your suggestion, but "myurl/?q=node/product" still appears as the url link on the web page. I originally had it as "myurl/?q=product", it's own page, but I am unable to gain access to the nodes that way, which is my ultimate goal. I appreciate your response.

coltrane’s picture

OK, I misunderstood what you were setting as the URL path. "product" should be fine.

What happens when you don't set the path of the node? After you hit submit do you get "Page not found"?

Are you trying to see a list of nodes or one you just created?

couloir007’s picture

It sees "product" as a page. I should let you know that I'm using 5.x. Just "product" goes to the product content-type, like I expect, and I am able to theme "product" with page.tpl.php or page-product.tpl.php. Only problem is, I can't access any of the nodes on the page via the node.tpl.php template. If I set the url to "node/product", I am able to access the nodes, but it must be promoted to the front page to show up. If I demote it, it disappears from both the the "index" and "node/product" page. Ideally, I'd like to either access the nodes from the "product" page, or see the content in "node/product" without promoting it to the front page. Thanks!

punshs’s picture

I assume your using the CCK module to create your custom node type. May I suggest that if you want have a page that displays more than one node that you use the views module and create a page that only shows nodes of the type "project". You can easily filter them out, and views can even set up links to the nodes.

I may not understand exactly what you are trying to do, but this is what I use for most of my content, and it is very versatile.

I don't know if your using the pathauto module too, but that can help you with the URL names.

Hope this helps just a little.