By AstralP on
Hi
I am writing my first node type module and have been trying to figure out how to display all nodes. I am thinking in terms of the audio or video module ie; mysite.com/audio displays the latest audio nodes.
I don't have a problem with coding the routines, it is merely how this symbolic link is defined? Looking at video.modules it looks as if it relies on a combination of video_page() and the menu hook, but I've had no success with this. I know I must be missing something simple :)
any pointers appreciated
Andy
Comments
You're in the right
You're in the right direction.
Look in drupaldocs.org in the menu section to get a feel for how the _menu() hook works. Then, when your head is good and spinning from that, cut & paste some examples from common modules =)
Now, here's the part that got me when I first started this: Every time you make a change to code in the _menu() hook inside the if ($may_cache) { ... } bit, you have to back to admin/modules and 'Save' the configuration to make it update the menu cache.
-- Merlin
[Point the finger: Assign Blame!]
[Read my writing: ehalseymiles.com]
-- Merlin
[Read my writing: ehalseymiles.com]
[Read my Coding blog: Angry Donuts]