renobird Posted November 12, 2012 Share Posted November 12, 2012 I have an images field, and each image needs to have an external URL associated with it. Currently I'm having the client add the URL in the description field, but that feels a bit clumsy. How do you all address this? Is there some other simple method that I'm just too dense to see today? Link to comment Share on other sites More sharing options...
apeisa Posted November 12, 2012 Share Posted November 12, 2012 Image/file fields aren't extendable by default, but you can create new extended image field. And repeater is of course one possibility... but if you don't need description field for anything else, then I think it is just fine to use it for the url. 1 Link to comment Share on other sites More sharing options...
Adam Kiss Posted November 12, 2012 Share Posted November 12, 2012 Agree with Antti --- Also testing ipb iphone app Link to comment Share on other sites More sharing options...
renobird Posted November 12, 2012 Author Share Posted November 12, 2012 Hi Antti, Thanks. They have dozens of "sponsor logos", and they change enough that the idea is to manage them locally and then upload a zip file. I'm not sure a repeater would work in that case. I don't need the description field for this — so it works — but I don't like the idea of having to use a mislabeled field. It just doesn't feel very Processwire like. Link to comment Share on other sites More sharing options...
diogo Posted November 13, 2012 Share Posted November 13, 2012 You can make a custom module for this. Just copy the image inputField and change the label. Or even better, leave the description for the alt, and add the url field to it. 1 Link to comment Share on other sites More sharing options...
ryan Posted November 14, 2012 Share Posted November 14, 2012 You can make a custom module for this. Just copy the image inputField and change the label. Or even better, leave the description for the alt, and add the url field to it. You could also change the label with Language Support. 1 Link to comment Share on other sites More sharing options...
renobird Posted November 14, 2012 Author Share Posted November 14, 2012 Thanks everyone, Turns out I need the description field for something else, so maybe the module route is the way to go. Link to comment Share on other sites More sharing options...
DaveP Posted November 14, 2012 Share Posted November 14, 2012 Could you not use pages? FWIW I'm starting to do this kind of thing more often - create a template with the fields you need but don't make a template file. Then you can use PW's selectors (with eg template=logo). We don't use 'leverage' for 'use' in the UK but you know what I mean. Link to comment Share on other sites More sharing options...
apeisa Posted November 14, 2012 Share Posted November 14, 2012 Uploading 20 images in single field: 2secs Creating 20 pages and adding one image per page: 5minutes 1 Link to comment Share on other sites More sharing options...
renobird Posted November 14, 2012 Author Share Posted November 14, 2012 DaveP, Your idea would work for sure, but there could be 40+ sponsor images — need speed on this one. Link to comment Share on other sites More sharing options...
DaveP Posted November 14, 2012 Share Posted November 14, 2012 Uploading 20 images in single field: 2secs ...and adding description and URL : + 4min 58 sec Link to comment Share on other sites More sharing options...
renobird Posted November 14, 2012 Author Share Posted November 14, 2012 haha. Maybe true, but that 4min 58 secs would get tacked on to the pages approach too — so it's up to 10:58. Link to comment Share on other sites More sharing options...
DaveP Posted November 14, 2012 Share Posted November 14, 2012 Since the images don't have to be in an image field, what about a logo repository (/site/templates/logos/) and three fields (image_url, description & url) on pages created by csv import module? Link to comment Share on other sites More sharing options...
renobird Posted November 14, 2012 Author Share Posted November 14, 2012 That could also work, but then I would loose visual drag/drop to sort. Sure, they could still reorder the pages, but that is a lot more tedious than just moving images around in an image field. P.S. I like where your head is at though, Dave. And, look at all the way things can be done with PW — so killer. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now