Hello...
This is a bit of long post... but I am really stuck and I just want to improve on my Drupal knowledge... thanks a lot in advance for your time.
Been using Drupal for a few months now, at first used Views a lot, but I just wanted more control over what my application does. I also just wanted my code in git without having to export everything. I'm just running into a few issues, hopefully this forum can clear up a few of them.
Situation: A custom menu item where a list of a x node could be shown, but also have this menu item be a basic page, where you could still add a body text.
[page title]
- when logged in [edit button]
[body text]
[list of nodes]
- when logged in [edit button per node]
What i did here was create a custom module, in which i added a MYMODULE_menu. The callback to this page led to a function where I used EntityFieldQuery to get the list of nodes I wanted, sorted on the property(DESC) and a fieldCondition. I also loaded these results in a custom template using the theme() function and a MYMODULE_theme().
This all worked fine. I could access the menu item and it showed me a nice list of results. Here I started to run into numerous issues... I fixed them, for the most part, but i'm just wondering if I did it the right way.