Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

Media Viewer

Hi to all,

I've updated Providence to 1.6 and Pawtucket to 2.0. I've made some customizations at pageHeader.php (example I've included a random banner on refresh)
<div id="banner-load" class="navbar-brand">
 <script type="text/javascript" ></script>
<script type='text/javascript' src="/pawtucket/assets/jquery/js/jquery.min.js"></script>
<script>
var images = ['ca_nav_logo300.png', 'Banner-MusA_1351x103_2.jpg', 'Banner-MusA_1351x103_3.jpg'];
 $('<img class="fadein" src="/pawtucket/themes/default/assets/pawtucket/graphics/' + images[Math.floor(Math.random() * images.length)] + '">').appendTo('#banner-load');
</script>
</div>

objectDetail.php (included some fields) and worked fine. However, when I tryed display media, the viewer doesn't showed the image neither the tab of the left side appears (please see the images). I've checked that the class wf was inactive... seems to me that it couldn't load some javascript. Could you help, please?
Cristina.

Comments

  • Is there a JavaScript error in the console of your browser?
  • Hi Stefan,

    Thank you for your replay. Yes, there is, as you can check (please see the image). Could you help, please?
    Cristina
  • Hi CristinaCortez,

    Did you copy assets.conf over from the Pawtucket2 default theme?  This is a configuration file that previously did not exist in version 1.6, but is required for your Pawtucket2 theme to function correctly.
  • Hi Sophie,

    Thank you for your answer. No, I did not copy assets.conf from Pawtucket2. However, I've discovered that if I insert the following code in the pageHeader.php it is possible to display the media viewer...(Please see the image).


    <script src='/assets/jquery/jquery-ui/jquery-ui-1.9.2.custom.min.js' type='text/javascript'></script>
    <link rel='stylesheet' href='/assets/jquery/jquery-ui/jquery-ui-1.9.2.custom.css' type='text/css' media='all'/>

    However, it shouldn't be necessary to do so, right?

    Cristina
Sign In or Register to comment.