Just a thought:  How about making this a permanent / built-in feature?


On Tuesday, 19 April 2016 12:21:45 UTC+2, Dan wrote:
>
> Looks like you're right. Will fix that in the next release. Sorry for the 
> confusion! Appreciate you catching this!
>
> Cheers,
> Dan
>
>
> On Tue, Apr 19, 2016 at 6:01 PM TMurNGon <tmur...@gmail.com <javascript:>> 
> wrote:
>
>> Tried it and it works ;)
>>
>> The only problem I came across was (I think...) a typo in the hook code:
>>
>> if (function_exists('myBOLTchooseSkin')) $BOLTskin = myBOLTchooseSkin(); 
>>  // Hook for custom function. Must set gobal $BOLTskin...
>> else {
>>
>> The BOLT bit was missing (unless I somehow deleted it by mistake during 
>> some edit...).
>>
>> Thanks.
>>
>> On Friday, 8 April 2016 01:18:32 UTC+2, Dan wrote:
>>
>>> Sure very easy to save that skin as a data variable on the page and have 
>>> your config file do something like:
>>>
>>> $BOLTskin = BOLTinit($BOLTskin, BOLTvars("$pageLink:skin"));
>>>
>>> Didn't test, but this basically changes the skin if the page var for 
>>> skin on a page is set. Unfortunately this won't offer hierarchical 
>>> benefits--it only works on a page by page basis.
>>>
>>> Is this enough? Or do you need hierarchical?
>>>
>>> Cheers,
>>> Dan
>>>
>>> On Sun, Apr 3, 2016 at 4:01 AM TMurNGon <tmur...@gmail.com> wrote:
>>>
>>>> Thanks Dan.
>>>>
>>>> I have already have a slightly customised action.create, so I'm 
>>>> thinking of altering it further to (somehow) have a skin selector when 
>>>> creating a page...
>>>> Then maybe storing that info in a similar manner to the way that 
>>>> read/write rights are stored (only for pages not using the default skin); 
>>>> then picking up the appropriate skin from there before the page is loaded.
>>>>
>>>> Wonder if that is possible??
>>>>
>>>> Thanks.
>>>> Jan
>>>>
>>>>
>>>> On Monday, 21 March 2016 19:00:22 UTC+2, Dan wrote:
>>>>
>>>>> Hi Jan!
>>>>>
>>>>> Martin is correct. PHP is the best way to set the skin dynamically. It 
>>>>> is difficult to set the skin using information in the page, because the 
>>>>> skin is set before the page is loaded and its variables read. But if the 
>>>>> approach above doesn't work, I'm sure we can concoct something easily 
>>>>> enough.
>>>>>
>>>>> Cheers,
>>>>> Dan
>>>>>
>>>>> On Mon, Mar 21, 2016 at 7:34 AM mz <tcc.p...@gmail.com> wrote:
>>>>>
>>>> Simple solution: hardcode this in your config.php like
>>>>>>
>>>>>> if ($pageArray[0] == 'data') $BOLTskin = 'data';
>>>>>>
>>>>>> = page groups with names starting with data will use skin data
>>>>>>
>>>>>> Maybe Dan provided a web hook for this. Since I never understood how 
>>>>>> to use web hooks, I keep the simple approach.
>>>>>>
>>>>>> Greetings, Martin
>>>>>>
>>>>>> -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "BoltWire" group.
>>>>>>
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>>> an email to boltwire+u...@googlegroups.com.
>>>>>> To post to this group, send email to bolt...@googlegroups.com.
>>>>>
>>>>>
>>>>>> Visit this group at https://groups.google.com/group/boltwire.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "BoltWire" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to boltwire+u...@googlegroups.com.
>>>> To post to this group, send email to bolt...@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/boltwire.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "BoltWire" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to boltwire+u...@googlegroups.com <javascript:>.
>> To post to this group, send email to bolt...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/boltwire.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to boltwire+unsubscr...@googlegroups.com.
To post to this group, send email to boltwire@googlegroups.com.
Visit this group at https://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.

Reply via email to