Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Copy a subcategory to different category

Quote Reply
Copy a subcategory to different category
OK I have given up on the table for featured links. Now I have a new question: In the regional section of my database I will have the same subcategories in multiple categories. I would like to build the subcategories once and copy them to the appropriate categories, as opposed to building each one separate. I don't see a copy feature in the category (like there is with individual links). Any Ideas would be much appreciated.

Thanks again,

Lennie
Quote Reply
Re: [lennie] Copy a subcategory to different category In reply to
I need the same exact thing. I didn't do it yet, but I kind have an idea to do it.

Download the categories you need to put in each region, put them in different database, then change the id's ,say add 1000 to each, and change the parent category id. then put back to the main database, you need to do this for each region :) its not easy. There might an easier way.
Quote Reply
Re: [lennie] Copy a subcategory to different category In reply to
Yeah, this would be very useful. However I would like to suggest a more complete solution.

There should be Copy link in Admin/Browse/Category browser.
Should be placed near Edit | Delete | Move links, so should be look like this:
| Edit | Delete | Move | Copy |

Clicking on the Copy link, should display a page with text & options
(the [x][ ] are checkboxes, (O)( ) are radiobuttons):
Code:
Select what to Copy :

( ) This Category and Subcategories
[ ] And Links in this category (Unchecked by default)
[ ] And Links in all subcategories below (Each link will be copied
to the matching subcategory with same name. If a category is missing,
it will be created). Unchecked by default.


( ) Only Subcategories of this category
[x] And Links in all subcategories below (Each link will be copied
to the matching subcategory with same name. If a category is missing,
it will be created). Checked by default.


( ) Only this category (without subcategories)
[x] And Links in this category (Checked by default)

( ) Only Links in this Category
[ ] And Links in all subcategories below (all links will be merged
into target category without subcategories). Unchecked by default.


[ Copy ] [ Cancel ]
No radio button is checked by default.

After Copy is clicked, the following text is displayed:
"Now select & click the destination category on the left category tree"
After clicking the copy is done.

The Move feature could have similar features, to move just links, subcategories, or any combination, like in the suggestion above.

Alex, Staff, think about this suggestion. This is worked out correctly for you.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Copy a subcategory to different category In reply to
Great Suggestion Webmaster. I gave up and hand built the 8 identical categories in each of the 50 states (including DC and Puerto Rico). Couldn't wait. . . .
Quote Reply
Re: [lennie] Copy a subcategory to different category In reply to
Lennie,

I'm sure you are not the only one, who would need such feature.
This time you did manually, this is ok.
But next time when you will need, would be useful to have, wouldn't?
And others would also need this feature.

I hope the Staff will read that suggestion, and will consider to implement this feature as I suggested.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Copy a subcategory to different category In reply to
Hi,

Good suggestion! We'll look at adding this in.

(of course the next step is to make the category structure mirrored, not just copied -- i.e. changing it once updates it everywhere, that may be more difficult).

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Copy a subcategory to different category In reply to
Alex,

Quote:
Good suggestion! We'll look at adding this in.
Thanks Alex. Wink You know, I'm professional beta tester. Cool

Mirroring should not be so difficult as you say.
Remember the solution how the Alternate Categories was solved in Links 2.0?
It should be based on the same idea.

Base category name: Accessories
ID: 32

Alternate category1: Computer accessories
ID: 67
AltID: 32

Alternate category2: Hardware accessories
ID: 68
AltID: 32

The Solution for Category Mirroring:
First, We should add a new column named AltID.

The algorithm Logic:
1) We need to display category #68. It is a mirrored category.
CatID: 68
AltID: 32

2) If we have a value in AltID, then take category data based on AltID, otherwise we take data based on CatID.

3) We display the result as usual.

The algorithm is that simple.
Alex, waiting your comments...

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Copy a subcategory to different category In reply to
Yes, I just realised I posted a request for pretty much the same thing..... I did read this post, but just forgot it was already discussed.... so many topics!!

Shocked

I'd REALLY like to see this feature though.... copying categories/subcategories which generated a new id but kept the title, description, keywords... would save a lot of typing, and gaurantee each subcategory had the same content.
Quote Reply
Re: [Alex] Copy a subcategory to different category In reply to
Was this ever implemented? I can't see how to do it.
Quote Reply
Re: [Alex] Copy a subcategory to different category In reply to
Was this forgotten?

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...