Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Copy Categories

Quote Reply
Copy Categories
I want all of omy categories to have similar category layouts

ie. Perl has Scripts and Documentation etc. and I want to copy the category definition over to under PHP too. But I don't want to re-type them all again.

Is there anyway to copy of the categories under another category

Quote Reply
Re: Copy Categories In reply to
Edit the subcategory.html template file.

Regards,

Eliot Lee

Quote Reply
Re: Copy Categories In reply to
If what I'm thinking you are asking, there is no easy way.

But, if you have the new version of MySQLMAN installed, you can "DUMP" the Category table to a text file.

If you have a good text editor, you can then cut out the lines to "INSERT" the records for the ../PERL/... categories, and change the "PERL" to "PHP".

You will need to edit the ID # manually, to get unique numbers. (I think if you try to insert a record with an ID number that already exists, it will assign the next available number, but I wouldn't count on it.)

If you do that, you'll end up with all your categories copied to a new tree "/PHP/" with everything else intact.

Good luck!


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