Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

How to override views in the conversations app from a theme

I have a strong suspicion this is a total noob question. I developed the theme for my Vanilla site starting with the Bootstrap theme. I have since written overrides in the theme for a couple of the dashboard application's views, but now I need to override the view for the messages/messages.php view in the conversations app.

Simply adding a file under themes/mytheme/views/messages/messages.php or themes/mytheme/views/messages/index.php doesn't seem to have any effect. Am I missing something obvious here?

Comments

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    Try themes/mytheme/views/conversations/messages/messages.php. Not sure if that really work but that's what I would try: adding the application somewhere in the path.

    That said, I would advice you to avoid view overrides whenever possible. Try to solve your problems with CSS and hooks. Future versions of Vanilla might add functionality in one of those views (maybe even an additional, required field) that your users will not be able to see then.

  • jamesincjamesinc Sydney ✭✭

    Yeahhh, I could, and for additional functionality I do write plugins, but when I'm just trying to correct odd mark-up decisions I'd rather override the template - ultimately it would be more effort than simply periodically pulling releases from git and merging.

Sign In or Register to comment.