Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Convert
Wordpress to Elxis
with
Elxis importer
!
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Modules
»
Menu Items (Links) - Where are the URL's created ?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Menu Items (Links) - Where are the URL's created ? (Read 4980 times)
jazzys
Newbie
Posts: 4
Menu Items (Links) - Where are the URL's created ?
«
on:
October 11, 2015, 10:05:55 »
Can someone guide me on, where the Menu Item links are created, before the page output to html in the browser?
We are using a domain forwarding currently and I wish to display the URL accordingly.
I believe it can be configurated in the uri.class.php
Thank you.
«
Last Edit: October 11, 2015, 12:49:02 by jazzys
»
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Menu Items (Links) - Where are the URL's created ?
«
Reply #1 on:
October 12, 2015, 11:30:30 »
Don't edit Elxis libraries!
Links are
component specific
and defined there, so all links pre-exist, you dont need to create them. You just display the link to any page you want. In Elxis administration you can create a new menu item (link) to any page you want.
Administration > Menu > Main menu > New
In most cases you can define the parts or the whole URL by setting
seo titles
on items (eg categories and articles). All component except component Content have
base names
in order Elxis to understand for which component each link is for. For component User the base name is "user" so all links to component user starts with user/.... The same for all components. You can change the base name in Elxis administration by re-routing the component to an other route base name.
Administration > Site > Routing
So a link to this page:
http://www.example.com/
reservations
/hotels/it/
is easy to understand that the URL above links to component
IOS Reservations
.
The parts of the URL right of "
reservations
" are generated by the component automatically but in many cases these parts are user defined in each component administration and reflect the page's data. For instance the green part of the URL below is generated by the user's input (country, city, hotel name):
http://www.example.com/
reservations
/hotels/
it/roma/super-hotel.html
Especially for component content the base name is empty. There is no "content" in the URL. So, this URL:
http://www.example.com/sports/tennis.html
is the page of an article with seo title
tennis
in category with seotitle
sports
When you click to see a page in Elxis CMS, Elxis gets the first segment of the URL to determine which component to load. If no component is routed to that segment Elxis loads component Content. If it is not a valid URL in component content then component content will generate an Error 404 (page not found).
«
Last Edit: October 12, 2015, 11:43:42 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Extensions
»
Modules
»
Menu Items (Links) - Where are the URL's created ?