This content has been marked as final. Show 8 replies
The warning wouldn't stop you from switching themes.
Just to be clear, you probably do know this, but I'll say it to set the context, those template classes are not related to CSS classes. That template class lets APEX match one template to another. So, a Button can be matched to a Button, Button Alt to Button Alt, Page with Tabs matched to Page with Tabs and so on.
That warning is normal.
If I understand your situation you have a Button with "Next" in the name. When you attempt to switch themes you don't have a matching Next button, but you do have options right?
I think you just need to see which class the Next button is using and make sure you have an equivalent template created on the destination theme.
Hope this helps a little.
Hi Jorge, thanks for the reply.
I know that template class is in no way related to CSS class yes - just used to aid theme switching.
I should have been clearer - it is the Next button on the Switch Theme page that is missing, not a button in my APEX application.
So I am seeing the Switch Theme page with ticks against each template in the Status column, but with two rows with "... multiple matching templates found", which as you point out should not stop me switching themes, and hasn't stopped me in the past, but there is no Next button there.
Ah! Sorry. Ha!
Ok, crazy thought, would it be possible that you still have some "Warning: no template found with matching template class" errors on the next page of the report?
Maybe you're not done adding missing templates.
That struck me too, but it says "row(s) 1 - 11 of 11" I'm afraid.
It does let me switch to a full copy of Theme 24 from the repository instead of the subset that is my custom theme. I could try to subscribe to all templates instead of a subset, then remove the unused ones (those I think are unused anyway) one by one until it stops me switching. I was really hoping to avoid that though!
Doesn't sound like fun. I'm not sure what's going on either, but I think your suspicions are correct.
The current status is:
I have an application with two themes and I can't switch from one to the other - the Next button on the Switch Theme page is missing even though there are either ticks in the status column, or "Warning: multiple matching templates found".
I can make a copy of this application (either with a straight copy or by importing an export file), try and switch themes in the new copy and the Next button on the Switch Theme page appears fine - no problem switching.
I've exported apps and themes in the original and copy and examdiff'd them. Apart from the IDs changing there are three differences in the copy: two lines with
p_plug_query_row_count_max => 500 in them, and one with p_translate_this_template => 'N'. Something about a template is interesting, but if I edit the export file, remove the p_translate_this_template line, and import to a new application, I can still switch themes.
Applications getting corrupted like that doesn't happen often, but I've seen it. You got lucky that the export and copy cleans things up again.
If for some reason you're able to reproduce it then you can log it as a bug and reported here on the forum.
I've left the original as-is - I'll keep returning to it if I get any ideas about what may be happening, but since a copy has sorted it out I'm not sure what else to look at. Thanks for the replies.