Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

@ function on category name such as yahoo.

Quote Reply
@ function on category name such as yahoo.
Hi!!!!!!!!


How can modify @ mod such as yahoo categories?
ex, Schools@

Quote Reply
Re: @ function on category name such as yahoo. In reply to
This has been asked before, and I guess I just don't understand the real concept, because to me it would just seem to be putting an "@" in the subcategory.html file where the title is linked.

All the School@ is is a _related_ category.

Links put's the related categories in one section, and the "subcategories" in another. To try to mix those together is not easy in this release. You'd have to merge two subroutines and combine the output.

Some mods have been suggested, and you can search for them here, or maybe someone has gotten one to work and has how to do it.

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: @ function on category name such as yahoo. In reply to
I appreciate what you'd like, I tried the mod for Links V2.0 non-SQL but it didn't work for me.

Couldn't you achieve the same thing by putting the 'related' categories directly underneath the 'sub-categories' list?

Sorry for suggesting the obvious - if you're really keen to have this Sub-Cat@ feature, I suggest you search the Links 2.0 threads.


All the best
Shaun

Quote Reply
Re: @ function on category name such as yahoo. In reply to
I think that related categories mod and @ mod are different thing. and i have tried it with links 2.0, but how can modify the mod for Links SQL.
can you understand my concept?
is it modification of the same Links 2.0 as SQL?

Quote Reply
Re: @ function on category name such as yahoo. In reply to
I know exactly what you mean:

Related Categoires are created in a separate list from the sub-categories and are displayed 'outsite' of the main sub-categories section, effectively giving two sets of catgeory choices.

Whereas the @ sub-mod places the link within the actual sub-categories list and puts an @ at the end to denote that it links to a category which in not under the current main category tree structure and effectively allows 'sideways' category jumping.

Since no-one has replied with a mod for SQL I assume it hasn't been done yet. You can do it manually by adding an anchor in the catgeory description, e.g.; <a href="/Hobbies/Stamp_Collecting/">Stamps@</a> - but obviously they won't update dynamically, any adjustments would have to be done manually as well.


All the best
Shaun



Quote Reply
Re: @ function on category name such as yahoo. In reply to
As i remember there should be a thread about; if not try what was written before:
Find in build.cgi the both calls for get subcats and related cats; instead of passing them after another you must melt them, sort and give it out. Find it in sub build_category_pages

Robert

Quote Reply
Re: @ function on category name such as yahoo. In reply to
You would have to merge the two routines for building the related-categories and the sub-categories together. Rather than outputting them, you'd want to find all the related-categories, and change the name to an "name@" format, then sort the two lists of categories together, then output them to the &load_template command in that order, and put them into one variable something like $all_subcats.

I can see a potential problem with this, but it could be fixed by inserting another tag into the "related" records $rec->{is_related}=True for any category that was related, then sort them on name, then before sending to the &load_template command you checked to see if (is_related) then change_name, else, just send.



http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: @ function on category name such as yahoo. In reply to
i made this mod.. i made it for links 2.0 and links sql 1.1

it is in the links sql discussion.. search for yahoo @ or something..

Jerry Su
email@jerrysu.com
http://www.jerrysu.com/
Quote Reply
Re: @ function on category name such as yahoo. In reply to
Jerry Su exists a problem in mod for links 1.1 it only functions in version 1,1 and not in seeing 1,11. therefore qundo has a problem in the result of the fetching if it finds a category with nome@.

-=-=-=-=-=-=-=-=-
LinksSQL User
-=-=-=-=-=-=-=-=