The theming README says:
if you wanted to edit the html for the discussion list, you could
copy the views from /applications/vanilla/views/discussions to
/themes/yourtheme/views/discussions and edit them there.
Doesn't that create a huge potential for naming conflicts? For instance, both Garden and Vanilla have a /views/settings folder, so what happens if I create /themes/yourtheme/views/settings/index.php? Does it overwrite both of them? Am I misunderstanding this, or does every views subfolder have to be uniquely named between every potential app for theming purposes?
0 • •
Comments
eg, /applications/vanilla/views/settings/index.php would be the default if there isnt a version in /yourtheme/
if there is a /themes/yourtheme/views/settings/index.php it will be used instead,
seems to be the same as the way wordpress or zencart or whatever, works,
it should always look for the relevant index.php within /yourtheme/
doubling up on index.php files should be fine aslong as they are within a designated /yourtheme/ folder, and shouldnt cause any issues
I think I'v understood your question, if not, nevermind what I'v just said lol
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •That's, indeed, something to look into. It might be already taken care of, I don't know.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •If you want a view to be used across applications (ie. one master view for
vanilla, scffolding, etc), you could place it in:
/themes/theme_name/views/default.master
/themes/theme_name/design/*.png,*.css
If you wanted a view to be specific to one application (ie. an altered master
view for scaffolding only), you could place it in:
/themes/theme_name/app_name/views/default.master
/themes/theme_name/app_name/design/*.png,*.css
Maybe it needs to rephrased in the themes documentation (I haven't been around to go and read it again).
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •And I'm learning php at the same time that I learn garden, so I'm not sure to be able to write definitive stuff, especially documentation.
Thanks for the offer though.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Reading book in english since 18 y.o, and 2 years in London when I was 30ish would do that to you.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •