|
You are here: Home / Documentation / Search Engine Friendly URLs in Sitellite |
Search Engine Friendly URLs in SitelliteCalling boxes from the URLSitellite extends the page value format to allow you to specify boxes from different Sitellite apps, without breaking the search engine friendliness. This model is as follows:http://www.example.com/index/myapp-boxname-action The "-action" denotes that this is a box and not an ordinary page, and the other dash(es) separate the app name from the box name (or rather, the box <em>path</em>). This scheme allows you to still include a hierarchy of boxes within your apps, and still access them from the URL. For example: http://www.example.com/index/myapp-outerbox-innerbox-thirdbox-action This would map to the file: inc/app/myapp/boxes/outerbox/innerbox/thirdbox/index.php However, the caveat is that any box that is to be accessed from the URL, ie. accessed as an "action", needs sufficient access to be granted in an access.php file. The access.php files live in the box folders with the index.php files, and are inheritable from subfolders. To enable our box, we would need an access.php file with the following contents: ; <?php /* sitellite_access = public We can now call our box, and boxes underneath it (unless otherwise set), via the URL. This drastically increases the power of the Sitellite development model by making boxes equal to ordinary pages. If you need an idea for a box to test this out with, may I recommend: <?php Page 1: What is URL rewriting? |
|
Copyright © 2008, SIMIAN systems Inc. All rights reserved. Privacy policy Some of the icons on this site were created by the Gnome Project. |