Programmatically determine if viewing/editing page type defaults.
Permalink 1 user found helpful
Hello all,
I was wondering if there is a way to determine if the page type defaults view was currently active.
Here's my problem:
I have a custom theme that has a recursive function to find the first parent with an certain attribute. This function times out when page type defaults are being set (impossible to set page type defaults).
I need a way to tell my theme to disable this recursive function when the defaults are being viewed or edited. I was hoping there was an API call, but can't find one.
I narrowed it down to the task="load_master" but still can't find what I need.
Any help would be appreciated.
I was wondering if there is a way to determine if the page type defaults view was currently active.
Here's my problem:
I have a custom theme that has a recursive function to find the first parent with an certain attribute. This function times out when page type defaults are being set (impossible to set page type defaults).
I need a way to tell my theme to disable this recursive function when the defaults are being viewed or edited. I was hoping there was an API call, but can't find one.
I narrowed it down to the task="load_master" but still can't find what I need.
Any help would be appreciated.
However, when I now look the page defaults in edit mode, I could find that this might help:
Antti / Mainio
EDIT: But just check out if it works out, I'm not sure...