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.
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!
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.