Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis 5.5 Calypso supports 2 factor authentication login with e-mail or SMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
target from main content to componenet wrapper
« previous
next »
Print
Pages: [
1
]
Author
Topic: target from main content to componenet wrapper (Read 4416 times)
exanimo
Jr. Member
Posts: 67
target from main content to componenet wrapper
«
on:
June 12, 2014, 13:38:45 »
Hello
How can i set the target to point to a specific page inside component wrapper?
Example: I have a link "Submit Web Link"in my front page and i want to target it to open the "add-link.html" page inside wrapper component.
http://www.diadiktio.gr/wrapper/44.html
Than You
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: target from main content to componenet wrapper
«
Reply #1 on:
June 12, 2014, 13:51:52 »
You must modify a little component wrapper (insert just 1 line of code). Here is a way to do it.
Main URL:
http://www.diadiktio.gr/wrapper/44.html
Wrapped site:
http://www.diadiktio.gr/directory/
For any additional path inside the wrapped site add that path into main URL.
Example:
http://www.diadiktio.gr/wrapper/44.html?p=links/state-organizations/
The above should open:
http://www.diadiktio.gr/directory/links/state-organizations/
Now, open file
components/com_wrapper/views/default.html.php
Find this:
public function showWrapper($row, $options) {
Add below:
if (isset($_GET['p'])) { $row->link .= trim($_GET['p']); }
That's all!
After that you can add your links like that:
http://www.diadiktio.gr/wrapper/44.html?p=links/state-organizations/
http://www.diadiktio.gr/wrapper/44.html?p=links/home-family/
etc...
«
Last Edit: June 12, 2014, 13:56:34 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
exanimo
Jr. Member
Posts: 67
Re: target from main content to componenet wrapper
«
Reply #2 on:
June 12, 2014, 13:54:50 »
Thank you very much
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
target from main content to componenet wrapper