Pebble blog on more than one domain...

View: New views
1 Messages — Rating Filter:   Alert me  

Pebble blog on more than one domain...

by Michael Gnatz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For being able to host the same blog at several domains can change the BlogLookupFilter as follows:

//    String url = pebbleContext.getConfiguration().getUrl();
//    if (pebbleContext != null && (url == null || url.length() == 0)) {
//      String scheme = httpRequest.getScheme();
//      url = scheme + "://" + httpRequest.getServerName() + ":" + httpRequest.getServerPort() + httpRequest.getContextPath();
//      log.info("Setting Pebble URL to " + url);
//      PebbleContext.getInstance().getConfiguration().setUrl(url);
//    }

    String url = httpRequest.getScheme() + "://" + httpRequest.getServerName() + ":" + httpRequest.getServerPort() + httpRequest.getContextPath();
    PebbleContext.getInstance().getConfiguration().setUrl(url);


That does influence some of the absolute URL, but not all of them. Since it does not seem that the absolute url is stored with the blog entry xml, how does that work? Is there maybe some caching, which I do not find in the code?

Some help would be appreciated...

Regards
 Michael

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Pebble-user mailing list
Pebble-user@...
https://lists.sourceforge.net/lists/listinfo/pebble-user