Posted by guidot on September 26, 2009 at 11:02pm
Jump to:
| Project: | RSVP |
| Version: | 6.x-2.0-rc3 |
| Component: | Documentation |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | theming |
Issue Summary
I'm trying to theme RSVP.
According to README.txt I created a directory sites/default/files/rsvp/themes/mytheme, copied the files from modules/rsvp/themes/default into it and changed the name of default.css to mystyle.css.
I was then able to select the theme mytheme and the style mystyle in the RSVP default settings page. I did that and saved the settings.
I started with changing mystyle.css but the theming did not change. I inspected the page with firebug: The css-file used was still modules/rsvp/themes/default/default.css. Flushing all caches including theme registry did not help.
Oh, and thank you for making this wonderfull module.
Comments
#1
I started to read through the modules sources and found
so I moved my custom themes folder to themes sub-folder of the module (and renamed it and the css file to make sure I see the changes in admin-interface) faking it as a theme that comes with the module.
The Invitation style block did offer the new test-theme, but there was no widget for selecting the style-sheet! I hit the save-button and got the error:
The Style drop-down now reappeared, but instead of presenting my two test-styles it gave an empty list. Maybe this is another issue? If so please tell me and I file it separately.
#2
Hi,
the RSVP module will always fall back to use the default stylesheet file (modules/rsvp/themes/default/default.css) if the selected stylesheet file can not be located. So I assume that there is something wrong in how you setup your template file.
Could you send me how your directory structure under sites/default/files/rsvp/themes looks like including all files it contains? Also I would need to know how the selections options (including the ones you have not selected) look like that the rsvp module offers you in the "default settings" page and the invitation page itself that you currently work on.
Please keep in mind that changing the default settings page has no influence on existing invitations. Only new created invitations will use the new default for theme and stylesheet.
Maybe you created your invitation before you modified the default setting. In that case you also have to change the theme and stylesheet for the invitation itself.
~
Ulf
#3
That's it! I didn't know about those per-invitation-settings. They don't appear to be documented (I searched in README.txt and Drupal 6 Integration).
Thank's for the help!
#4
#5
I was also unable to do this and had to alter the default files to get a theme change. I tried putting the files under sites/... and module/rsvp/... but it always falls back to the default files.
/www//sites/default/files/rsvp/themes/nexus
/www//modules/rsvp/themes/nexus
under extended settings, I made the following changes:
theme -> default to nexus (with changes to rsvp-invitation.tpl.php)
everything else the same.
Do I need to change the nexus/*.css files? Help would be appreciated.
#6
In theory, you first have to copy all files from modules/rsvp/themes/default to /www//sites/default/files/rsvp/themes/nexus
and then modify only the files in /www//sites/default/files/rsvp/themes/nexus.
Then to verify if a invitation can pick up your files, create a new nexus.css in /www//sites/default/files/rsvp/themes/nexus or rename garland.css into nexus.css. Then modify an existing invitation and check if it offers "nexus" as template and "nexus" as style sheet. If it shows those options, then it can locate the new files and can use them.
Maybe you just changed the default template and css file. You can do this for each individual invitation as well. Or maybe a browser caching issue?
~
Ulf