[quote]i.e. what does “undefined index” mean? Once we understand that we can solve the problem otherwise we are just randomly pulling switches in the hope it will fix the problem.
[right][post=“6506”]<{POST_SNAPBACK}>[/post][/right][/quote]
Undefined index means that the Matrix design cannot find the file specified by the filename after the mysource_files/ virtual location. Here’s how it should look in the Asset Map:
- Designs Folder (URL: [b]system.root.url/_designs[/b])
|
+ My Design (Design Asset)
+ styles.css
+ logo.gif
+ background.gif
The three files [i]must[/i] be uploaded as Associated Files of the Design asset (on the Details screen of the Design asset itself). Then, inside the parsefile, you would use them like so:
[html]<link rel="stylesheet" href="mysource_files/styles.css" />[/html]
or
[html]<img src="mysource_files/logo.gif" alt="Logo" />[/html]
Matrix will then find the file uploaded as an Associated File that matches the name. It will provide the correct URL at runtime, as Matrix's URLs change depending on the current status and permission of each asset.
Does that make more sense?