WrapURL

Creating and modifying plugins.
Post Reply
jensolav
Regular
Posts: 8
Joined: Mon Oct 17, 2005 3:03 pm

WrapURL

Post by jensolav »

Would you please explain in details how to use WrapURL plug-in

How do I define permalink

Kind regards

Jensolav
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: WrapURL

Post by garvinhicking »

I assume you have already installed the wrapurl plugin. Go to your serendipity admin suite, go to configure plugins, click on the title of the wrapurl plugin.

The wrapurl plugin allows you to setup a page that shows foreign content, but embeds the usual layout of your blog. Thus, you need to tell the WrapURL plugin which URL to wrap, and on which page this should be available.

Now in the configuration enter these values:

Headline: Google
Permalink: /path/to/your/blog/index.php?/wpages/google.html
URL shorthand name: googleurl
The URL: http://www.google.com/

Now save the plugin. Now, the page you configured as permalink will be used to serve you the wrapped page for Google. Open your blog via http://host/path/to/your/blog/index.php ... oogle.html or via http://http://host/path/to/your/blog/in ... =googleurl

As you can see, you can either use the configured permalink to access this page, or via the shorthand url name plus a subpage command.

On the page you now opened you will see the Google page wrapped in your blog's layout.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jensolav
Regular
Posts: 8
Joined: Mon Oct 17, 2005 3:03 pm

Post by jensolav »

I have tried to do as you described but no succes

Try to visit http://bjoerchmart.dk/serendipity

Kind regards

Jensolav
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You did it right, the result is there: http://bjoerchmart.dk/serendipity/index ... =googleurl

Just like I wrote. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jensolav
Regular
Posts: 8
Joined: Mon Oct 17, 2005 3:03 pm

Post by jensolav »

Hey,

yes it works with [subpage] but not with wpages, how does that come?

Thanks for your help

Kind regards

Jensolav
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I don't know, you need to tell me what exactly you entered as the permalink, then I can tell you what's wrong :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

Hey again,

that's my permalink

http://bjoerchmart.dk/serendipity/index ... oogle.html

Can you figure that out?

Kind regards

Jensolav
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Okay, so the link below is the one you configured for the plugin, right? Then that's wrong, you need to enter this as the permalink:

/serendipity/index.php?/wpages/google.html

The permalink only takes the HTTP string, not the Hostname or a "http://" prefix.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply