|
|
Members: 10,140
Threads: 38,830
Posts: 159,367
Online: 34
Newest Member:
Xoote |
|
|
|
 |
 |
|
 |
14.08.2005, 16:04
|
#1
|
|
Baby Mamber
Join Date: Jul 2005
Posts: 18
|
Creating Wrappers without menu item
hi to create a wrapper around content on another website I am creating a menu item, copying the url of the item then unpublishing the menu item and then I link directly to the wrapper content in my article.
in short is it possible to create wrapped content without a menu item ?
David
|
|
|
15.08.2005, 16:08
|
#2
|
|
Professional Mamber
Join Date: Apr 2004
Location: North East USA
Posts: 931
|
Re: Creating Wrappers without menu item
There might be but I am not aware of it
I have resorted to created a few "unused" menus such as "UNUSED", "WRAPPER" , etc.
I then just create these extraneous links in the appropriate menu item. With 4.5.2.3 I can create the wrapper, click apply and get the link all on one screen while keeping the menu item unpublished.
|
|
|
17.02.2006, 03:11
|
#3
|
|
Senior Mamber
Join Date: Sep 2004
Posts: 131
|
Re: Creating Wrappers without menu item
ok, but I´d like the wrapper opening directly into the content, not with a link to clic on... Is it possible?
|
|
|
17.02.2006, 04:23
|
#4
|
|
Professional Mamber
Join Date: Apr 2004
Location: North East USA
Posts: 931
|
Re: Creating Wrappers without menu item
Quote:
|
Originally Posted by ehsabbi
ok, but I´d like the wrapper opening directly into the content, not with a link to clic on... Is it possible?
|
Yeah my previous post went through that.. however.. that was a while ago.. I now use Joomla but the principle is the same.. you have to create a link to the wrapper... you don't have to use it..
Once you create the link to the wrapper via a menu link, you will have the URL and can use it from within content. You can then delete the menu item if you wish or just unpublish it..
I personally do not know of another way to create a wrapper and get the link to it...
|
|
|
17.02.2006, 05:30
|
#5
|
|
Senior Mamber
Join Date: Sep 2004
Posts: 131
|
Re: Creating Wrappers without menu item
Hi crash777, I understand that this process provide me the URL, but how can I use it into the content without a href link?
To clarify my problem:
A. I´m using CB and have a list os all players of the my team.
B. I have too a Menu link to the content "The Team". Clic on it, appears the content talking about the team.
What I need is, when clic on the menu link "The Team", show a page with B + A contents (not B + a link to B).
|
|
|
17.02.2006, 11:37
|
#6
|
|
Professional Mamber
Join Date: Apr 2004
Location: North East USA
Posts: 931
|
Re: Creating Wrappers without menu item
Okay, now I am confused... why would you be displaying a CB list in a wrapper?
CB lists have the drop down links for their lists. To remove that, you would need to hack the code...
Quote:
|
Originally Posted by ehsabbi
Hi crash777, I understand that this process provide me the URL, but how can I use it into the content without a href link?
To clarify my problem:
A. I´m using CB and have a list os all players of the my team.
B. I have too a Menu link to the content "The Team". Clic on it, appears the content talking about the team.
What I need is, when clic on the menu link "The Team", show a page with B + A contents (not B + a link to B).

|
|
|
|
17.02.2006, 12:47
|
#7
|
|
Senior Mamber
Join Date: Sep 2004
Posts: 131
|
Re: Creating Wrappers without menu item
It´s not in a wrapper, but into his own menu link (index.php?option=com_comprofiler&task=usersList ). The idea of a wrapper is to put it inside the content "My Team" but I don´t know if it´s the best way to.
|
|
|
17.02.2006, 16:26
|
#8
|
|
Professional Mamber
Join Date: Apr 2004
Location: North East USA
Posts: 931
|
Re: Creating Wrappers without menu item
so you want to embed the results of that link into content.. but not just create a link in the content...
hmmm. I haven't a clue how to make the target of a link be available inside content...
Please post it here if you find a way.. I am sorry I cannot help more
|
|
|
18.02.2006, 19:46
|
#9
|
|
Mamber
Join Date: Mar 2005
Posts: 68
|
Re: Creating Wrappers without menu item
Hi All
This may do what you want.
You'll have to do 2 things:
1) Install mos_php? i think it's called that, it allows you to place php code directly into your page contents with wrappers like {mosphp}{/mosphp}
2) You will need to alter your php.ini file to "allow_url_fopen = On"
Then add this code, linking to the page you require....
It works 100% for me. (you may / may not need the <?php | ?> ) closers with the mosphp but I'm at home and cammot remember.
Best wishes
Neil
<?php
$handle = fopen("http://www.shepway.gov.uk/", "r");
$contents = '';
if($handle)
{
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
}
echo $contents;
?>
sorry, just remembered... you must end this with a return, so possible something like return $contents; ??????
|
|
|
18.02.2006, 19:54
|
#10
|
|
Mamber
Join Date: Mar 2005
Posts: 68
|
Re: Creating Wrappers without menu item
just connected to work to see how i did it before.
the php to add to your page (after the mosphp mambot is installed and turned on) is
{mosphp}
$handle = fopen("http://www.shepway.gov.uk/", "r");
$contents = '';
if($handle) {
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
}
return $contents;
{/mosphp}
Neil
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 21:52.
|
|
|
|