Create unique zoomifyContainer for zcomparisonpath
-
Hello there, how can I achieve the same uniqName in the case of zcomparisonpath?
For example I have multiple zoomify containers on the same page. For each I use a ‘null’ on file because I don’t use the direct .zif file, but instead I use a .xml file via zcomparisonpath (the .xml contain absolute path for 2 .zif files).
Everything works great with one container if I will use file=’null’. I mention that I modified your version, in order to use the zcomparisonpath function.
So, I’ve tried to change the following rows:
$filePathComp = $a['zcomparisonpath']; $fileNameComp = substr($filePathComp, strrpos($filePathComp, '/') + 1); $uniqNameComp = 'zoomifyContainer-' . strtolower(str_replace('.xml', '', $fileNameComp)); unset($a['zcomparisonpath']); $output = zoomify_container_js($filePathComp, $a, $uniqNameComp); $output .= "<div id='{$uniqNameComp}' class='zoomify-wrapper'></div>"; return $output;But doesn’t work.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘Create unique zoomifyContainer for zcomparisonpath’ is closed to new replies.