Jump to content


Photo

Templates Select (FieldtypeTemplates)

Module

  • Please log in to reply
5 replies to this topic

#1 Hani

Hani

    Full Member

  • Members
  • PipPipPip
  • 60 posts
  • 11

  • LocationSanta Barbara, CA

Posted 17 August 2012 - 07:49 PM

I needed a field that would allow me to select one or more templates, very much like the Page Select. So I created a module that does just that! I based it off of Ryan's FieldtypeModules because the functionality is quite similar. You can also define which templates are selectable by the asmselect field. Hope this helps someone that wants to do the same thing!

Attached File  FieldtypeTemplates.module   4.69K   138 downloads

#2 ryan

ryan

    Hero Member

  • Administrators
  • 5,965 posts
  • 3375

  • LocationAtlanta, GA

Posted 18 August 2012 - 08:14 AM

Thanks for posting- Looks good. We don't have anything like this yet, so I'm sure this'll come in handy!

#3 Pete

Pete

    Administrator

  • Administrators
  • 1,802 posts
  • 725

  • LocationChester, England

Posted 18 August 2012 - 09:25 AM

I think I hard-coded this into a module I wrote a while back so having an actual fieldtype for it is definitely handy :)

#4 Hani

Hani

    Full Member

  • Members
  • PipPipPip
  • 60 posts
  • 11

  • LocationSanta Barbara, CA

Posted 19 August 2012 - 07:35 PM

You're welcome! Most thanks goes to you, Ryan, since I based this off your Modules Select plugin.

#5 Raul

Raul

    Distinguished Member

  • Members
  • PipPip
  • 27 posts
  • 3

  • LocationOffenbach, Germany

Posted 09 April 2013 - 11:09 AM

Hi,

 

 

I have used this Fieldtype but I have noticed a strange behaviour.

 

Also.

The field was used in a page and I have selected three values.

They are saved correct.
Now I delete two values and they are deleted and the page saved correctly.

When I try to delete the last value and to save the page, the last value is not deleted.

 

Where can be the reason?
Is there any limitation with this module?

 

Thanks in advance

Raul


Software Developer
ETECTURE GmbH

#6 Hani

Hani

    Full Member

  • Members
  • PipPipPip
  • 60 posts
  • 11

  • LocationSanta Barbara, CA

Posted 09 April 2013 - 11:58 AM

That's very strange behavior.  I haven't seen that before.  There shouldn't be any limitation since this is a simple module that extends a core module.

 

What version of ProcessWire are you using? I'm not sure if anything changed between 2.2 and 2.3 that would have resulted in this anomaly.







Also tagged with one or more of these keywords: Module

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users