Gossamer Forum
Quote Reply
Category_click hook
Exist the predefined hook - category click,
or can I with hook tehnology change action made by category click action (it's in administration)?

Quote Reply
Re: Category_click hook In reply to
Hi,

Do you mean you want to change the action when a user clicks on a category?

By default, Links SQL uses static html pages, so it would not be possible.

If you are using 'page.cgi' and running under dynamic mode, you can override build_category hook.

Alternatively, you just may want to edit the subcategory.html template and change the link the user clicks on.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Category_click hook In reply to
Hi
By category_click I mean the procedure what is executed after administrator click on a category in the Category tree.

I want to add other objects to Links SQL, in addition to standart Links, and I will change browser_category admin template and I need to change the procedure what "parses this template" - this is done with category_click.
The question is - if I can use the category_click as a hook?
I think no.

Sorry about my English

Quote Reply
Re: Category_click hook In reply to
Hi,

No, there isn't an easy hook into the Browser unfortunately.

To alter a category click, you need to edit the browser.html template which is using javascript. If the category is already loaded, then no request to a .cgi is made. If the category is not loaded, then you need to look in Links/Browser.pm.

It's not easy adding things to the browser, so if you run into problems, don't hesitate to ask.

Cheers,

Alex

--
Gossamer Threads Inc.