Gossamer Forum
Home : Products : Gossamer Links : Discussions :

how to display the top 10 for each main category

(Page 2 of 2)
> >
Quote Reply
Re: [dzn] how to display the top 10 for each main category In reply to
Hi dzn

You can have all your categories pages display the new links in that particular category using:

<%newlinks ($ID)%> in your category.html template.

($ID) Will pick up the current category and number being displayed and list the new links in that category.

Is this what you were looking for ?





Regards

minesite

Last edited by:

minesite: Apr 25, 2002, 5:33 PM
Quote Reply
Re: [minesite] how to display the top 10 for each main category In reply to
Hi,

Actually what i'm looking for is a way to display new links from several categories, with ID's 16, 34 and 67, on a category page or even on the homepage.
Quote Reply
Re: [dzn] how to display the top 10 for each main category In reply to
You could try:

<%newlinks (16)%>

<%newlinks (34)%>

etc

See Alex's post above, I have not tried it but it should work.

Regards

minesite
Quote Reply
Re: [minesite] how to display the top 10 for each main category In reply to
why I type in <%newlinks (1%> in category.html it still shows output same as <%newlinks%>

How can I get a output for new links within specific directory only?

Vishal
-------------------------------------------------------
Quote Reply
Re: [minesite] how to display the top 10 for each main category In reply to
I am using your global, and I haven't found any trouble yet.

One question, how does it need to be modified so that it shows new links in say category 1, and all it's subcats?

Thank you for your time.
Quote Reply
Re: [minesite] how to display the top 10 for each main category In reply to
Could you please give this a look. I think it will be a great global.Thank you.
Quote Reply
Re: [minesite] how to display the top 10 for each main category In reply to
In Reply To:
You could try:

<%newlinks (16)%>

<%newlinks (34)%>

etc

See Alex's post above, I have not tried it but it should work.

How can I show New Links within of only specific parent category.

For example Below is the path.

Home Page
Root 1
Root 2
Root 3

Root 1
_x-Sub-root 1
____a Sub-root 1
____a Sub-root 2
____a Sub-root 3

_x-Sub-root 2
____b Sub-root 1
____b Sub-root 2
____b Sub-root 3

_x-Sub-root 3
____c Sub-root 1
____c Sub-root 2
____c Sub-root 3

Root 2
-- Similer structure at Root 1 but diff names

Root 3
-- Similer structure at Root 1 but diff names

=======
Now how can I show *all the new links* with all categories below Root 1 on Root 1 Page [domain.com/root_1/] How can I do that?

Cuz the global above will not work as, it only shows new links of *that* particual categorya not categories below it.

Please help.

Thank you.

Vishal
-------------------------------------------------------
Quote Reply
Re: [TRPN] how to display the top 10 for each main category In reply to
~~ BUMP ~~

Can anyone please help?

Vishal
-------------------------------------------------------
Quote Reply
Re: [TRPN] how to display the top 10 for each main category In reply to
I posted a reply that probably got eaten by the network, but the gist is that I can't think of an efficient way of doing this, and the most efficient would probably to build a table during the build, or repair process, and use that table to serve the links.

You could run this periodically depending on whether you have a static or dynamic site.

The advantage would be you only build this once, not on every request.

The process needs to get all the subcategories, then all the links, then sift them, etc. It's a complicated process until you can group all the categories into one "IN" type structure.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] how to display the top 10 for each main category In reply to
Ah, i'll like to know if anyone found the solutions to display new links of all the subcats udner their parent category?
Quote Reply
Re: [xpert] how to display the top 10 for each main category In reply to
Hi pugdog,

I was wondering if there is anyway, you can reply again, on how this can be done.

Thanks for the help.

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] how to display the top 10 for each main category In reply to
I think this maybe similar to what you want:

http://www.gossamer-threads.com/...i?post=217224#217224

Hope that helps.

Laura.


The UK High Street
> >