Sunday, April 30, 2006

Parameters II

Where do parameters come from mommy?

Playing around with the Joomla front page. Clicking on something and seeing what URL it gives me. Inside the URL I can see parameters ($REQUIRE, $GET) being passed to a component that will display in the center of the page. Still doesn't tell me how or why they got there, but it's a start in unravelling the logic of Joomla! code.

Hit the Register link on the Joomla front page and I get this URL:

http://127.0.0.1/joomla/index.php?option=com_registration&task=register

On the Main Menu:

1. Home:

http://127.0.0.1/joomla/index.php?option=com_frontpage&Itemid=1

2. Joomla! License:

http://127.0.0.1/joomla/index.php?option=com_content&task=view&id=5&Itemid=6

3. News:

http://127.0.0.1/joomla/index.php?option=com_content&task=section&id=1&Itemid=2

4. Blog:

http://127.0.0.1/joomla/index.php?option=com_content&task=blogsection&id=0&Itemid=9

5. Links:

http://127.0.0.1/joomla/index.php?option=com_weblinks&Itemid=23

6. Contact Us:

http://127.0.0.1/joomla/index.php?option=com_contact&Itemid=3

7. Search:

http://127.0.0.1/joomla/index.php?option=com_search&Itemid=5

8. News Feeds:

http://127.0.0.1/joomla/index.php?option=com_newsfeeds&Itemid=7

9. FAQs:

http://127.0.0.1/joomla/index.php?option=com_content&task=category§ionid=3&id=7&Itemid=25

10. Wrapper:
http://127.0.0.1/joomla/index.php?option=com_wrapper&Itemid=8

11. Joomla! Home:

http://www.joomla.org/


Some generalizations:

1. Option is the component being called like com_registration. So after you click on the frontpage something is mapping your click to a component call. Must be the infamous template I've been hearing so much about.

2. Task comes from a limited set: view, section, register, blogsection... It selects the thing to do once you reach the component.

3. ItemId ??????????????

4. Id I guess would be a user Id, maybe?

0 Comments:

Post a Comment

<< Home