Page 1 of 1

Extra fields in XML?

Posted: 06 Jun 2014, 09:33
by eXceed
So I'm just starting to list jobs, and successfully displaying them on my site.

But I'm wondering how I go about adding 'salary' and 'duration' to the XML?

I tried messing about with the XML templates in /modules/xml/*.tpl and adding a field 'tag' to XmlUI.php.

But whatever I do it doesn't request the data, I added the line:
Code: Select all
case 'jobPay':
                            $pay = sprintf("%s",
                                $row['salary']
                            );
				
			    $txtJobPosting = XmlTemplate::replaceTemplateTags(
                                $tag,
                                $pay,
                                $txtJobPosting
                            );
                            break;
Any suggestions much appreciated? I went through all the include_once files to make sure it wasn't just something silly.

Anyway, appreciate any help/advice.

Re: Extra fields in XML?

Posted: 01 Aug 2018, 16:17
by RussH
Hey there, am only just now looking into something similar - did you solve adding in extra fields to the XML feed?

Re: Extra fields in XML?

Posted: 01 Aug 2018, 16:38
by eXceed
RussH wrote: 01 Aug 2018, 16:17 Hey there, am only just now looking into something similar - did you solve adding in extra fields to the XML feed?
Blast from the past indeed!

I never actually got this working, so would be interested in your thoughts on the matter.

I've since moved to another platform, so wish you luck in getting this working.

Sorry I can't be of more help!

Re: Extra fields in XML?

Posted: 01 Aug 2018, 16:54
by RussH
No worries, will post back with any successes / failures!

Re: Extra fields in XML?

Posted: 02 Aug 2018, 16:00
by RussH
Sorry to take many many years - and you've moved on now to another platform but for anyone else wanting to add in extra fields, just follow the example in this commit; https://github.com/opencats/OpenCATS/pu ... 521ca53e18

Re: Extra fields in XML?

Posted: 27 Aug 2018, 10:54
by Saaru
Can u tell me how to post xml feed in indeed

Re: Extra fields in XML?

Posted: 30 Aug 2018, 16:16
by RussH
Just give Indeed your XML feed URL, i.e. http://demo.opencats.org/index.php?m=xml