hide article from menu

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
itrichter
Posts: 4
Joined: Tue 21. Sep 2010, 10:05

hide article from menu

Post by itrichter »

Hi,
Is there a way to hide an article from the article menu but still display it on the page?

I have set up my site with a horizontal menu and an extra vertical article menu (see http://www.itrichter.de/index.php?risiken ).
On each level I have one article with the text to be displayed at the top and any number of articles listed below, so the articles can be read by clicking on "read on" or by clicking the menu item.
But that way the top article is shown in the menu as well, which is not usefull, since there is no additional content there. So I just hide the first item in the article menu via css.
But now I realised the article can still be found via google, which is a little confusing since there is no real content.

So my question is, can I hide the article from the menu, or is there another way to solve this?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: hide article from menu

Post by flip-flop »

Hi,

you have solved the problem?

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
itrichter
Posts: 4
Joined: Tue 21. Sep 2010, 10:05

Re: hide article from menu

Post by itrichter »

No, I haven't.
I'm wondering if there is a (convenient) way to prevent google from crawling that page, but as far as I can see that would only be possible by adding all those pages to the robot.txt or by adding the NOINDEX meta-tag, which I don't know how to do for a single article.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: hide article from menu

Post by update »

But I bet google will like these "collecting" pages!
BTW: Check the page template again with safari - there is a horizontal scroller showing up at the bottom
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
itrichter
Posts: 4
Joined: Tue 21. Sep 2010, 10:05

Re: hide article from menu

Post by itrichter »

Ok, I'm going to use Knut's article menu (http://www.phpwcms-howto.de/wiki/doku.p ... enu-archiv).
I simply adjusted the old css to fit the new menu.
Btw, when I tried the code of version 1.1 from the english part of the wiki It complained about the wrong number of argument, seems I wants 4 already. But I used 1.2 from the german part, so I'm fine.
Now I just need to re-sort half of my articles, since the menu does not use the sorting setting from the category, and I usually sort it "manually, descending", since I write my articles from top down. But then the menu hides the last article, not the first.
claus wrote:But I bet google will like these "collecting" pages!
BTW: Check the page template again with safari - there is a horizontal scroller showing up at the bottom
I don't see why not? It's not very different from any news page.
And yes, I haven't got around to check it on all browsers, and I don't have a safari available. Gonna ckeck that, thanks!
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: hide article from menu

Post by update »

There is a Safari for windows based systems:
http://www.apple.com/safari/ [direct link changed by OG]
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
itrichter
Posts: 4
Joined: Tue 21. Sep 2010, 10:05

Re: hide article from menu

Post by itrichter »

Unfortunately the article menu does not use the navigation title, but the full title of the article. I see that makes sense for many uses, but for an actual menu, it's a drawback. I'll have to see If I can change that, although I have avoided diving into the code until now.
Post Reply