Skip to main content
added 16 characters in body
Source Link
Mołot
  • 21.9k
  • 8
  • 59
  • 112

In drupal 7, I created a content type called page and set the url to /about. If I check the source code I see

and
<link rel="canonical" href="/website/about"> 

and

<link rel="shortlink" href="/website/node/7" />

So if I create a new template called page--node--7.tpl.php then it works. But if I create a new template called page--about.tpl.php it wont get picked up.

What am I doing wrong here?

Thanks!

In drupal 7, I created a content type called page and set the url to /about. If I check the source code I see

and

So if I create a new template called page--node--7.tpl.php then it works. But if I create a new template called page--about.tpl.php it wont get picked up.

What am I doing wrong here?

Thanks!

In drupal 7, I created a content type called page and set the url to /about. If I check the source code I see

<link rel="canonical" href="/website/about"> 

and

<link rel="shortlink" href="/website/node/7" />

So if I create a new template called page--node--7.tpl.php then it works. But if I create a new template called page--about.tpl.php it wont get picked up.

What am I doing wrong here?

Thanks!

Source Link
Jean
  • 13
  • 2

Creating new template for new page

In drupal 7, I created a content type called page and set the url to /about. If I check the source code I see

and

So if I create a new template called page--node--7.tpl.php then it works. But if I create a new template called page--about.tpl.php it wont get picked up.

What am I doing wrong here?

Thanks!