|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
dmNews and FUHi, I’m trying sort out an issue with Friendly URLs and dmNews. The setup and problem: (I’m going to use an example article called “FarCry News Test”) I want the news content on our site to sit on the following URL: /the- institute/news/farcry-news-test The page at /the-institute/news is a dmHTML page with a container that contains the news teaser display rule. We don’t use /go/ and have a setting in IIRF for each of our root folders (the-institute is one of these). By default when we create a news article, e.g. “FarCry News Test” and approve it, it has a FU of /news/farcry-news-test The problem with this is that the article is not in the navigation tree so the left hand nav and the breadcrumb both now default back to “Home” (hope that makes sense). How can I make FarCry default the FU for news articles from /news/ to / the-institute/news/ ? I know that you can add additional FU details after the article is approved, but I want the default to be /the-institute/news/article title rather than making users come back in and edit the FU. I’ve tried adding an include page that the teaser points to (and passes the ObjectID of the article to display via the URL) but this is messy and also creates other issues (such as having to deal with it again in search result links etc). Any pointers? Cheers Mark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: dmNews and FUThere are a couple of points here that you will need to deal with separately.
The first is the navigation and breadcrumbs. To fake the news items position in the site tree you can pass either pass navid into the page as a url parameter, or you can set request.navid before the page header is included in the webskin. This allows you to tell the navigation generation code what the page's parent navigation node is. I'm not sure if this effects the breadcrumbs too - you may have to update the breadcrumbs tag so that request.navid is passed into it instead of stObj.objectid. The other point is the friendly URL. You have a couple of options. The easiest is to change the FU prefix in the FU config from "/go/" to "/" or "/the-institute/" depending on how you have FarCry set up. Cheers Blair On Mon, May 5, 2008 at 4:17 PM, <mark.picker@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: dmNews and FUHi Blair, Thanks for the repy. That is sort of what I did, except I was checking for the news display page ObjectID in the sidenav if detected, setting the request.navid to what I needed....but your right, I should have tried setting it in the webskin itself. Will give that a shot. With FU, we already have the site defaulted from "/go/" to "/". The section of the site called "The Institute" is just a subsection, so I wouldn't want to make the default FU for the entire site "/the- institute/" just the news section of /the-institute (does that make sense?) Cheers Mark On May 5, 5:06 pm, "Blair McKenzie" <shi...@...> wrote: > There are a couple of points here that you will need to deal with > separately. > > The first is the navigation and breadcrumbs. To fake the news items position > in the site tree you can pass either pass navid into the page as a url > parameter, or you can set request.navid before the page header is included > in the webskin. This allows you to tell the navigation generation code what > the page's parent navigation node is. > > I'm not sure if this effects the breadcrumbs too - you may have to update > the breadcrumbs tag so that request.navid is passed into it instead of > stObj.objectid. > > The other point is the friendly URL. You have a couple of options. The > easiest is to change the FU prefix in the FU config from "/go/" to "/" or > "/the-institute/" depending on how you have FarCry set up. > > Cheers > Blair > > > > On Mon, May 5, 2008 at 4:17 PM, <mark.pic...@...> wrote: > > > Hi, > > > I'm trying sort out an issue with Friendly URLs and dmNews. > > > The setup and problem: > > > (I'm going to use an example article called "FarCry News Test") > > > I want the news content on our site to sit on the following URL: /the- > > institute/news/farcry-news-test > > > The page at /the-institute/news is a dmHTML page with a container that > > contains the news teaser display rule. > > > We don't use /go/ and have a setting in IIRF for each of our root > > folders (the-institute is one of these). > > > By default when we create a news article, e.g. "FarCry News Test" and > > approve it, it has a FU of /news/farcry-news-test > > > The problem with this is that the article is not in the navigation > > tree so the left hand nav and the breadcrumb both now default back to > > "Home" (hope that makes sense). > > > How can I make FarCry default the FU for news articles from /news/ to / > > the-institute/news/ ? > > > I know that you can add additional FU details after the article is > > approved, but I want the default to be /the-institute/news/article > > title rather than making users come back in and edit the FU. > > > I've tried adding an include page that the teaser points to (and > > passes the ObjectID of the article to display via the URL) but this is > > messy and also creates other issues (such as having to deal with it > > again in search result links etc). > > > Any pointers? > > > Cheers > > Mark- Hide quoted text - > > - Show quoted text - You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: dmNews and FUMakes sense.
I forgot to mention the other custom FU option: overriding setFriendlyURL in your content type. By default it behaves as you've seen (prefix + content type + title), but if you need to do something really funky with FUs that's the place to do it. Copy the default from types.cfc and customise. Blair On Mon, May 5, 2008 at 5:37 PM, <mark.picker@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: dmNews and FUHi Blair, Thanks heaps for your replies, I had the correct idea for fixing my issue, but I was slightly off track with implementing it. With your help I now have all this working well. I've hard coded a few things, but once this project is out the door I plan to revisit the code to make it more dynamic. I'll then put something up to show others how to do it. Thanks again for your help. Cheers Mark On May 5, 5:49 pm, "Blair McKenzie" <shi...@...> wrote: > Makes sense. > > I forgot to mention the other custom FU option: overriding setFriendlyURL in > your content type. By default it behaves as you've seen (prefix + content > type + title), but if you need to do something really funky with FUs that's > the place to do it. Copy the default from types.cfc and customise. > > Blair > > > > On Mon, May 5, 2008 at 5:37 PM, <mark.pic...@...> wrote: > > > Hi Blair, > > > Thanks for the repy. > > > That is sort of what I did, except I was checking for the news display > > page ObjectID in the sidenav if detected, setting the request.navid to > > what I needed....but your right, I should have tried setting it in the > > webskin itself. Will give that a shot. > > > With FU, we already have the site defaulted from "/go/" to "/". The > > section of the site called "The Institute" is just a subsection, so I > > wouldn't want to make the default FU for the entire site "/the- > > institute/" just the news section of /the-institute (does that make > > sense?) > > > Cheers > > Mark > > > On May 5, 5:06 pm, "Blair McKenzie" <shi...@...> wrote: > > > There are a couple of points here that you will need to deal with > > > separately. > > > > The first is the navigation and breadcrumbs. To fake the news items > > position > > > in the site tree you can pass either pass navid into the page as a url > > > parameter, or you can set request.navid before the page header is > > included > > > in the webskin. This allows you to tell the navigation generation code > > what > > > the page's parent navigation node is. > > > > I'm not sure if this effects the breadcrumbs too - you may have to > > update > > > the breadcrumbs tag so that request.navid is passed into it instead of > > > stObj.objectid. > > > > The other point is the friendly URL. You have a couple of options. The > > > easiest is to change the FU prefix in the FU config from "/go/" to "/" > > or > > > "/the-institute/" depending on how you have FarCry set up. > > > > Cheers > > > Blair > > > > On Mon, May 5, 2008 at 4:17 PM, <mark.pic...@...> wrote: > > > > > Hi, > > > > > I'm trying sort out an issue with Friendly URLs and dmNews. > > > > > The setup and problem: > > > > > (I'm going to use an example article called "FarCry News Test") > > > > > I want the news content on our site to sit on the following URL: /the- > > > > institute/news/farcry-news-test > > > > > The page at /the-institute/news is a dmHTML page with a container that > > > > contains the news teaser display rule. > > > > > We don't use /go/ and have a setting in IIRF for each of our root > > > > folders (the-institute is one of these). > > > > > By default when we create a news article, e.g. "FarCry News Test" and > > > > approve it, it has a FU of /news/farcry-news-test > > > > > The problem with this is that the article is not in the navigation > > > > tree so the left hand nav and the breadcrumb both now default back to > > > > "Home" (hope that makes sense). > > > > > How can I make FarCry default the FU for news articles from /news/ to > > / > > > > the-institute/news/ ? > > > > > I know that you can add additional FU details after the article is > > > > approved, but I want the default to be /the-institute/news/article > > > > title rather than making users come back in and edit the FU. > > > > > I've tried adding an include page that the teaser points to (and > > > > passes the ObjectID of the article to display via the URL) but this is > > > > messy and also creates other issues (such as having to deal with it > > > > again in search result links etc). > > > > > Any pointers? > > > > > Cheers > > > > Mark- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free Forum Powered by Nabble | Forum Help |