Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [SOLVED] Foundation 5 framework and textpattern ?
Mainly what I am looking to do is to reduce the navigation menu size at the top of my site.
Currently it has 2 Galaxy Arms, 70 Sectors per Arm, Sub-Sectors ( 16 per sector), and upt to 100 planets per sub-sector.
As you can see, the menus are getting very complicated very quickly.
What I want to do is have 2 Galaxy Arms and the sectors at the top of each page.
Those link to pages that go deeper into the data.
So, I’m not sure I need lots of add-on html.
Edit:
Oops. I forgot about the columns. There are 18 columns, A thru R, and each column has 22 sectors.
Which is a total of 792 sectors. Not 70.
Oops again. Not all that is up there yet. And by my calculations, that will be slightly over 1000000 planets. But I don’t intend all sub-sectors have 100 solar systems.
Last edited by JimJoe (2013-11-27 15:57:01)
Offline
Re: [SOLVED] Foundation 5 framework and textpattern ?
philwareham wrote:
Heh, you beat me to it, I just started a GitHub repo to do just that!
Phil, we both know who’ll win in a webby fight.
Last edited by gaekwad (2013-11-27 21:24:45)
Offline
Re: [SOLVED] Foundation 5 framework and textpattern ?
JimJoe wrote:
Mainly what I am looking to do is to reduce the navigation menu size at the top of my site. […] And by my calculations, that will be slightly over 1000000 planets.
Wow. That’s some dataset, Jim.
Here’s a suggestion: use dynamic drop down menus like Cruclal do on their memory selector page:
- drop down 1 selects the galaxy arm, which loads a sector form to populate…
- drop down 2, which selects the sector, which loads a sub-sector form to populate a planet form to populate…
- drop down 3, which selects the planet
Offline
Re: [SOLVED] Foundation 5 framework and textpattern ?
I did a ‘slight’ math error. There are only 80 hexes in a sub-sector… so a more accurate number would be about 5-20 stars per sub-sector. Slightly higher density if in a star cluster.
I’ve seen that kind of menu before. First menu selection, causes a particular second drop down to load, that selection, causes a third particular menu to load. Multiple possibilities for both 2nd and 3rd menu… I’ve never done that before.
I’ll try looking at their source code for that page and see if I can duplicate it.
That might make thing much easier to handle.
Thanks !
edit: its an aspx page, asp.net
My web host is on NetBSD, but I might be able to find a way to use the idea.
Last edited by JimJoe (2013-11-27 21:54:00)
Offline
Re: [SOLVED] Foundation 5 framework and textpattern ?
JimJoe wrote:
I’ll try looking at their source code for that page and see if I can duplicate it.
css-tricks.com/dynamic-dropdowns/
javascript.about.com/library/bl3drop.htm
Offline
Re: [SOLVED] Foundation 5 framework and textpattern ?
Ah. Thanks !
I’ll see if I can implement that on my site. Turkey much later today, so I might be able to do some preliminary work on it.
Offline
Re: [SOLVED] Foundation 5 framework and textpattern ?
I finally found a nice script on http://javascriptkit.com/ I tried about 5 of them and decided to use the one linked to next.
Here is what I have done with it so far: test page
I think what I’ll do is use this menu, and let that go to the sector maps.
The sector maps will be image maps that lead to sub-sector maps, which will be image maps leadng to a list of solar systems.
I may make the sub-sectors image maps, for each solar system. Seems kinda painful though.
Offline
Re: [SOLVED] Foundation 5 framework and textpattern ?
I found the boulder in my plans.
All articles in textpattern are body only. So a pull down menu that requires anything in the <,head> part of the page is likely a no go. Otherwise it would require extensive coding.
I think I have one I downloaded that doesn’t require a head part. i.e. <,head> … <,/head>
Of course, I could create html pages, one for each sub-sector map. That is a large number; 16 sub-sectors per sector, 792 sectors, a total of 12672 html pages over the next several years. But, I had more html pages than that on my Drive-in movie theater site. So, I’m willing to start typing… but this is vacation week.
I’ll do one sub-sector map at a time.
I could put the header part in a css file, and that wouldn’t make another approach to the 64kb limit.
I’ll poke around over the next week or so and let ya know what I found out. I really have other things to do this weekend.
Like relax.
If the above sounds slightly illegible… I’m tired.
Offline
Re: [SOLVED] Foundation 5 framework and textpattern ?
Good luck, commander.
Offline
Re: [SOLVED] Foundation 5 framework and textpattern ?
Props for the Elite reference :)
Offline
Re: [SOLVED] Foundation 5 framework and textpattern ?
My first computer was an Acorn Electron. Now I’m showing my age.
Offline
Re: [SOLVED] Foundation 5 framework and textpattern ?
Thanks.
My first home computer was a Sinclair ZX-81 with 1 kilobyte of memory. I later bought the 16Kb ram add-on. And a giant elastic/rubber band to hold it on and not wobble.
Offline