[TYPO3-english] Display navbar outside of typo3
Ryan Bilesky
rbilesky at hotmail.com
Mon Oct 12 08:18:12 CEST 2009
I have an idea...perhaps this is so simple it could work...why can't I just view source on one of my typo3 pages and copy the <div id="nav"> </div> part which appears to me to output the nav. It seems to me that so long as I use my themes css files, I should get the same visual result.
Now I made a simple html document on my local machine, using that code and including my typo3 css files it worked.
What a simple method. Now it has the pitfall of needing to be updated each time there is a menu change, but thats as simple as copying and pasting some html code, which even though I'd rather not do, does provide a simple solution to my need.
> From: rbilesky at hotmail.com
> To: typo3-english at lists.netfielders.de
> Date: Sun, 11 Oct 2009 23:04:18 -0700
> Subject: Re: [TYPO3-english] Display navbar outside of typo3
>
>
> ok wow I really don't know what I am doing with this. What I did was basically make a blank page so I got everything minus content since there was none. So my problem right now is finding where to put this typoscript code. I tried TS Config in the page properties and tI got the whole page outputted, but as a template I overrode the actual site template that generates the navbar to begin with.
>
> Any guidance here would be great.
>
> > From: rbilesky at hotmail.com
> > To: typo3-english at lists.netfielders.de
> > Date: Sun, 11 Oct 2009 22:57:14 -0700
> > Subject: Re: [TYPO3-english] Display navbar outside of typo3
> >
> >
> > ok i realized after I sent this what I did wrong, the way I was trying to do it completely overrode the template for that page. So I delted that and went back and found where to put the typoscript. I couldn't get the pagetype to work but oh well, http://rcbitsolutions.com/index.php?id=57 now works, kinda, it really outputs too much but I can always scale back by removing uneeded code.
> >
> > > From: rbilesky at hotmail.com
> > > To: typo3-english at lists.netfielders.de
> > > Date: Sun, 11 Oct 2009 22:52:57 -0700
> > > Subject: Re: [TYPO3-english] Display navbar outside of typo3
> > >
> > >
> > > Ok well I created a page, its id is 57, I created a template for the page and under setup got this typoscript code
> > >
> > > # Create a page with nothing but the menu markup
> > > #
> > > # Disable ALL auto-generated TYPO3 markup:
> > > config.disableAllHeaderCode = 1
> > > # Unset any default PAGE object that may already exist:
> > > page >
> > > # Create a new page template:
> > > page = PAGE
> > > page.typeNum = 123
> > > # Add your main navigation to this page:
> > > page.10 < lib.main_navigation
> > >
> > >
> > > But when I goto http://rcbitsolutions.com/index.php?id=57&type=123 i just get a blank page. I even tried removing the page.typeNum = 123 in the typoscript and just went to http://rcbitsolutions.com/index.php?id=57 but it was still just blank. Now I've never really done much with typoscript so i probably did something wrong.
> > >
> > > Any suggestions?
> > >
> > > @David - I'm not exactly a typo3 pro. I'm an IT consultant, I use typo3 fro my website and want to add blogging capabilities and I prefer to go with somethign written specifically for that purpose. I simple want a place to psot my thought idea, ect about tech related issues mainly as a way to show potential customers i know what i'm talking about, or at least make them think that.
> > >
> > > That said my specialty is really networking type stuff not coding so as far as this typoscript is concerns I'm lost.
> > >
> > > > From: typo3 at perseguers.ch
> > > > Date: Mon, 12 Oct 2009 07:04:18 +0200
> > > > To: typo3-english at lists.netfielders.de
> > > > Subject: Re: [TYPO3-english] Display navbar outside of typo3
> > > >
> > > > Hi,
> > > >
> > > > Ryan Bilesky wrote:
> > > > > hmm ok now when you say
> > > > > give your "page" object some specific typeNum
> > > > >
> > > > > what exactly do you mean, how do I do that?
> > > >
> > > > Google for "typo3 typenum" ;-)
> > > >
> > > > Basically it's
> > > >
> > > > page.typeNum = 123
> > > >
> > > > which let's you access your page with /index.php?id=someid&type=123
> > > >
> > > > and prevents you from getting the default page (aka your default template that renders the full website). It's the same as well-known type 99 for "printing" (even if I prefer CSS-only for this case).
> > > >
> > > > --
> > > > Xavier Perseguers
> > > > http://xavier.perseguers.ch/en
> > > >
> > > > One contribution a day keeps the fork away
> > > > _______________________________________________
> > > > TYPO3-english mailing list
> > > > TYPO3-english at lists.netfielders.de
> > > > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> > >
> > > _________________________________________________________________
> > > Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
> > > http://clk.atdmt.com/GBL/go/177141664/direct/01/
> > > _______________________________________________
> > > TYPO3-english mailing list
> > > TYPO3-english at lists.netfielders.de
> > > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
> > _________________________________________________________________
> > Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
> > http://clk.atdmt.com/GBL/go/171222985/direct/01/
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
> _________________________________________________________________
> Hotmail: Free, trusted and rich email service.
> http://clk.atdmt.com/GBL/go/171222984/direct/01/
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/
More information about the TYPO3-english
mailing list