Hi Bert, Thanks for your reply - this clarifies my doubts :).
Harry On Fri, Jul 27, 2012 at 11:38 AM, Bert Pareyn <[email protected]> wrote: > > Hi Harry, > > If the page should be mapped to '/page' the map folder will have the > necessary information to correctly map it to where the actual HTML file is > stored. > If we wouldn't have the mapping our URLs would look like '/dev/page.html' > instead of '/page'. > > Let's take the oae-community server as an example. We want to browse to > the oae-community categories page to browse through the content. > > With mapping in place: https://oae-community.sakaiproject.org*/categories* > Without mapping in place: https://oae-community.sakaiproject.org* > /dev/allcategories.html* > > So in short, if you don't want to add mapping you don't have to and can > use the URL to the html file. It's recommended to use mapping though for > various reasons. > As you say, we use one file to map to an html file. > > Hope that clears it up. > - Bert > > On 27 Jul 2012, at 16:26, Harry Wang <[email protected]> wrote: > > Hi Bert, > > Just curious about this design from a non-technical person's point of > view: what's purpose of the map folder? why just allow people to add pages > directly by using url links? Do people have to add a mapping file for every > page they develop? > > Thanks, > > Harry > > On Fri, Jul 27, 2012 at 6:14 AM, Bert Pareyn <[email protected]>wrote: > >> Hi Rebecca >> >> It looks like you're trying to tell the OAE that /aboutus is actually >> /aboutus.html. You need an extra step for the url to match your html file. >> in the 3akai-ux/root/etc/map folder you'll find routes for all of our >> pages. >> Your aboutus.html page file >> (filename: 3akai-ux/root/etc/map/aboutus.html.json) could look like this: >> >> { >> 'sling:match': '^[^/]+/[^/]+/aboutus(\.html)?', >> 'sling:internalRedirect': '/dev/aboutus.html' >> } >> >> As you can tell this will match to /aboutus(.html) and point the system >> towards the html file in dev. >> After getting that in place, do 'mvn clean install -P redeploy' and give >> it a few minutes to overwrite the changes. >> >> Hope to help >> - Bert >> >> On 27 Jul 2012, at 05:53, juan wang <[email protected]> wrote: >> >> Hello guys: >> >> I want to replace the footer left links and add some new links. >> I created some new html pages under the dev folder. >> Then I changed the config.js as this: >> Footer: { >> leftLinks: [{ >> "title": "__MSG__ABOUT US__", >> "href": "/aboutus", >> "newWindow": true >> }, { >> "title": "__MSG__HELP__", >> "href": "/help", >> "newWindow": true >> },{ >> "title": "__MSG__TERMS__", >> "href": "/terms", >> "newWindow": true >> } >> ], >> But only the link texts have changed. When I click those links, I got a >> erro page: Page not found. >> >> Could anyone tell me how to replaces and add new pages under the footer >> links? >> >> >> Regards >> Rebecca >> >> _______________________________________________ >> oae-dev mailing list >> [email protected] >> http://collab.sakaiproject.org/mailman/listinfo/oae-dev >> >> >> >> _______________________________________________ >> oae-dev mailing list >> [email protected] >> http://collab.sakaiproject.org/mailman/listinfo/oae-dev >> >> > >
_______________________________________________ oae-dev mailing list [email protected] http://collab.sakaiproject.org/mailman/listinfo/oae-dev
