Add a custom template by default
Permalink
Hey there,
I have hunted around for this and found some response but not an answer as yet.
Is there any way to add a custom template by default. I know you can edit the default view.php but I do not want to apply it to everything, sitewide. Just when you add an image to a certain template.
Thanks
I have hunted around for this and found some response but not an answer as yet.
Is there any way to add a custom template by default. I know you can edit the default view.php but I do not want to apply it to everything, sitewide. Just when you add an image to a certain template.
Thanks
If it is being added to the page by another Add-On or something you can add this code to your area in your page type and it will by default add the Custom Template (this does not load the view.css, only the view.php):
If the image is being added to the area manually I'm not sure if this will work.