Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Did you know that
Elxis 5.x
uses HTML5, CSS3 and pure javascript without external libraries such as jQuery?
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
content:WHAT? for homepage?
« previous
next »
Print
Pages: [
1
]
Author
Topic: content:WHAT? for homepage? (Read 5452 times)
seadhna
Hero Member
Posts: 507
content:WHAT? for homepage?
«
on:
August 04, 2017, 13:28:35 »
Hi, a very basic question, what is the internal link for the frontpage of an Elxis site? content:whatgoeshere
Logged
webgift
Elxis Team
Hero Member
Posts: 4193
Re: content:WHAT? for homepage?
«
Reply #1 on:
August 04, 2017, 15:37:51 »
content:/
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
seadhna
Hero Member
Posts: 507
Re: content:WHAT? for homepage?
«
Reply #2 on:
August 04, 2017, 16:18:57 »
This isn't working for me. in an index.php for a template, I am linking the logo to the homepage, but I want this to switch to the correct language. If I <a href="content:/">logo goes here</a> in the index.php, nothing happens when I click on the logo on the frontend.
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: content:WHAT? for homepage?
«
Reply #3 on:
August 06, 2017, 21:00:24 »
The Elxis URI for the frontpage is an
empty string
! "
content:/
" has the same affect in most cases but the empty string is better. Elxis URIs are not URLs! You must use the makeURL function to convert them to full URLs.
This is not a valid link:
<a href="content:/">
This is the correct link:
<a href="<?php echo $elxis->makeURL('content:/'); ?>">
And this is the proper (multilingual) link to point to your site's frontpage.
Use this one
.
<a href="<?php echo $elxis->makeURL(); ?>" title="<?php echo $elxis->getConfig('SITENAME'); ?>">My Frontpage</a>
«
Last Edit: August 06, 2017, 21:02:19 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
webgift
Elxis Team
Hero Member
Posts: 4193
Re: content:WHAT? for homepage?
«
Reply #4 on:
August 07, 2017, 11:55:28 »
I assumed that you needed the default route. The Elxis formatted URI that will be used
as the site's frontpage. It's absolutely obvious that we don't use Elxis URIs instead of
URLs as @datahell mentioned.
«
Last Edit: August 07, 2017, 11:58:13 by webgift
»
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
seadhna
Hero Member
Posts: 507
Re: content:WHAT? for homepage?
«
Reply #5 on:
August 07, 2017, 14:35:01 »
perfect, thanks guys!
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
content:WHAT? for homepage?