Or better yet, what is the code I could use to remove the sidebar from a specific page. The file for the page itself doesn't contain much other than a large image, so I guess I would be editing the default.php in some way?
Custom pages (and the pages application @NickE) is a little clunky with its need to hack a theme and/or define a route. Even when you define a route you have to display link(s) somewhere via a definition in a theme or somewhere.
I feel a better and flexible method to display the links is to use a message (settings in Appearance section of dashboard) with link(s) to the page(s) either at the top of the discussions page or bottom of the sidebar (I'd like to be able have the option to place them at the top of the sidebar also, but that is probably best done as a core modification - @mark)
This method makes display of the links to pages much more immune to theme switching and other screwups.
I can't quite figure out how to add anything to the sidebar for my custom homepage either. I would love to add the guestmodule and other things to the panel.
I'd like to remove the side panel since I'm using Custom pages for things like privacy policy and such. Couldn't figure out how to make the proper modification either.
I have created 2 custom pages and want to add the same side bar as in forum. Right now only the message i put are coming there but there is not Category coming up. HTML also is there any ways i can add this in the top Navigation as well?
I'm having a similar problem to this. I have two custom pages that I'd like to remove the sidebar form. I've played about with a bit of trial and error but have not come up with anything yet. Any advice?
You could likely add the other modules (Categories, etc.) individually, too? You may need to copy the relevant .php file from application/vanilla/views/modules to themes/YOURTHEME/views/modules
OK, but that wasn't clear from your initial question.
You can append a page name to a css rule, so for example .discussion in front of a rule only affects elements on discussion pages, so I'm assuming you could do that for a custom page as well.
If not, you could set the display:none, and then for individual pages call it back again
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I feel a better and flexible method to display the links is to use a message (settings in Appearance section of dashboard) with link(s) to the page(s) either at the top of the discussions page or bottom of the sidebar
(I'd like to be able have the option to place them at the top of the sidebar also, but that is probably best done as a core modification - @mark)
This method makes display of the links to pages much more immune to theme switching and other screwups.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I have created 2 custom pages and want to add the same side bar as in forum. Right now only the message i put are coming there but there is not Category coming up. HTML also is there any ways i can add this in the top Navigation as well?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thanks in advance
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •http://dl.dropbox.com/u/2190429/discussions.tiff
http://dl.dropbox.com/u/2190429/calendar.tiff
http://dl.dropbox.com/u/2190429/places.tiff
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •i have the same problem.... plz give us, the solution. > how to add side pane like home page to custom pages
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Has anyone found a solution to this yet?
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •OK, all I wanted was to add the Guest "Howdy Stranger!" to the side panel. Here is what I did:
plugins/CustomPages/default.php contained:
edited to become:
Worked for me.
You could likely add the other modules (Categories, etc.) individually, too? You may need to copy the relevant .php file from application/vanilla/views/modules to themes/YOURTHEME/views/modules
- Spam
- Abuse
- Troll
1 • 1Off Topic 1Insightful 1Awesome LOL •Has anyone been able to workout how to totally remove the sidebar?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@Nonnisi
In your custom.css file, set panel to display:none
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thanks, that does not seem to remove the search box though.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@Nonnisi
Do the same thing for the Search div.
If you use Firebug in Firefox, or a simialr tool, you can inspect pretty much any elemnt in Vanilla to see what controls it.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •The search box does not seem to have a display tag, except for the actual search button.
Also just noticed that this is disabling parts of the sidebar across the entire site, I just want it gone on custom pages.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@Nonnisi
OK, but that wasn't clear from your initial question.
You can append a page name to a css rule, so for example .discussion in front of a rule only affects elements on discussion pages, so I'm assuming you could do that for a custom page as well.
If not, you could set the display:none, and then for individual pages call it back again
e.g.
.Discussion #Panel {display:block}AfaIk #Search is the element for the search box.
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •You could also just create a different master view and use it with your custom page:
The view would need to be named
your-view.master.tplfor this to work. Then remove all the stuff you don't need from this view and voilá!Just an example: I used this to create a full-width home page for a project I'm working on.
Kasper Kronborg Isager | Full-time interwebs monkey working @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me at Github
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •