U
U
UntitledNikname2019-11-19 21:57:09
Drupal
UntitledNikname, 2019-11-19 21:57:09

How to create an independent page?

I have been trying with Drupal for a couple of days. I use the seventh version (7.67). There are standard theme pages.
page.tpl.php , nodes.tpl.php . How to make an independent page, for example, custom.tpl.php, without the possibility of customization, which opens at site/custom ? . Like view/controller in framework.
I will display content on this page not even from the database, but from other sites

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andead, 2019-11-20
@UntitledNikname

function mymodule_menu() {
  $items['custom'] = array(
    'page callback' => 'mymodule_custom',
  );
  return $items;
}

function mymodule_custom() {
  echo 'custom';
}

https://api.drupal.org/api/drupal/modules%21system...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question