Sidebar hides from Layout
|
Aug 5, 2008 11:41
6 posts
|
Hi, I just started using Frog and I really enjoy it. However, I encountered the first problem which requires your help.
On homepage, the sidebar shows the text. On company, the sidebar does not show the text On People, the sidebar shows a list of all subpages of people (based on http://www.madebyfrog.com/docs/how-to/create-a-sitemap.html) On Employee 1, the sidebar does not show a list of all subpages of people (based on http://www.madebyfrog.com/docs/how-to/create-a-sitemap.html) Is there any hint available how I can fix this? Thanks a lot, Thomas |
|
Aug 5, 2008 12:24
963 posts
|
Hi Thomas -- There may be other ways (maybe search the forum for "navigation"?), but you can see one solution in the sidebar to my CSS Play page, under "Navigation". It works to three levels, IF you are NOT using ".html" terminations. You can get the code for it from this forum post. Let us know how you get on! |
|
Aug 5, 2008 14:43
6 posts
|
Thanks for your reply - Unfortunately, the problem is that the sidebar just does not appear. I added content to the sidebar, and it does show up. In addition, this happens only certain pages. |
|
Aug 5, 2008 16:58
390 posts
|
you should check your layout, on how you display the sidebar ... if it is inherited or not hope that help |
|
Aug 6, 2008 09:35
6 posts
|
Indeed, the second parameter solved the issue regarding the sidebar on subpages. Unfortunately, there is still one problem. I created a page. I added a sidebar. The sidebar does not appear on the page. I removed it, I added it, I edited it - but the sidebar hides somewhere. This must be something in the code (PHP). Thomas |
|
Aug 6, 2008 10:07
963 posts
|
This is odd, Thomas! If "Layout" you are using for the page ("Normal"?) has this code....
...or something like it, then the sidebar cannot hide! :) Can you check your Layout? (When you are editing a page, the "Layout" drop-down is just above the "Save" button.) |
|
Aug 6, 2008 10:14
6 posts
|
Yes, I'm a little frustrated right now. The sidebar is included in my layout and problems appears on some, but not every page. Therefore, I assume the problem is a little bit more tricky :( <div class="span-6 push-1 last" id="sidebar"> <?php echo $this->content('sidebar', true); ?> </div> |
|
Aug 6, 2008 10:33
6 posts
|
Problem solved: Sidebar != sidebar Nasty, nasty :-) |
|
Aug 6, 2008 10:46
963 posts
|
Nasty indeed! Glad you found the problem -- I was going to say "Check the spelling" but ... that would have been too easy. ;) Hope we get to see the site when it goes live! |
|
Aug 6, 2008 11:38
6 posts
|
The Problem is that Frog automaticly capitalized the name of each part, which I didn't know. The input should be transformed to lowercase automaticly |
|
Aug 9, 2008 12:37
315 posts
|
I'm having a problem with a section of my sidebar not showing up. I have included the same line of code in the sidebar section of each article, but it only works in one. I also have the WMD editor in place and, the one page that the sidebar works, the WMD editor doesn't show up. The pages where the sidebar doesn't work, the WMD editor does show up. I don't know what's going on, or what could be causing this.
Is the code I have in the sidebar of each article and:
Is the code I have in that snippet. Any ideas? You can see it not working at my article and working at my other article. |
|
Aug 9, 2008 12:53
315 posts
|
I also just noticed that the Archive by Month also does not show up in that first link. I'm not sure what would stop it. The code in the sidebar has changed, I attempted to see if that was a problem, but it's not. The new scripts is:
Any ideas? |
|
Aug 9, 2008 14:11
315 posts
|
I have updated the code changes to r162. The problem is still affecting me. |
|
Aug 10, 2008 01:56
315 posts
|
I have worked around this issue by putting the links in the layout of my theme. I made a simple if statement to test and see if there was "extended" content. If there was, then it puts the links under the sidebar section. :-) I would still like to know why the original didn't work. It now has to look like:
Anyway, at least it works. |