Gossamer Forum
Home : Products : Links 2.0 : Customization :

Modification of display subcategories in mainpage, need serious help please

Quote Reply
Modification of display subcategories in mainpage, need serious help please
I need help to show tree sub categories at main page.

i.e:
Category 01
Sub01 / Sub 02 / Sub 03

it's possibile?


------------------
[]'s

Lucas Saud - #19815087



Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Hi Alex,

I get a copy of links 2b4 but y have a question.

I use templates or site_html??



------------------
[]'s

Lucas Saud - #19815087





Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Sure, just put the appropriate html in the category description. i.e. in Category_01 just add:

<a href="Sub01">Sub01</a> / <a href="Sub02">Sub02</a> / <a href="Sub03">Sub03</a>

Hope that helps,

Alex
Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Alex,

Quote:
Sure, just put the appropriate html in the category description. i.e. in Category_01 just add:

<a href="Sub01">Sub01</a> / <a href="Sub02">Sub02</a> / <a href="Sub03">Sub03</a>

This works, as you say, but it does create a problem if you need to go in and modify the main category. The description field comes up with only part of what you typed before in it. The same problem exists if you put html in the header or footer fields. The only field where html works correctly is in the description field of a link.

Try adding a description for a category and putting the subcategories as you said, then go back and try to modify that description. You end up having to retype the whole thing every time. This is true in v1.1 and v2beta.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/


Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Bobsie,

Quote:
I have 80 categories and 200 sub categories. I need to show 27 categories in one colun on left page, and all other categories i need to put in one table. It's possibile?



------------------
[]'s

Lucas Saud - #19815087





Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Lucas,

Take a look at my web site (URL is below) and let me know if it is similar to what you are talking about. Anything is possible, I guess.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/


Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Bobsie,

I create a new template to my site, but i need a good version of links.

you use version 1.1??

I need the links 1.1 and this mods ( all installed ):
- hardcode;
- category search;
- non english especial caracthers in category name;

you have this??

Tanks.

------------------
[]'s

Lucas Saud - #19815087





Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
 
Quote:
This works, as you say, but it does create a problem if you need to go in and modify the main category. The
description field comes up with only part of what you typed before in it. The same problem exists if you put html
in the header or footer fields. The only field where html works correctly is in the description field of a link.

Hmm, good point! The problem lies with the HTML of course. When you do the tag:

<input name="Description" value="$rec{'Description'}">

If $rec{'Description'} contains a " mark in it, your in for trouble. Does anyone know how to escape it in all browsers? I tried using double "" and also backslashes, but neither worked. Short term fix, use single quotes ' or none at all if possible.

Cheers,

Alex
Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Lucas,

Yes, I currently use Links 1.1 but will be converting to v2 when the final release comes out. However, I do not have the mods installed that you need (in either version).

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/


Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Tanks Bobsie.

I waiting for the final release 2.0.

------------------
[]'s

Lucas Saud - #19815087





Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Tanks Alex.

Alex you have a perl script type jump.cgi for use in categories?

ex: category.cgi?ID=1 , show The category id number one.

you have this??

------------------
[]'s

Lucas Saud - #19815087





Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Alex,

Quote:
Hmm, good point! The problem lies with the HTML of course. When you do the tag:

<input name="Description" value="$rec{'Description'}">

If $rec{'Description'} contains a " mark in it, your in for trouble. Does anyone know how to escape it in
all browsers? I tried using double "" and also backslashes, but neither worked. Short term fix, use
single quotes ' or none at all if possible.

Actually, I don't seem to have a problem with html in the description field at all. I used to use "&" followed by "quot;" (I had to show it this way because UBB converts it to " - I thought HTML was off?) when I wanted a double quote used, but when I saved the record, it was always converted to the double quote. If I went back to modify it, it still was a double quote and never seemed to cause any problems. Now I just use the double quote itself and have experienced no problems.

The same thing happens, by the way, if I use "& #174; or "& copy;" (less the spaces) for the Registered or Copyright symbols (in any field, not just the description). They appear as the appropriate symbol when the record is saved, but as a graphic line/block when modifying the record.

Maybe if the original text (& quot;, & #174;, & copy;, etc.) was not converted, it might clear up some of the problems.

For the double quote, did you try using the "& #34" (less the space)? When I had problems with URLs that contained the pipe symbol and other strange characters, I found that using the equivalent &#xxx value for the character in the URL kept links from hosing the URL. It might work as well in the other record fields.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/


[This message has been edited by Bobsie (edited January 15, 1999).]
Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Hye to all!

All I wanna say: I do the same way, adding the links for the subcategories to the description with HTML.

Everything seems to work ok. Haven't some problems until yet.

But i try to find out a good way to add this links automatically.

cu
look at the url below with /german or /english

------------------
www.ford-network.at

Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Hi Alex,

I've Question maybe one of you can help me out.

We all know that our Home page of Links
script, lets us have category names in two columns, and our sub categories too.

Now here is my question?

Let's give a "Example"

Lets say i wanted my homepage to have category names in one columns, and my sub categories names in two colums.

Like this........

Home Links Page.......

Links-(67)
Business-(79)

> And now our Sub categories Page.

Advertising-(89) Marketing-(78)

Now can this be done? If so how?
If you like a better example just take
look at www.cgi-resources.com
home page. Then take look at there sub catorgory at www.cgi-resources.com/Programs_and_Scripts/Perl/ .

And you know what i'm talk about....

Chris


[This message has been edited by Christopher (edited January 16, 1999).]
Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Hi Christpher,

in site_html.pl copy the complete code from
sub site_html_print_cat {
as
sub site_html_print_cat2

Design this part as you like it for your homepage.

Open nph-build.cgi and look for:

open (HOME, ">$build_root_path/$build_index") or &cgierr ("unable to open home page: $build_root_path/$build_index. Reason: $!");

in the following line change:
$category = &site_html_print_cat (@rootcat) if ($#rootcat >= 0);
to:
$category = &site_html_print_cat2 (@rootcat) if ($#rootcat >= 0);

Thats all

Regards

Lothar Jung


------------------
Quote Reply
Re: Modification of display subcategories in mainpage, need serious help please In reply to
Lothar,

I was following along in your mod description and somehow I got lost.

If you change and make a new sub with the 'cat2' in it, then just make a change to the build line to reflect the 'cat2', where does the change take place to build a seperate cat page? Wink

Just wondering, i'd like to swing that but I am lost. Smile



------------------
MRaburn
Raburn Network Solutions
www.raburn.net

My grammar was aweful... Smile

[This message has been edited by MRaburn (edited January 19, 1999).]