Hi,
Post by Luke MackenzieWhat are maps in Jaws and how do they work?
Maps are shortcuts (that you can customize with the URL Mapper tool)
that makes an URL more easily to remember, for example, if you want to
see the Phoo photos you have in the 2nd album you can go to:
index.php?gadget=Phoo&action=ShowPhotos&album=2
With an URL map it would be:
index.php/phoo/album/2
These shortcuts can be configured in two ways:
- With a Map.php gadget (on Trunk) or a $gadgetMap.php. These maps will
get installed once you install the gadget (/phoo/album/[numeric])
- Via the URLMapper, you can configure your URLMaps
(/phoo/album/[alpha]).
The advantage of using Map.php is that you can 'validate' an URL by
telling Jaws which params should be numberic, string, emails, etc.. With
the URLMapper you can't, you only define 'generic' params.
Please take a look to:
http://wiki.rubyonrails.org/rails/pages/HowToRouteGenericURLsToAController
Cause we used a similar idea.
Post by Luke MackenzieWhat are aliases in Jaws, how do they work and what is the difference
between these and maps?
An alias is that, an alias, just one word to access faster an URL, for
example, you have a page in StaticPage for information about you, so you
can access it by going to:
index.php/pages/1 or index.php/pages/About_Me
An alias would be something like:
index.php/AboutMe.html
Post by Luke MackenzieIf the above are set up and activated, what effect will this have on
any .htaccess rules?
It depends, if you want to use mod_rewrite, you need to also activate
the use of it in Jaws (I already sent you a mail about this), otherwise
your .htaccess and Jaws will get confused.
Post by Luke MackenzieIf the .htaccess file is being used, what effect does this have on the
maps and aliases.
Depends if you use mod_rewrite.
Post by Luke MackenzieI'm looking for some specifics in terms of what the PHP code is doing
within the maps & aliases functionality. Yes, I can look at the code
but the reality is that I am never going to have time to look at all
of it and would probably end up ditching Jaws for something else with
more documentation. I think this is a likely scenario for many
developers with a casual interest in the Jaws project.
You are right, we lack of documentation. Its very common (and not to
excuse us) that most developers hate to document, they prefer to do it
on the code (phpdoc).
We are open to receive help from developers and users who wish to
document little pieces of Jaws.
Post by Luke MackenzieI hope someone can help me understand this functionality so that I can
contribute to the project. I have tried asking in the IRC channel but
(with all due respect to those who tried to help) but did not find
definitive answers or a native english speaker.
My job doesn't let me chat all day in IRC, I've access to it but can't
stay there all day, sorry :P.
Cheers,
--
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
Cel: (044-55) 2689-6351
Fingerprint: 5973 0F10 543F 54AE 1E41 EC81 0840 A10A 74A4 E5C0
http://www.pablo.com.mx
http://www.jaws-project.com