Show if design area by IP address or paint layout


(tina ye) #1

Hi everyone,

 

We have a number of LCD TV screens located across all five campuses to display different campus based information (all info screens are 1015x760 pixels images, some images are generic across all campuses). I have been tasked to develop a matrix-only solution for this system rather than the stand-alone publishing script we have at the moment. I have got the blueimp Gallery working but my biggest issue is how to use the Show-if user IP condition design area to determine what screens are displayed where. I tried the following code in design file but it doesn't work. Can someone shed a light for me? Should I use paint layout instead?

      <MySource_area id_name="body" design_area="body" />
      <MySource_AREA id_name="campus_ip" design_area="show_if">
       <MySource_SET name="condition" value="xxx.xx.xx.xx" />
       <MySource_THEN><a href="http://xxxxx.xxxxx.xxx.edu.au/listings/reid_a_block">Reid A Block</a></MySource_THEN>
       <MySource_SET name="condition" value="xxx.xx.xx.xxx" />
       <MySource_THEN><a href="http://xxxxx.xxxxxx.xxx.edu.au/blueimptest">Bruce H Block</a></MySource_THEN>
       <MySource_SET name="condition" value="xxx.xx.xx.xxx" />
       <MySource_THEN><a href="http://xxxxx.xxxxxx.xxx.edu.au/blueimptest2">Bruce L Block</a></MySource_THEN>
      </MySource_AREA>

Thanks in advance.

 

Tina


(Nic Hubbard) #2

I would create a customization and customize that design area. Much easier to make changes in that interface than code in the parse file.

 

Also, are you using Squid or a similar proxy?


(tina ye) #3

Thanks Nic for getting back to me, much appreciated. Design customisation is what I tried before but had no luck so far. It didn't let me change the subnet mask. I had a "show_if" customised design area called "campus_ip". In "campus_ip" I have listed all IP addresses of the PCs that connect to the LCD TVs. I thought to make it work I need to add something in the design parse file (see the code in the first thread). I have now kind of given up the customisation approach and am trying the asset listing and search solution.

 

I also created a metadata schema for all images/info screens allowing staff to choose which campus the images should be showing. What I am trying now is to have link value in the asset listing for the generic info screens across all campus and a metadata search page to list campus-specific screens.