- 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.
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="" [EMAIL PROTECTED]">
> > [EMAIL PROTECTED]</a></b> <
> > > <a href="" [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="" href="mailto:[EMAIL PROTECTED]"> [EMAIL PROTECTED]">[EMAIL PROTECTED]</a></b> <<a href="" href="mailto:[EMAIL PROTECTED]">[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="" [EMAIL PROTECTED]">[EMAIL PROTECTED]
> </a> <<a href="" href="mailto:[EMAIL PROTECTED]"> [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=""
> <a href="" href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>"><a href="" [EMAIL PROTECTED]">[EMAIL PROTECTED]</a></a></b> &lt;<br>> <a href="" href="" [EMAIL PROTECTED]">
> [EMAIL PROTECTED]</a>"><a href="" href="mailto:[EMAIL PROTECTED]"> [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--
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
