Difference between revisions of "Building Site URLs"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
(6 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
*After you configure the URL forwarding (redirect) from your web address to the Site's Default Web URL/Base URL, the Platform is ready to serve your site | *After you configure the URL forwarding (redirect) from your web address to the Site's Default Web URL/Base URL, the Platform is ready to serve your site | ||
*In any typical web application, URLs include the site | *In any typical web application, URLs include the site domain | ||
*In the case of Sites, the user will have to write absolute URLs pointing the User's web address, since the content is being served from Platform's server | *In the case of Sites, the user will have to write absolute URLs pointing the User's web address, since the content is being served from Platform's server | ||
*URLs can be hard-coded with the Site URL or the Platform URL JSP tags can be used | *URLs can be hard-coded with the Site URL or the Platform URL JSP tags can be used | ||
Line 13: | Line 13: | ||
URL types supported in Sites include Pages, Controllers and Actions. | URL types supported in Sites include Pages, Controllers and Actions. | ||
====Pages Example==== | ====Pages Example==== | ||
For this Base URL and User Vanity Web Address: | For this Base URL and User Vanity Web Address: | ||
:;Base URL (Default Web Address):<tt> | :;Base URL (Default Web Address):<tt>{{platformURL}}/sites/1234567/mysite</tt>, | ||
::where '''<tt>mysite</tt>''' is derived from the User Vanity Web Address, '''<tt><nowiki>http://www.mysite.com</nowiki></tt>''' | ::where '''<tt>mysite</tt>''' is derived from the User Vanity Web Address, '''<tt><nowiki>http://www.mysite.com</nowiki></tt>''' | ||
Line 28: | Line 24: | ||
:;URL displayed in the page: <tt><nowiki>http://www.mysite.com/pages/home.jsp</nowiki></tt> | :;URL displayed in the page: <tt><nowiki>http://www.mysite.com/pages/home.jsp</nowiki></tt> | ||
:;URL forwarded to the Platform Server: <tt> | :;URL forwarded to the Platform Server: <tt>{{platformURL}}/sites/1234567/mysite/pages/home.jsp</tt> | ||
====Controller Example==== | ====Controller Example==== | ||
For this Base URL and User Vanity Web Address: | For this Base URL and User Vanity Web Address: | ||
:;Base URL (Default Web Address):<tt> | :;Base URL (Default Web Address):<tt>{{platformURL}}/sites/1234567/mysite</tt>, | ||
::where '''<tt>mysite</tt>''' is derived from the User Vanity Web Address, '''<tt><nowiki>http://www.mysite.com</nowiki></tt>''' | ::where '''<tt>mysite</tt>''' is derived from the User Vanity Web Address, '''<tt><nowiki>http://www.mysite.com</nowiki></tt>''' | ||
Line 39: | Line 35: | ||
:;Controller Path:<tt>com/platform/demo/samples/JobsController</tt> | :;Controller Path:<tt>com/platform/demo/samples/JobsController</tt> | ||
:;URL forwarded to the Platform Server: <tt> | :;URL forwarded to the Platform Server: <tt>{{platformURL}}/sites/1234567/mysite/controller/com/platform/demo/samples/JobsController</tt> | ||
====Action Example==== | ====Action Example==== | ||
For this Base URL and User Vanity Web Address: | For this Base URL and User Vanity Web Address: | ||
:;Base URL (Default Web Address):<tt> | :;Base URL (Default Web Address):<tt>{{platformURL}}/sites/1234567/mysite</tt>, | ||
::where '''<tt>mysite</tt>''' is derived from the User Vanity Web Address, '''<tt><nowiki>http://www.mysite.com</nowiki></tt>''' | ::where '''<tt>mysite</tt>''' is derived from the User Vanity Web Address, '''<tt><nowiki>http://www.mysite.com</nowiki></tt>''' | ||
Line 51: | Line 47: | ||
:;URL displayed in the page:<tt><nowiki>http://www.mysite.com/login</nowiki></tt> | :;URL displayed in the page:<tt><nowiki>http://www.mysite.com/login</nowiki></tt> | ||
:;URL forwarded to the Platform Server: <tt> | :;URL forwarded to the Platform Server: <tt>{{platformURL}}/sites/1234567/mysite/login</tt> |
Latest revision as of 19:23, 25 April 2014
One of the most important features of Site functionality is the way URLs are handled in a Site page.
- After you configure the URL forwarding (redirect) from your web address to the Site's Default Web URL/Base URL, the Platform is ready to serve your site
- In any typical web application, URLs include the site domain
- In the case of Sites, the user will have to write absolute URLs pointing the User's web address, since the content is being served from Platform's server
- URLs can be hard-coded with the Site URL or the Platform URL JSP tags can be used
- Learn more: Tags
Sites are built using a combination of Pages, Classes, Controllers.
- Learn more: Working with Pages and Classes
URL Types
URL types supported in Sites include Pages, Controllers and Actions.
Pages Example
For this Base URL and User Vanity Web Address:
- Base URL (Default Web Address)
- https://{yourDomain}/networking/sites/1234567/mysite,
- where mysite is derived from the User Vanity Web Address, http://www.mysite.com
- Page URL
- Base URL + /pages/{page}
- Page Name
- home.jsp
- URL displayed in the page
- http://www.mysite.com/pages/home.jsp
- URL forwarded to the Platform Server
- https://{yourDomain}/networking/sites/1234567/mysite/pages/home.jsp
Controller Example
For this Base URL and User Vanity Web Address:
- Base URL (Default Web Address)
- https://{yourDomain}/networking/sites/1234567/mysite,
- where mysite is derived from the User Vanity Web Address, http://www.mysite.com
- Controller URL
- Base URL + /controller/{controller_path}
- Controller Path
- com/platform/demo/samples/JobsController
- URL forwarded to the Platform Server
- https://{yourDomain}/networking/sites/1234567/mysite/controller/com/platform/demo/samples/JobsController
Action Example
For this Base URL and User Vanity Web Address:
- Base URL (Default Web Address)
- https://{yourDomain}/networking/sites/1234567/mysite,
- where mysite is derived from the User Vanity Web Address, http://www.mysite.com
- Action URL
- Base URL + /{action}
- Standard Action
- login
- URL displayed in the page
- http://www.mysite.com/login
- URL forwarded to the Platform Server
- https://{yourDomain}/networking/sites/1234567/mysite/login