Cheers Blair that's helpful to know. Thanks for your time today...really appreciated it :)
Blair McKenzie wrote: > I haven't done any complicated stuff with categories - basically just > checking if object X has category Y. A few things that would be usefull to > keep in mind while working it out: > > - Just as navigation nodes on the site tree can have aliases (and be > accessed via application.navid[navalias]) categories aliases work > exactly the same way through application.catid[catalias]. > - Tree relationships for both navigation and categories are stored in > the nested_tree_objects table of your database. > - There is a 'factory' or singleton loaded into > application.factory.oTree (or you can load it separately: > farcry.farcry_core.packages.farcry.tree) that contains quite a few > functions that retrieve children, ancestors, siblings, etc. > > Blair > > On 9/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > Hey Blair, > > > > Using the objectid totally worked, thanks. > > > > Althought I just finishing having a talk with my manager and he said > > change the system over to the Farcry external links system, particular > > when I told him as you said that it can track hits etc. > > > > The main reason that we have intially decided to use our external links > > was because our search form uses a category select and also as a > > subcategory select and as I am new to farcry I was not sure how to > > setup the comparision when someone uses the select statement. > > > > In other words say a user selects a category and then a subcategory, > > how do I match that up to a farcry category/subcategory (keyword) so > > that if they match only display links in those categories, > > subcategories etc. I suppose it would be by using the category object? > > > > Regards > > > > > > > > Blair McKenzie wrote: > > > Are you using friendly urls? For basic FarCry, as long as the link is in > > the > > > form /index.cfm?objectid=xxxx where xxxx is the objectid of the included > > > page, extra parameters in the query string shouldn't make any > > difference. > > > > > > On the note of using FarCry links, the advantage of that is that since > > hits > > > are logged for every type in the system (not just html pages) you would > > have > > > some stats automatically (although you might want to develop your own > > > reports). > > > > > > Blair > > > > > > On 9/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > The first page displays a search form to do a search for links based > > on > > > > user input as well as a select form element so that users can search > > on > > > > pre-defined categories. > > > > > > > > Based on their search a list of external links is displayed which they > > > > can then click on to go to that site. The link has a parameter added > > > > which is the id of the link so we can keep stats on the number of > > > > clicks that the link has received, this is done when the user clicks > > > > the link which opens a page that updates the link stats and then > > > > re-directs them to the external url. > > > > > > > > (NOTE: for a number of different reasons, we have decided to use > > > > our own external links system as an included rather than use the > > farcry > > > > link system, although we will consider changing from our system to the > > > > farcry system in the future) > > > > > > > > > > > > Blair McKenzie wrote: > > > > > Can you give us an example of what you want to do? > > > > > > > > > > Blair > > > > > > > > > > On 9/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > wrote: > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > I have set up a include where the main file uses a cfswitch > > statement. > > > > > > This works fine for a form elements, but it does not work that > > well > > > > > > when you are using parameterised drill down links as we get a 404 > > > > > > error, how do we get around this? > > > > > > > > > > > > Thanks David > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------=_Part_8929_3702335.1157680072707 > > > > > Content-Type: text/html; charset=ISO-8859-1 > > > > > X-Google-AttachSize: 771 > > > > > > > > > > Can you give us an example of what you want to > > > > do?<br><br>Blair<br><br><div><span class="gmail_quote">On 9/8/06, <b > > > > class="gmail_sendername"><a href="mailto:[EMAIL PROTECTED]"> > > > > [EMAIL PROTECTED]</a></b> < > > > > > <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED] > > </a>> > > > > wrote:</span><blockquote class="gmail_quote" style="border-left: 1px > > solid > > > > rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: > > 1ex;"><br> > > > > > Hi,<br><br>I have set up a include where the main file uses a > > cfswitch > > > > statement.<br>This works fine for a form elements, but it does not > > work that > > > > well<br>when you are using parameterised drill down links as we get a > > 404 > > > > > <br>error, how do we get around this?<br><br>Thanks > > > > David<br><br><br><br><br></blockquote></div><br> > > > > > > > > > > ------=_Part_8929_3702335.1157680072707-- > > > > > > > > > > > > > > > > > > > > > > > ------=_Part_9325_17842366.1157684049718 > > > Content-Type: text/html; charset=ISO-8859-1 > > > X-Google-AttachSize: 3926 > > > > > > Are you using friendly urls? For basic FarCry, as long as the link is in > > the form /index.cfm?objectid=xxxx where xxxx is the objectid of the included > > page, extra parameters in the query string shouldn't make any difference. > > > <br><br>On the note of using FarCry links, the advantage of that is that > > since hits are logged for every type in the system (not just html pages) you > > would have some stats automatically (although you might want to develop your > > own reports). > > > <br><br>Blair<br><br><div><span class="gmail_quote">On 9/8/06, <b > > class="gmail_sendername"><a href="mailto:[EMAIL PROTECTED]"> > > [EMAIL PROTECTED]</a></b> <<a href="mailto: > > [EMAIL PROTECTED]">[EMAIL PROTECTED] > > > </a>> wrote:</span><blockquote class="gmail_quote" > > style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt > > 0.8ex; padding-left: 1ex;"><br>The first page displays a search form to do > > a search for links based on > > > <br>user input as well as a select form element so that users can search > > on<br>pre-defined categories.<br><br>Based on their search a list of > > external links is displayed which they<br>can then click on to go to that > > site. The link has a parameter added > > > <br>which is the id of the link so we can keep stats on the number > > of<br>clicks that the link has received, this is done when the user > > clicks<br>the link which opens a page that updates the link stats and > > then<br>re-directs them to the external url. > > > <br><br> (NOTE: for a number of different > > reasons, we have decided to use<br>our own external links system as an > > included rather than use the farcry<br>link system, although we will > > consider changing from our system to the > > > <br>farcry system in the future)<br><br><br>Blair McKenzie > > wrote:<br>> Can you give us an example of what you want to > > do?<br>><br>> Blair<br>><br>> On 9/8/06, <a href="mailto: > > [EMAIL PROTECTED]">[EMAIL PROTECTED] > > > </a> <<a href="mailto:[EMAIL PROTECTED]"> > > [EMAIL PROTECTED]</a>> wrote:<br>> ><br>> ><br>> > > > Hi,<br>> ><br>> > I have set up a include where the main > > file uses a cfswitch statement. > > > <br>> > This works fine for a form elements, but it does not work > > that well<br>> > when you are using parameterised drill down links as > > we get a 404<br>> > error, how do we get around this?<br>> ><br> > > > > > Thanks David<br>> ><br>> ><br>> > > > ><br>> ><br>><br>> > > ------=_Part_8929_3702335.1157680072707<br>> Content-Type: text/html; > > charset=ISO-8859-1<br>> X-Google-AttachSize: 771<br> > > > ><br>> Can you give us an example of what you want to > > do?<br><br>Blair<br><br><div><span > > class="gmail_quote">On 9/8/06, <b > > class="gmail_sendername"><a href="mailto: > > > <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>"><a > > href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a></a></b> > > &lt;<br>> <a href="mailto:<a href="mailto: > > [EMAIL PROTECTED]"> > > > [EMAIL PROTECTED]</a>"><a href="mailto: > > [EMAIL PROTECTED]">[EMAIL PROTECTED]</a></a>&gt; > > wrote:</span><blockquote class="gmail_quote" > > style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt > > > 0.8ex; padding-left: 1ex;"><br><br>> > > Hi,<br><br>I have set up a include where the main file uses a > > cfswitch statement.<br>This works fine for a form elements, but it > > does not work that well<br>when you are using parameterised drill down > > links as we get a 404 > > > <br>> <br>error, how do we get around > > this?<br><br>Thanks > > David<br><br><br><br><br></blockquote></div><br><br>><br>> > > ------=_Part_8929_3702335.1157680072707-- > > > <br><br><br> > > > ------=_Part_9325_17842366.1157684049718-- > > > > > > > > > > > ------=_Part_9895_24678340.1157687718039 > Content-Type: text/html; charset=ISO-8859-1 > X-Google-AttachSize: 12674 > > I haven't done any complicated stuff with categories - basically just > checking if object X has category Y. A few things that would be usefull to > keep in mind while working it out:<br><ul><li>Just as navigation nodes on the > site tree can have aliases (and be accessed via > application.navid[navalias]) categories aliases work exactly the same way > through application.catid[catalias].</li><li>Tree relationships for both > navigation and categories are stored in the nested_tree_objects table of your > database. > </li><li>There is a 'factory' or singleton loaded into > application.factory.oTree (or you can load it separately: > farcry.farcry_core.packages.farcry.tree) that contains quite a few functions > that retrieve children, ancestors, siblings, etc. > </li></ul>Blair<br><br><div><span class="gmail_quote">On 9/8/06, <b > class="gmail_sendername"><a href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a></b> <<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED] > </a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px > solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: > 1ex;"><br>Hey Blair,<br><br>Using the objectid totally worked, thanks.<br><br> > Althought I just finishing having a talk with my manager and he > said<br>change the system over to the Farcry external links system, > particular<br>when I told him as you said that it can track hits > etc.<br><br>The main reason that we have intially decided to use our external > links > <br>was because our search form uses a category select and also as > a<br>subcategory select and as I am new to farcry I was not sure how > to<br>setup the comparision when someone uses the select statement.<br><br>In > other words say a user selects a category and then a subcategory, > <br>how do I match that up to a farcry category/subcategory (keyword) > so<br>that if they match only display links in those > categories,<br>subcategories etc. I suppose it would be by using the category > object?<br><br>Regards > <br><br><br><br>Blair McKenzie wrote:<br>> Are you using friendly urls? > For basic FarCry, as long as the link is in the<br>> form > /index.cfm?objectid=xxxx where xxxx is the objectid of the included<br>> > page, extra parameters in the query string shouldn't make any difference. > <br>><br>> On the note of using FarCry links, the advantage of that is > that since hits<br>> are logged for every type in the system (not just > html pages) you would have<br>> some stats automatically (although you > might want to develop your own > <br>> reports).<br>><br>> Blair<br>><br>> On 9/8/06, <a > href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> <<a > href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>> wrote: > <br>> ><br>> ><br>> > The first page displays a search form > to do a search for links based on<br>> > user input as well as a select > form element so that users can search on<br>> > pre-defined categories. > <br>> ><br>> > Based on their search a list of external links is > displayed which they<br>> > can then click on to go to that site. The > link has a parameter added<br>> > which is the id of the link so we can > keep stats on the number of > <br>> > clicks that the link has received, this is done when the user > clicks<br>> > the link which opens a page that updates the link stats > and then<br>> > re-directs them to the external url.<br>> > > <br>> > (NOTE: for a number of different > reasons, we have decided to use<br>> > our own external links system as > an included rather than use the farcry<br>> > link system, although we > will consider changing from our system to the > <br>> > farcry system in the future)<br>> ><br>> ><br>> > > Blair McKenzie wrote:<br>> > > Can you give us an example of > what you want to do?<br>> > ><br>> > > Blair<br>> > > > > <br>> > > On 9/8/06, <a href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a> <<a href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a>> wrote:<br>> > > ><br>> > > > > <br>> > > > Hi,<br>> > > ><br>> > > > I > have set up a include where the main file uses a cfswitch statement.<br>> > > > > This works fine for a form elements, but it does not work that > well > <br>> > > > when you are using parameterised drill down links as > we get a 404<br>> > > > error, how do we get around this?<br>> > > > ><br>> > > > Thanks David<br>> > > > > <br>> > > ><br>> > > > ><br>> > > > ><br>> > ><br>> > > > ------=_Part_8929_3702335.1157680072707<br>> > > Content-Type: > text/html; charset=ISO-8859-1<br>> > > X-Google-AttachSize: 771 > <br>> > ><br>> > > Can you give us an example of what you > want to<br>> > > do?<br><br>Blair<br><br><div><span > class="gmail_quote">On 9/8/06, <b<br>> > > class="gmail_sendername"><a href="mailto: > <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>"><br>> > > <a href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a></a></b> &lt;<br>> > > <a > href="mailto: > <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>"><a > href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a></a>&gt;<br>> > > wrote:</span><blockquote class="gmail_quote" > style="border-left: 1px solid > <br>> > rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: > 1ex;"><br><br>> > > Hi,<br><br>I have set > up a include where the main file uses a cfswitch<br>> > > statement.<br>This works fine for a form elements, but it does not work > that > <br>> > well<br>when you are using parameterised drill down links > as we get a 404<br>> > > <br>error, how do we get around > this?<br><br>Thanks<br>> > > David<br><br><br><br><br></blockquote></div><br> > <br>> > ><br>> > > > ------=_Part_8929_3702335.1157680072707--<br>> ><br>> ><br>> > > ><br>> ><br>><br>> > ------=_Part_9325_17842366.1157684049718<br>> Content-Type: text/html; > charset=ISO-8859-1 > <br>> X-Google-AttachSize: 3926<br>><br>> Are you using friendly > urls? For basic FarCry, as long as the link is in the form > /index.cfm?objectid=xxxx where xxxx is the objectid of the included page, > extra parameters in the query string shouldn't make any difference. > <br>> <br><br>On the note of using FarCry links, the advantage > of that is that since hits are logged for every type in the system (not just > html pages) you would have some stats automatically (although you might want > to develop your own reports). > <br>> <br><br>Blair<br><br><div><span > class="gmail_quote">On 9/8/06, <b > class="gmail_sendername"><a href="mailto:<a > href="mailto:[EMAIL PROTECTED]"> > [EMAIL PROTECTED]</a>"><a href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a></a></b> &lt;<a href="mailto:<a > href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED] > </a>"><a href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a><br>> </a>&gt; wrote:</span><blockquote > class="gmail_quote" style="border-left: 1px solid rgb(204, > 204, 204); margin: 0pt 0pt 0pt > 0.8ex; padding-left: 1ex;"><br>The first page displays a search > form to do a search for links based on<br>> <br>user input as well > as a select form element so that users can search on<br>pre-defined > categories.<br><br>Based on their search a list of external links > is displayed which they<br>can then click on to go to that site. The > link has a parameter added > <br>> <br>which is the id of the link so we can keep stats on the > number of<br>clicks that the link has received, this is done when the > user clicks<br>the link which opens a page that updates the link stats > and then<br>re-directs them to the external url. > <br>> <br><br>&nbsp;&nbsp;&nbsp;&nbsp;(NOTE: > for a number of different reasons, we have decided to use<br>our own > external links system as an included rather than use the farcry<br>link > system, although we will consider changing from our system to the > <br>> <br>farcry system in the > future)<br><br><br>Blair McKenzie wrote:<br>&gt; > Can you give us an example of what you want to > do?<br>&gt;<br>&gt; > Blair<br>&gt;<br>&gt; On 9/8/06, <a href="mailto: > <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>"><a > href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a><br>> </a> > &lt;<a href="mailto:<a href="mailto:[EMAIL PROTECTED]"> > [EMAIL PROTECTED]</a>"><a href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a></a>&gt; wrote:<br>&gt; > &gt;<br>&gt; &gt;<br>&gt; &gt; > Hi,<br>&gt; &gt;<br>&gt; &gt; I have set up a > include where the main file uses a cfswitch statement. > <br>> <br>&gt; &gt; This works fine for a form elements, but > it does not work that well<br>&gt; &gt; when you are using > parameterised drill down links as we get a 404<br>&gt; &gt; > error, how do we get around this?<br>&gt; &gt;<br> > <br>> &gt; &gt; Thanks David<br>&gt; > &gt;<br>&gt; &gt;<br>&gt; &gt; > &gt;<br>&gt; &gt;<br>&gt;<br>&gt; > ------=_Part_8929_3702335.1157680072707<br>&gt; Content-Type: > text/html; charset=ISO-8859-1<br>&gt; X-Google-AttachSize: > 771<br> > <br>> &gt;<br>&gt; Can you give us an example of what you > want to > do?&lt;br&gt;&lt;br&gt;Blair&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;span > class=&quot;gmail_quote&quot;&gt;On 9/8/06, &lt;b > class=&quot;gmail_sendername&quot;&gt;&lt;a > href=&quot;mailto: > <br>> <a href="mailto:<a href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a>"><a href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a></a>&quot;&gt;<a href="mailto: > <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>"><a > href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a></a>&lt;/a&gt;&lt;/b&gt; > &amp;lt;<br>&gt; &lt;a href=&quot;mailto:<a > href="mailto: > <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>"><br>> <a > href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a></a>&quot;&gt;<a href="mailto:<a > href="mailto:[EMAIL PROTECTED]"> > [EMAIL PROTECTED]</a>"><a href="mailto:[EMAIL PROTECTED]">[EMAIL > PROTECTED]</a></a>&lt;/a&gt;&amp;gt; > wrote:&lt;/span&gt;&lt;blockquote > class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid > rgb(204, 204, 204); margin: 0pt 0pt 0pt > <br>> 0.8ex; padding-left: > 1ex;&quot;&gt;&lt;br&gt;<br>&gt; > Hi,&lt;br&gt;&lt;br&gt;I have set up a include where the main > file uses a cfswitch statement.&lt;br&gt;This works fine for a form > elements, but it does not work that well&lt;br&gt;when you are using > parameterised drill down links as we get a 404 > <br>> <br>&gt; &lt;br&gt;error, how do we get around > this?&lt;br&gt;&lt;br&gt;Thanks > David&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;<br>&gt;<br>&gt; > ------=_Part_8929_3702335.1157680072707-- > <br>> <br><br><br><br>> > ------=_Part_9325_17842366.1157684049718--<br><br><br><br><br></blockquote></div><br> > > ------=_Part_9895_24678340.1157687718039-- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev -~----------~----~----~----~------~----~------~--~---
