-
Re: I need to suppress the subnav in a particular space - how to do that?
Scott A Johnson Apr 25, 2016 1:24 PM (in response to sharakarasic)1 person found this helpfulYou could probably accomplish this by using a Plugin Template Definition.
Determining the place you're in by the action and in that case, adding some javascript or css to hide those elements.
-
Re: I need to suppress the subnav in a particular space - how to do that?
mcollinge Apr 26, 2016 3:41 AM (in response to Scott A Johnson)1 person found this helpfulYou could put some CSS in a widget in that place which hides the subnav. That'd be the simplest approach.
We've customised our instance so we can configure each place with properties which tell it what to display.. we can remove what we want, including the place title, menu, etc. That customisation went mostly into template.soy, and activates a bit of CSS to do what we need.
-
Re: I need to suppress the subnav in a particular space - how to do that?
Scott A Johnson Apr 26, 2016 9:46 AM (in response to mcollinge)Oh, man, hacktastic . One of our clients was doing that too. In that case, it was business users "hacking". With great power, comes great responsibility is all I have to say.
It works fine until you have to upgrade. No history of the source code, no record of which spaces are affected and its difficult to replicate across envs and keep things consistent.
I'm not saying I haven't done things just as hacky in a bind, but I would try to avoid it as a pattern.
-
Re: I need to suppress the subnav in a particular space - how to do that?
mcollinge Apr 27, 2016 2:14 AM (in response to Scott A Johnson)Indeed. That's why we implemented this via place properties and alterations to template.soy.. then it's all centralised & easily upgraded in the future. If we want to know what places have what settings, we just run a d/b query. We exposed the place properties in a 'Extra Settings' page, making it easy for site admins to use.
Other people's implementations depend on what customisation methods are available to them.
-
-
-
Re: I need to suppress the subnav in a particular space - how to do that?
sharakarasic Apr 26, 2016 1:00 PM (in response to Scott A Johnson)Thank you Scott!
-