Custom uSync exporter needed
# help-with-umbraco
p
Hello, im on a Umbraco 8 site where I use uSync. I need to create a custom uSync exporter (or ruleset, or whatver). So that I only export stuff from a certain node and it's descentants. Anyone know how this can be acheived?
ping @Kevin Jump
k
Hi for v8 you can do that with the config. https://docs.jumoo.co.uk/usync/8.x/content/contentHandler
oh
I'll check it out
I only want stuff from the node i've circled in orange to be exported by usync
k
yeah , it will be something like (although i would check was the 'path' value looks like in the usync config file for the item)
Copy code
xml
<Handler Alias="contentHandler" Enabled="true">
    <Add Key="Include" Value="/StartPage" />
    <Add Key="RulesOnExport" Value="true" />
</Handler>
p
would that also include media? or should i ducpliate a with alias="mediaHandler" aswell?
k
that will be for content I think it also does the same on Media. so you would need to do it on the mediaHandler config as well.
p
thank you so much Kevin
Im upgrading a site from umb 8 to 13 and your uSync package has been a great help!
Would the "Include" path be the same? like "/StartPage" ?
k
it would depend on the media folders you have, so the mediaHandler will look at them rather than the content bit. (if you just want to create a export of the start page and all the media that might be in it, you can use uSync.Exporter to do that - there is a 60 day trial when you install it, that might be all you need 🙂 )
p
my client won't really pay for anything
what i've been doing so far is exporting everything, then writing bash-scripts that goes through it all (there's A LOT) and moves files to certain folders
i used your PeopleEdition plugin to yank out the users, but the trial has expired now. So I need to work around that
they've really messed up the media folders so I guess im getting ALL the media
k
Well if you can do it quickly you could do it in the trial period 😉
p
am I able to have another trial?
i just assumed I was screwed now
k
Yeah if it's already expired then maybe not 😔
p
i'll wink my eye at you in that oh so very special way if you could unlock it again
The Content Handler thingy doesn't appear to be working by the way
it's exporting everything
it would be so helpful if I could just point out a content node id or somehting, the site is MASSIVE with like thousands of content nodes
and I just need a single piece
my entire section:
oh wait, i think it worked
it just needed to go through the entire site
k
Yes it will still scan everything, only export the stuff that matches
p
Question @Kevin Jump , if I get my client to pay up for a license. does that license cover both my old site, Umbraco 8, and the new one, Umbraco 13?
k
Hi, yes, it should (assuming its the same site just getting upgraded ?)
p
yeah
Im unsure what you mean though
when im upgrading i've built a new site, and just moved all the code and content form the old one
k
yeah - that's ok, really just saying if the v8 site was like for a totally diffrent thing / client than the v13 one it would be classes as diffrent, but upgrades are fine
p
ah no, it's the same thing, just upgrading from umb8 to umb13
i'll ask them again to pay up for a license then
they are really stingy
thanks again for being so available Kevin
k
no worries
2 Views