Thanks Dan, Nice comprehensive answer!
I will try it out. On Friday, 16 February 2018 20:52:16 UTC+2, Dan wrote: > > Sure, I often have one skin for those logged in and one for those who > aren't. You can control this easily in your config.php file. > > Here's a quick snippet you could adapt as needed. > > if ($pageLink == 'welcome') $BOLTskin = 'splash'; > elseif ($BOLTid == '') $BOLTskin = 'welcome'; > else $BOLTskin = 'school'; > > My welcome page gets skin "splash", if they are not logged in they get > skin "welcome" and otherwise they get skin "school". > > There's also a hook for a custom skin chooser function: > > function myBOLTchooseSkin() { > // script to select $skin. > return $skin > } > > It would be fun to create a function that would allow you to create a page > that defines a different skin for different hierarchies. Take for example > this function: > > function myBOLTchooseSkin() { > global $pa; > $skin = BOLTinit('default', BOLTvars("site.skin::$pa[0]", false)); > return $skin > } > > This would look on site.skin to see if the first part of the page name is > assigned a skin, and if not, return the default skin. Not tested... > > You would probably want to copy lines 152 & 153 from engine.php to this > function to make sure your mobile and print skins work properly. > > I'm sure you could come up with other options. > > Cheers, > Dan > > > On Fri, Feb 16, 2018 at 8:31 AM, TMurNGon <tmur...@gmail.com <javascript:> > > wrote: > >> Hi Dan, >> >> I was wondering if you have encountered the need for sites where the >> various site pages vary significantly? >> In other words: you cannot just use the one skin for all pages. >> In my experience this is more often the case than not. >> >> Is there a way to assign a default skin, but give pages the ability to >> each determine their own skin/template? >> >> Thanks lots. >> Jan >> >> -- >> 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. >> > > > > -- > > > *Join me January 1 for REVIVE :: > 2017http://www.fastmissions.com/boost/fast4god > <http://www.fastmissions.com/boost/fast4god>* > ᐧ > -- 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.