• Resolved mrushhcm

    (@mrushhcm)


    Is there a way to output the title of a website/page when using the Website (repeatable) custom field or a way to add a custom title for the website url? I’d like a user-friendly title to display, but retain the link for linking to it. Is this an option?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @mrushhcm

    You could use the each loop and create the HTML output yourself: https://docs.pods.io/displaying-pods/template-tags/each-loop-tag/

    Cheers, Jory

    Thread Starter mrushhcm

    (@mrushhcm)

    Thanks, but that would only work if I had the same title for all or made each link a separate post. I like the idea of being able to add several links in the post and having the ability to drag them to rearrange the order. I was just hoping to have an option similar to the file upload (repeatable) field, where it stores both the url and the title and can be easily rearranged. If there is nothing in place that does that, I guess I’ll have to use the WYSIWYG (repeatable) field, but having dozens of links in each post, I imagine it will be creating a lot of extra code in the background.

    Thread Starter mrushhcm

    (@mrushhcm)

    Actually, the Repeatable WYSIWYG field does not appear to work. Despite having Repeatable checked, I don’t see the option to add a new WYSIWYG editor in the post.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @mrushhcm

    Ah now I understand!

    In fact, I did create a Link field in the past but this was never included in Pods core because there was simply a lot more other things to do.
    I have absolutely no idea if it would support the new repeater options from Pods but you could try it out. https://github.com/JoryHogeveen/pods-link-field.
    See feature request/discussion here: https://github.com/pods-framework/pods/discussions/6613

    Unfortunately Pods doesn’t support a group field (subfield-group) so your only other (solid) option would be to define a fixed number of title and website fields.

    Cheers, Jory

    Thread Starter mrushhcm

    (@mrushhcm)

    Thank you for this! This is probably the 4th project I’ve had in the past couple of months where this type of feature would be useful. I’ve worked around it in the past with fixed fields, but in for my current project I could have anywhere from 5-50 links per CPT post, so I will give this a try this week and hopefully it will work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Website (repeatable) title’ is closed to new replies.