Lets say I want to write my own php code, which displays a page with items/images, but without all the default crap like title, submitted by etc., its more like a static page.
Assumed that the file is mypage.php, how could I call/execute this from a menu entry???

If this is not possible, then:
HOW can I create a new content type without all this title and other things, JUST a blank page, and call this one from a menu entry?

Comments

xano’s picture

Page nodes (content type shipped with Drupal) won't suffice?

If not, the best way would probably be to create something using CCK or creating your own module. If you have some knowledge of module development I'd say creating a new module is a bit easier than using CCK, as the latter probably requires some extra theming.

softtouch’s picture

I wanted to have a blank page, and I found a solution.

I created a new content type, no body, with the name videogalleries.
Then I created a node-videogalleries.tpl.php, and do there my php coding. Works as expected.

throk’s picture

Take a deep breath.
If you want the submitted by stuff take off. Go to "themes" under "site building" and configure the theme.
If you use CCK to create a new content type you can make simple changes to how the fields are displayed.
If you want to really change the way the content looks, then you can use the content template module.

I think that every node has to have at least a tittle... And you can put any PHP code you want into the body textfield, just be sure to change the input format to PHP.
__________________________________________________________
work in progress www.TheHappyHourHero.com

softtouch’s picture

That all does not display the content as i would like to have it.

What I want is exactly the behavior of the image.gallery, just for videos.

I want a menu entry "Video Galleries" (Yes, multiple galleries, not one, just like image.gallery)
Clicked, it displays the Galleries in a grid, with an image above the title.

Lets say, I create a vocabulary "Video Galleries".
This vocabulary has 3 terms, "Gallery 1", "Gallery 2", "Gallery 3"

If the menu entry is clicked, it displays (the terms) in a grid:

[image] [image] [image]
Gallery 1 Gallery 2 Gallery 3

If I click Gallery 2, it displays in a grid:

[video] [video] [video] [video]

[video] [video] [video] [video]

[video] [video] [video] [video]

This is similar to the image.gallery, with a main gallery page where all the galleries are listed in a grid.

softtouch’s picture

I finally got it as I like it.

I created a new content type "videogalleries" which has 4 term assigned to it (tid 66,67,68,69).
I then created a node for it with the title "Video Galleries".
This node has the NID 344, so I created a page-node-344.tpl.php in which I replace the print $content with my own php code which loads the 4 term titles from the database and display them in a grid, with an image above.

I then created page-taxonomy-term.tpl.php and replaced again the print $content with my own php.
There I check if arg(2) is numeric and between 66 and 69 (my terms id's).
If it is not, I do the original print $content, if it is, I do my own php code to display the videos of that term in a grid.

Might not be the correct way to do it, but it works.