XF 2.1 Open link/page in different style?

Hoerspiel

Member
Hi people,

is it possible to open a XF Page/Link in a different style, but just for testing. I know its possible in the acp to set this permanently.

But may be, i want to see, how a page is looking in a different style (for example for testing). Is that possible not
to change the style permanently?


May be there is a function like this: http://www.xenforo.com/page-or-thread/?style=id=3

Does anyone now, if its possible?
 
No, I think that is not possible without an addon, that extends XF\Pub\Controller\Misc, because actionStyle() in that class (which handles the style switch) has this line:
PHP:
$redirect = $this->getDynamicRedirect(null, true);
This means there's no "fallback url" and that the referrer is used for the redirect after the style switch.

There may be other approaches, but I assume all of them need some coding (i.e. an addon).
 
Back
Top Bottom