Jump to content

Galaxy

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by Galaxy

  1. what I need to do is add <a href="javascript:pixlr.overlay.show({image:'path/to/image.jpg', title:'image name'});"><img src="path/to/image.jpg" width="250" height="150" title="Edit in pixlr" /></a> around any images that are uploaded. So when you have an image in the admin side it can be edited via pixlr. I have successfully loaded the required scripts that this requires but need to know where to add the href wrapper (see above) if I can call it that.
  2. Galaxy

    Tabs

    You beauty diogo! Everything has gone as planned. As I said, Processwire so intuative and easy to use... I have new insight into the repeater field now too. Will use those in a different light. Thanks for your help Wanze and diogo - both invaluable... Regards
  3. Galaxy

    Tabs

    Thanks diogo. I'm putting my trust in you and moving forward on this.... Someone stop me if you think it'll end in tears... I'll keep you posted. I can't believe how intuative ProcessWire is! Loving it, after all these years of bloated CMS/Blog platforms...
  4. Galaxy

    Tabs

    No, I'm not sure. I'm open to suggestions on how to display the output of these fields in the best way. Can you point me in the right direction? As I said, you're talking to a complete novice... I've got the repeaters displaying good as per your suggestion though.
  5. Galaxy

    Tabs

    I am very new to ProcessWire so please excuse my ignorance, but I'd like an opinion on the best way to set up tabbed info that displays on each page for a directory type website. I have successfully created blocks of repeater fields so each page (a child page of "Organisations" which is a single Organisation) can have details such as contact person, physical address, postal address, attached files etc. The fields work nicely on the admin side of the site but I am at a loss on how to get these to display through a template. I'm ashamed to say the best I've done so far is list all the repeater fileds using: foreach($page->fields as $field) echo $field->name . ", "; In my case it displays the actual repeater fieldset names like so: "applicant_details, primary_contact, secondary_contact, address, postal," I'd like each of these to be a tab with relevant fields in each eg. Applicant Details (tab 1) - Organisation name - Sector Primary Contact (tab 2) - First name - Lastname - Email - Phone Secondary Contact (tab 3) - First name - Lastname - Email - Phone Address (tab 4) - Address 1 - Address 2 - Town/City - Postcode Postal Address (tab 5) - Postal address 1 - Postal address 2 - Town/City - Postcode Note: I have set up all these fields within repeater sets. I just can't get them to display through the template.
×
×
  • Create New...