×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Force migrated categories under existing category

Force migrated categories under existing category 10 years 2 months ago #27835

  • Sam Lewis
  • Sam Lewis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Trying to force a square peg into a round hole right now.

Working with existing Joomla categories/articles. Trying to bring some WP posts/categories/tags into the site.

Is there any way to force the migrated categories to be underneath an existing category?
I'm perfectly capable of working with the php just haven't found the right function to modify.
Tried the /components/com_cmigrator/libarary/migrators/com_content/com_content.php insertCategory function by hard coding my "parent" id but that didn't work.

Any help would be great.


EDIT:::: Never mind found where I could force using " $table->setLocation(13, 'last-child');"

Might be nice to add as a configuration option - set parent category for migrated categories.



Sam

Force migrated categories under existing category 10 years 2 months ago #27839

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Why don't you just use the batch operation on the categories in the joomla backend? you can select all the categories that you want to move and move them where you want them to be :)

Force migrated categories under existing category 10 years 2 months ago #27840

  • Sam Lewis
  • Sam Lewis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
That would be easy enough except I'm tasked with migrating a wordpress blog to an existing Joomla site with thousands of existing articles and over a hundred categories.

Thanks.

Sam
  • Page:
  • 1
Time to create page: 0.106 seconds