|
I am wondering if there is a way to simply exclude a created page from the menu? I dont believe there is an option in the control panel however I am wondering if it could be done manually by editing line 8 in index.php
<? LOAD_MENU(); ?> ^ it seems that there would be some way to add something like 'exclude #page' in that line or something of the sort. I know I can just as easily remove that line and manually add my page links it would just be nice if it could update for me and also exclude. I'm not savvy enough on my php to figure it out ![]() Thanks for any info |
|
I do not know how to manipulate the <? LOAD_MENU(); ?> call, but there is another way using a bit of css among other things.
First, in your themes files, open the one called page_link.php The content in it will probably look something like follows (unless you've done some heavy editing): <p><a class="page-link" href="#<? echo _encode($title); ?>"><? echo $title; ?></a></p> Then, take <? echo _encode($title); ?> and copy it to the class, so it looks like this: <p><a class="page-link <? echo _encode($title); ?>" href="#<? echo _encode($title); ?>"><? echo $title; ?></a></p> This will result in your page links have both the class "page-link", as well as whatever the title of the page is. So, if we have a page called Test, the rendered link to it will look like this: <a class="page-link Test" href="#Test">Test</a> Now every page link is identifiable, we can target them and hide them. So, if we continue assuming it is the page called Test you want to hide from the menu, this is what you punch into your basic.css: #pages .Test {
display: none;
}With this method, the link will still be there, but it won't be visible. This might not be the ultimate way of doing it, but it's A way of doing it. I hope it'll work for you :) |
|
great @hallor!
it works fine to me. trying to find a way to show .link active in the menu item that is linked to the page hidden. had any idea? thanks for your time! |
|
I'm glad it works for you :)
I don't understand completely what it is you want to do. Do you think you could explain again? |
|
I didn't try nothing after sending the last reply, so you could see in the About page of my site what I've try to say here.
Once I had hidden the English page that is shown "inside" the About page, I couldn't show the link in the menu as an active link. Also I'm having some trouble with the .active link of the entrys pulling my hair out with this. When these links are active they keep showing the grey background that I set for the links. (I'm just starting with CSS, so these could be something really small.) Sorry if I can't seem to be very explainfull, I'm a newbie in english too. :) Regards, Thanks for your interest! |
|
The reason why "About" isn't active once you're on the english page is that the english page isn't actually a sub-page of About, it just looks that way. I am sure it's possible to do something about this with the help of jQuery, but I'm not skilled enough to help out. Sorry.
|
|
I've think the same!
I'll try something, when I get one possible solution I'll post it here! Thanks! :) |
|
Hi everynone,
Yesterday I read how to hidden a page from the menu here, and I did it, now I'm looking for toogle/switch styles.css, and I found some tutorials like these. Stylesheet switcher using jQuery Alternate Style Sheets php switch stylesheet Style Switcher Switch between alternate css I chose the last one, But the problem is that Corecms give you the style.css automatic, and we need the default with rel"styelesheet" and the other with rel"alternate stylesheet", so I made this, I put the second one outside the theme/styles and call it from the editing index head <link rel="alternate stylesheet" type="text/css" href="styles/basic2.css" title="basic2" />And I follow the instruction from the tutorial, and it works by 50%, because it change the style.css but not toogle, example: I create a page named Home, it is hidden in the basic.css but in the basic2.css it is displayed, but if I switch to the basic2.css it is still hidden, and the other pages with the display atribute hidden, they're hidden. so is toogle but..... this is the css code: .Home {
display: none;
}My idea is to have a multilingual site, by toogle css and hidden and display the pages. Thanks!:-) |
| Powered by Nabble | See how NAML generates this page |
