edit-task
Home
Up
Delete
Task Name:
Task Description:
5245] replace hardcoded links in mainMenu with dynamically generated links (mainMenu object)
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">4800-v-003</h1> <h1 style="text-align: center;">menu main {object}</h1> <h2>[previously]</h2> <ol> <li><strong>[2015-06-06][00:00] main menu links</strong></li> <ol> <li>] dynamically built links to each of the main pages using/based the current race setting</li> </ol></ol> <h2>[currently]</h2> <ol> <li><strong>[00:00] PAGE layout</strong></li> <ol> <li>] use var's for links in place of hard ,</li> <li>] TEST links render on index page fine,</li> <li>] PRB other pages dont load, ERROR = undefined /rankingsURl</li> </ol> <li><strong>[00:00]</strong><strong> PAGE route/index</strong></li> <ol> <li>x] ADDed same function(copy+paste) to build links to each route to each page(*3), pass in the same vars to each page,</li> <ol> <li>+=] PAGE register, ] PAGE login</li> </ol> <li>x] TEST = PASS</li> <li>*] PRB = !DRY</li> <li>] CREATE - single function, gernated "menu" object</li> <li>] JSON.stringify to send, menu<span style="color: #1e7c70;">:</span><span style="color: #4f76ac;">JSON</span>.stringify<span style="color: #1e7c70;">(</span>menuMain<span style="color: #1e7c70;">)</span></li> <li>] JSON.parse() to read,</li> <li>] PASS - the menu object to each page</li> </ol> <li><strong>[00:00]</strong><strong> DEFINE object</strong></li> <ol> <li>] menuMain - properties include links for each of the pages</li> </ol> <li><strong>[00:00]</strong><strong> CREATE function - buildMenuMain()</strong></li> <ol> <li>] sets the properties of menuMain,</li> <li>] call it on each page ?? YES b/c user could access from BM or url hack vs navigating</li> </ol> <li><strong>[00:00]</strong><strong> PASS object 'menuMain' into /view/*</strong></li> <ol> <li>] menu:menuMain into each page that needs it (aka all pages)</li> </ol> <li><strong>[00:00]</strong><strong> UPDATE layout</strong></li> <ol> <li>] reference menu.selectionsUrl VS selections.Url in menu settings</li> </ol> <li><strong>[00:00]</strong><strong> UPDATE PAGE view/index</strong></li> <ol> <li>] edit reference to link vars in body, change to menu.</li> </ol> <li><strong>[00:00]</strong><strong> TEST 4800-v-003-menu</strong></li> <ol> <li>] # 5242 - i] PRB PG register, i] PRB PG login ]</li> </ol></ol> <h2>[next]</h2> <ol> <li>]</li> </ol>