I am looking for a command to output the complete content of a another document/webpage including everything from <head> to </body> or at least from <body> to </body>. Is there any command to realize this? I want to use such a command to output page A or page B on another page in a randomized way or for example depending from which country the visitor comes.
Does anybody know how to realize this?
Letti
Is the page a resource in the db of this site?
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
I had a similar problem see this post it solved my problem.
http://modxcms.com/forums/index.php/topic,53857.msg311538.html#msg311538
Hope this helps you
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
If I see it correctly this solution outputs only the "content"-field and not the whole page as we need it. Do you have any idea to output a complete page?
Letti
What else do you have on that page?
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
I have a template that processes a lot of TVs of the sites like the headline, the subhead, a sidebar and so on. Using these TVs it is very comfortable to make a new page by just filling out the fields headline, subhead, defining a main-picture the sidebar and so on...
Letti
Perhaps if you tell us a little more about why you are doing this we may be able to offer some constructive suggestions.
Sounds like you might be flirting with duplicate content issues here (not good for SEO).
Is there any reason why you wouldn’t redirect to the other page, rather than trying to grab the entire page output?
Yes it was only ’content’ field
Sorry I do not have a solution for you.
Possibly create a template for the equivalent of both pages and populate 2nd tv’s using similar technique for tv’s.
Maybe someone else can step in and help.
DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
Hi lucas,
I am working on a Snippet for A/B-Testing for conversion rate optimization. For this I need two variations of a webpage which will be shown in a randomized way to the visitors. The snippet is almost finished and already working for different variations of the content or for TVs like the headline. Now still missings is the possibility for A/B-Testing concerning two variations of the template. For this I want to make two copies of the page which is going to be tested. These copies should be shown randomized in the original webpage controlled by a special template I will turn on only for this kind of testing. Do you understand what I am going to do?
Letti