You are here:  » Category hierarchy import

Active Forum Topics


Category hierarchy import

Submitted by wilkins on Tue, 2020-02-04 14:26 in

Hi David

For some time i have had only deliminator which has been ">", i have a new feed to include which has a different deliminator *|"

At present I use this

$importRecord["category"] = tapestry_normalise($importRecord["category"],">");

in includes/admin.php then explode in admin which has worked OK. Is there anyway to include more deliminators to this for different feeds.

Thanks

Brent

Submitted by support on Tue, 2020-02-04 14:29

Hi Brent,

You just need to add "|" to the list of characters in the second parameter to the tapestry_normalise() function e.g.

  $importRecord["category"] = tapestry_normalise($importRecord["category"],">|");

Cheers,
David.
--
PriceTapestry.com