0

Is possible to publish an entry belong to domain1 in domain2 simply adding a channel field to that entry? Something like:

Publish on

  • domain1
  • domain2
  • both domain1 and domain2

I short can I have only one entries' database and choose where to publish them?

Thanks

1 Answer 1

2

You could add a dropdown field (call it say, display_on) to your channel with the options Domain 1, Domain 2, Domain 1 + 2.

Then in your channel entries tag:

{exp:channel:entries channel="channel_name" search:display_on="=Domain 1" site="domain_1" dynamic="no"}

or

{exp:channel:entries channel="channel_name" search:display_on="=Domain 1|Domain 2" site="domain_1" dynamic="no"}

You could also achieve this using categories instead of the dropdown depending on your content.

{exp:channel:entries channel="channel_name" category="1" site="domain_1" dynamic="no"}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.