im using a custom module to create the contents of my homepage at example.com/frontpage.
in the module i run a query that gets the data i need, in an array. when i return theme(‘page’, $my_array) i get the “homepage inside the homepage”, ie the default drupal logo and sitename is displayed a second time in the main content area.
what’s the best way to go about this, create a specific tpl.php file, the contents of which should be … ?
i realise its a very general question but in 2 hours of trying things out and reading tutorials ive gotten not very far at all …
thanks
If I’m understanding your question correctly, all you have to do is return the content without running it through
theme_page.theme_pagetakes your content and wraps it in the site template, so calling it manually in your case is duplicating the template.An alternate solution is to have your page’s callback function not return anything, instead printing the output of
theme_page. If a callback function returns no text, the site’s template is not included automatically.