Quote from: dogslife at Jun 07, 2011, 07:46 AM
Yes, it’s just how do I put a TV in the EvoGallery?
Thanks
Steve
We ran into the same problem. In Revolution it’s easy to solve with MIGx but there isn’t such a thing for Evo. So we had our programmer modify the module a bit. Now I didn’t do this but from what I can see this was done:
For the file modules/evogallery/classes/management.class.inc.php he added:
$tpl = str_replace('[+url+]', $info['url'], $tpl);
To the cluster of str_replaces around line 119 (could vary depending on what version you are using).
Then he added this:
$filter .= "c.url LIKE '%" . $search . "%' OR ";
To the the cluster of like code at around 144 that begins with: // Get search filter values.
Then:
$fields['url'] = isset($_POST['url']) ? addslashes($_POST['url']) : '';
To the cluster of like code at around line 102 that has this comment: // Update image information
And then finally this:
"`url` varchar(1024) NOT NULL, " .
To the cluster of like code around line 452 that has this : global $modx;
Next, you need to modify modules/evogallery/templates/image_edit.html.tpl
Add this:
<label for="url">URL:</label> <div class="field"><input type="text" name="url" id="description" value="[+url+]" size="35"></div>
Just after this line (or wherever you want it to appear in the interface):
<label for="description">Description:</label> <div class="field"><textarea name="description" id="description" rows="5" cols="35">[+description+]</textarea></div>
For your templates, the placeholder is [+url+] as in this example:
<a href="[~[+url+]~]"><img src="[+images_dir+][+filename+]" alt='[+title+]' title="[+title+]" /></a>
You simply input the document ID into the URL box in the EvoGallery interface. You’ll see a URL field when you edit or update an image and then just enter the doc id, like 40 or 89, etc.
Of course backup everything before you try this as this is second hand information and I haven’t kept up with EvoGallery’s development since we are using Revo now.