Theming the entire output page of views
Hello. I created a separate template for the content type. I made a view in the form of a block with photos of the establishment and a "more" button if there are more photos than allowed in the block. For the additional photos page, I created the path /node/%/image
Overall, everything works. Just one BUT.
The establishment is located at the link /node/2 - and here the template for the establishment content type works perfectly.
However, when navigating to the images at /node/2/image - the template displays as it does for the entire site, but I need the template to be like that of the establishment content type.
How to SOLVE THIS PROBLEM? Thank you in advance.
I tried, but something didn't work out.
Well, let's say I created a template for the view views-view--logo--zavimage.tpl
In it, I included everything from another template + where the content is displayed, I inserted the content from the standard view template.
Is such an option possible? http://lab-sites.com/content/kak-tematizirovat-stranicu-views-v-drupal-7
But for some reason, it doesn't work for me.
I have the function _preprocess_page
I just need to take the code from the body of this function and insert it into my own. But it still doesn't work.
In general, if it's not too much trouble, please write the steps out for me.
P.S. And I understand that if I have another view, say the menu of the establishment, then I will also need to create a separate template for that display.