Jump to content

To add 3 url-link field to same template


franciccio-ITALIANO
 Share

Recommended Posts

Hi, I read this: https://processwire.com/api/fieldtypes/repeaters/

I would like to put 3 same field link to same template, but in processwire I can put only 1.
The modules repeaters can help me?
I see the video and seem no, because I want add the SAME FIELD, not another o a group of another link.
 

Someone can help me?

 

 

Link to comment
Share on other sites

34 minutes ago, franciccio-ITALIANO said:

The modules repeaters can help me?

Yes...unless am misunderstanding you. 

If you have a repeater with these 3 fields: 

Email (email) Phone (text) Address (text). When editing the page, you can have these repeated as many times as you want, e.g.

  1. Email (email) Phone (text) Address (text)
  2. Email (email) Phone (text) Address (text)
  3. Email (email) Phone (text) Address (text)
  4. Email (email) Phone (text) Address (text)

Is that what you meant?

Link to comment
Share on other sites

8 minutes ago, kongondo said:

Yes...unless am misunderstanding you. 

If you have a repeater with these 3 fields: 

Email (email) Phone (text) Address (text). When editing the page, you can have these repeated as many times as you want, e.g.

  1. Email (email) Phone (text) Address (text)
  2. Email (email) Phone (text) Address (text)
  3. Email (email) Phone (text) Address (text)
  4. Email (email) Phone (text) Address (text)

Is that what you meant?

Oh, i checked it, and it's also possible to set the repeater to "min. and max. 3 Values"...
then it looks like this:

5a6f0d8c0ca42_2018-01-2913_02_47.thumb.png.6fd5bb3a333dd49b3b7f196aabd31c01.png

 

And the config:

5a6f0dc2f10ff_2018-01-2913_03_59.png.98f4c50b896b5119108f34e38f139b84.png

Link to comment
Share on other sites

Hi Zoeck, I seen that modules but I haven't 129€.

Hi, kongondo. I want repeat in a same template, 3 link-url-field, but this links changes page by page.
For example, in a page I put: link A, link B, link C.
In another page, with same first template, i put: link D, link G, link F.

With Processwire I can put in a page only 1 space-field link-url. Or I wrong? 

Link to comment
Share on other sites

  • Install the "Repeater" Module
  • Create a new Field: Type - Repeater
  • Change "Repeater item visibility in editor" to "Items always open"
  • In this Field, Add one field (your url field) in the details tab and change the value of "minimum/maximum number of items" to 3
  • Add the repeater field to your template ;) 

 

Now you have 3 identical fields in one template... this is the "free" version without the ProFields Module :)

  • Like 1
Link to comment
Share on other sites

It depends how you want to use these 3 links in your template(s). You could just as well use a textarea field, and put each URL on a new line. Or you could store links as pages, and use a page references with multiselect. The latter approach would be wise if a link can be used more than once, and has the advantage that you only need to change the link in once place if you come across a broken link sometime in the future.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...