May 4, 2011

if xml_tag is A, create a new custom field with B | CyberSEO Pro | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
if xml_tag is A, create a new custom field with B
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
December 17, 2022
8:03 pm
Avatar
ninja321
Member
Members
Forum Posts: 84
Member Since:
August 26, 2013
sp_UserOfflineSmall Offline

I have a feed where one xml tag is the site name. Now I want to do the following:

if xml tag "sitename" is "XxX" (case sensitive) create a custom field "sitename" with "https://sponsorurl1.com" as content.
if xml tag "sitename" is "YyY" (case sensitive) create a custom field "sitename" with "https://sponsorurl2.com" as content.

... and so on

How can i do this?

December 17, 2022
9:10 pm
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

You want to implement a conditional execution of code. If this case you have to use PHP. E.g.:

Login to see the code

You can read more about it here: Login to see this link

December 17, 2022
9:27 pm
Avatar
ninja321
Member
Members
Forum Posts: 84
Member Since:
August 26, 2013
sp_UserOfflineSmall Offline

That works perfectly, thanks a lot!

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 68

Freedom: 61

Pandermos: 54

MediFormatica: 49

B8europe: 48

Member Stats:

Guest Posters: 337

Members: 2853

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1640

Posts: 8352

Newest Members:

wanmarkets, torontomark48, info.ckmedianetwork, contact.mybeautystar, samuelbodde, john.prush

Administrators: CyberSEO: 3947