So on a drupal site I am working on the client has a page where they have a view without a page template applied to it, and now the client wants to change the url of that page. As soon as I change the url of the view it applies the page template to the view. Obviously this was hard-coded in by url by the person who originally built the site, however, I have no idea how they did it. So i'm hoping someone on here has had a similar experience or knows how to make a view without a page template being applied to it.
|
You can create a block view and display it anywhere in the code. If your text format allow you to use PHP code you can insert a views anywhere in your website by adding something like this.
And this will print a view inside of a node without using a page template. The beauty about this is that you can add HTML around this without using the block module. For more information I will recommend you to read this documentation page Placing the contents of a block in any location |
|||||
|