Web paths for Designs

First off - not a permission problem! We have five domains on our test install, the first one is only for admin purposes while the rest are test websites:


matrixdev.

citdemo.


staffdemo.

soldemo.


plasmademo.



when i create a design for citdemo.
i have noticed all the design files including the css, site-wide images etc are published from the matrixdev.* domain. is there anyway to force matrix to deliver these design files from the domain im using (citdemo.*)?



For instance - on the www.squiz.net site - all your design/css files are coming from matrix.squiz.net - how would you force them to come from www.squiz.net without hardcoding into the parse file?


Yup -- move the design asset out from under the Designs folder (that has all the URLs) and link it directly under the Citdemo site, so it only gets citdemo.* URLs.

The Designs folder is just for convenience: there is no actual requirement to store designs under this location. Once you start getting multiple URLs in the system, it makes more sense to either link your Designs under each Site asset, or even create a Site asset for each set of Designs. I do this when a site may have multiple URLs, not all of which are publicly accessible. I create a Site asset for the Designs that only has publicly accessible URLs applied. That way, I know at least the design assets will be OK. :)

thanks avi - clear as always :slight_smile:


one other quickie … im running 3.18.2 and just tried my first custom form page and recieved this error:


    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of call_user_func(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /usr/local/web/mysource_matrix_dev/packages/cms/form/form_email/form_email_edit_fns.inc on line 2034


looked up my php.ini file (apache2 not cli version) and found this section dealing with allow_call_time_pass_reference:

    ; Whether to enable the ability to force arguments to be passed by reference
    ; at function call time.  This method is deprecated and is likely to be
    ; unsupported in future versions of PHP/Zend.  The encouraged method of
    ; specifying which arguments should be passed by reference is in the function
    ; declaration.  You're encouraged to try and turn this option Off and make
    ; sure your scripts work properly with it in order to ensure they will work
    ; with future versions of the language (you will receive a warning each time
    ; you use this feature, and the argument will be passed by value instead of by
    ; reference).
    allow_call_time_pass_reference = Off


worried about switching it on if its going to be depreciated soon - thoughts?

bruce

Yeah, turn it on so it stops bugging you. We'll be changing our code to get around this new limitation in a newer version, but we just have to find a way that is actually going to work with the dynamic nature of those function calls.