|
From: shane <sh...@lo...> - 2007-05-10 20:14:50
|
On May 10, 2007, at 9:26 AM, Faye Gibbins wrote: > Hi, > > It is possible to configure slash so that instead of say: > > http://features.somemachine.example.com/..... > > it uses: > > http://somemachine.example.com/features/..... > > when linking from a story on the main page > (http://somemachine.example.com/) to (say) a "features" article? > > I'd prefer not to setup an subnet just to play with slash. > > I did skim through the Slssh book and got through the variables list > looking for something obvious. > > yours > Faye First off, what version of Slashcode are you using? The version I'm most familiar with, CVS (ie current, unreleased) has great reliance upon subdomains in the URL's. I'm going to assume that's what you are using. However, what you want can be done. We did it on a site. I don't recall if we had to patch anything, or not. But the first step for you to go about this would be to remove the URL's for any non-primaryskid skins that are nexus's. Then edit your article and save it. That'll cause slash to re-render it and the links to it. Because, technically, if your subdomains are setup, there should be no behavioral difference between http://features.some.tld/ and http:// some.tld/?section=features. And when the dispStory template is called, it should render the link to any story as either coming from the some.tld/article.pl?section=foo or some.tld/{sectionname}/ article.shtml or {subdomainforskin}.some.tdl/article.pl -- all depending on the primaryskid or the article, the skin's settings and who's requesting it (anon user, user, slashd). Try it on slashcode, or slashdot yourself if you like. http:// apple.slashdot.org/ or http://slashdot.org/?section=apple should be the same. Shane |