0

Is there a plugin or module which shows content depending on the site I am currently on? For example:

  • If I am on site with alias site-1 I want picture images/pictureXY.jpg to be shown by the plugin/module.
  • If I am on site with alias site-2 I want text Hello there to be shown by the plugin/module.

Is there something similar out there? Or do I have to write one from scratch? It has to be a plugin/module because I am using T3 framework and want to enable/disable it depending on screen size.

closed as unclear what you're asking by FFrewin, Lodder, GDP, Farahmand, Toni Marie Dec 5 '14 at 21:11

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    It doesn't make sense to me your question. What is the relationships between the sites? – FFrewin Dec 4 '14 at 11:29
  • I think the same Site get loaded on 2 different domains and it should display partly different content on each domain. But I could be wrong. – Harald Leithner Dec 5 '14 at 16:38
1

I think you are looking for a way to install one extension in several sites, and streamline some customization.

This plugin or module would be only for you to show fixed content under certain specific conditions:

  • site-1 -> images/pictureXY.jpg
  • site-2 -> Hello there

It is certainly possible, but you have to create it to hardcode the customizations according the site.

0

You would probably have to make something that specific yourself. Basically, you can make a plugin or module that checks the current domain with an if-else statement:

if(strpos( $_SERVER['HTTP_HOST'], 'site1.com') == true){
    echo '<img src="images/pictureXY.jpg">';
} elseif (strpos( $_SERVER['HTTP_HOST'], 'site2.com') == true) {
    echo 'Hello there';
}

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