Jump to content

Search the Community

Showing results for tags 'Field'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hello. I´d like to have an input field where the user can select one of a few choices of currencies. I there any module that can do this? thanks
  2. Hi all, I'm not sure how to best store multiple timestamps in a field for a page. As there can be 100 or more timestamps attached to the page, I need to find the most efficient way to save those timestamps in a field and later search through that field. My use case: I have pages for advertisements with start date, end date and start time, end time and frequency of publishing (every 15, 30, 60 minutes). From that data I calculate timestamps at which the advertisement will be available for viewing. One advertisement can have 100 or more timestamps attached to it. Example: title of page: Advertisement1 field "ad_publish" contains timestamps: 1413136860,1413136920,1413136980,1413137040,1413137100...(can be a lot) Now what would be the best way of storing these multiple timestamps. IOW: what field type to use? I need to take into consideration that the field needs to be searchable with a *= selector like $publishedAds = $pages->find("template=advertisement, ad_publish*={$timestamp}") 2 options that I can think of for my "ad_publish" field: 1. textarea field, store timestamps as comma delimited values. 2. page field: store each timestamp as a page What would be more efficient and faster when it comes to searching through hundreds of timestamps? I'm sure some of you had similar use cases in their projects and I would be happy if you could share your experience or give me pointers on how to best approach this. Thank you.
  3. Hi folks, Firstly... what an incredible CMS. Just been a breath of fresh air and really finding it so powerful. So thanks! Just a quick question. I read on the Inputfield Dependencies docs that OR selectors | aren't supported here yet. This is fine... but is there an alternative or another way to do the example below? I have a Pagefield set up for a 'Members' section, to choose whether the member is a Chair or Vice Chair when adding each children page to this section. If they select 'Chair' OR 'Vice Chair' from the dropdown, I would like a specific field (email address) to be shown. I have done some input dependencies on other fields/templates (show a closing_date field if the news type is 'Job') etc. but have only ever had one dependency to declare. Now I have two, which I know you can separate with a comma, but essentially, it needs to be if either 'Chair' or 'Vice Chair' is selected from the Pagefield dropdown. chair_vice=1062|chair_vice=1063 chair_vice=1062|1063 You see what I mean? Any clues/tips? Or would I need to create two fields here? An email field for Chair and an email field for Vice? Thanks in advance, R
  4. Hello there! In my new project i need to populate field with current user information (field), which are inserted on user registration on "Users" in admin panel of PW. I add more fields in system template "User" which contain that information. The question is: how to auto-populate field with that information (field) of current user which create new page. That is in admin panel in PW, in template without file. Any advice are welcome! Thanks in advance!
  5. Hi, I have add page field with categories to `user` template. In the processwire admin we can sort the page field items by dragging and moving the items. I would like to bring the same functionality to the front-end, so users can have a functionality to drag and drop. This can be saved via ajax rather than a save button. Would be helpful if anyone have done something like this. Thank you
  6. I may be missing something! How can I sort the order of items in a page field? I am pulling title data based on a template that is being used in a hierarchy, consequently the order is not optimal. Any ideas?
  7. Hi Community I have just combined Foundation+ProcessWire (BIG THX to Joss ) and now I would like to use the fields as code-snippet-container from Zurb Foundation Framework. Is there any way to do this? Thanks!
  8. Hi, I've discovered PW recently and I'm starting to get the hang of it. I'm used to build artist portfolios with the Indexhibit2 CMS and I was wondering if it would be possible to replicate one of its features in PW. In Indexhibit2 you can upload many media types (images, local and external videos, sounds, etc...) to a page and then reorder them if you want. I know that PW has a multiple image field. My question is, would it be possible to modify it to allow adding other media type items to it? Is there an exisiting module out there for this? Thanks in advance
  9. I've stumbled upon a weird issue with repeaters. I've created a repeaterfield with only a title field and assigned it to a template. When I create the first page everything goes well, but then when I'm creating additional pages I'm getting this error: ProcessPageAdd: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'for-page-23947-23799' for key 'name_parent_id' I'm not getting redirected (probably because of the error, but the page does get created with the RepeaterField correctly). The problem seems to exist in the file FieldtypeRepeater.module in the function 'getRepeaterPageParent'. I've modified the file to see what actually happens and it looks like the function doesn't find the required page of saves the page correctly. protected function getRepeaterPageParent(Page $page, Field $field) { $repeaterParent = $this->getRepeaterParent($field); $parent = $repeaterParent->child('name=' . self::repeaterPageNamePrefix . $page->id . ', include=all'); $this->message("L".__LINE__." | selectorresult: ".$parent->id); if($parent->id) return $parent; $parent = new Page(); $parent->template = $repeaterParent->template; $this->message("L".__LINE__." | template: ".$repeaterParent->template); $this->message("L".__LINE__." | parent: ".$repeaterParent->path); $parent->parent = $repeaterParent->id; $parent->name = self::repeaterPageNamePrefix . $page->id; $parent->title = $page->name; $parent->addStatus(Page::statusSystem); // exit early if a field is in the process of being deleted // so that a repeater page parent doesn't get automatically re-created if($this->deletePageField === $field->parent_id){ return $parent; } $parent->save(); $this->message("L".__LINE__." | looking for: ".self::repeaterPageNamePrefix . $page->id); $this->message("L".__LINE__." | current for: ".$parent->name); $this->message("L".__LINE__." | Created Repeater Page Parent: NAME={$parent->name} a " . $parent->path, Notice::debug); return $parent; } See the attachment for the output. IMO the second time FieldtypeRepeater: L574 | should output the previously created page... Anyone has an idea what's going wrong? I'm on the latest master branch.
  10. Is PW capable of uploading already uploaded image on image field? Just like like a feature that editor using.
  11. I'm use inputfieldForm module for custom form at front-end on my project and except CFRS there is necessary an input Captcha, it would be healthy if it is available in modules by default!
  12. Hello, I'm trying to create a template that have a field for storing what user modified it. So when editing a page I could have a Single Selection for users. I used a page field with a parent of Users. but when I try to save it says " Page 3234 is not valid for owner" Thanks for any help.
  13. In another topic Ryan introduced a simple module to extend the functionality of the image input field. I want to go a little bit further by extending the description textarea with the usage of the Markup fields and editors, configurable in the image extra input. I tried to copy some parts from the other input fields but don't get it to work properly. In the end I would like to have an image input field with title and description, where the description should use markdown extra and the ace editor textarea field. Anyone who can help me with that?
  14. Can't believe I don't know this but is there any way of accessing a date/time of when a field was added/modified as opposed to the page itself? Or would I need to create an additional field to map times to another field's events? Thanks.
  15. I need the equivalent of a auto_increment mysql field for user_id's. In mysql, it's a setting of the field. How do I accomplish this with processwire. Thanks, Aloha
  16. For example: It is necessary for you that all photos in galleries of "participants" would be in jpeg. But different types are allowed for loading, and all of them will be cut off in compliance with the type. I suggest to choose expansion in which the reduced copies of the image will be converted, it can be both control for a field, and expansion for API Image $image->ext() //jpg $newImage = $image->ext('png') $newImage->ext() //canonical png convert
  17. I think that is very useful to set mandatory fields depending on the selected template. Now, the same field can be used in different templates, ask them different postural signature, and in fact it would be nice and labeled in different templates which of these fields are required!
  18. I am developing a little app for my university to pass it, the problem is to count some number, i used field page for select stuff in my Template AddProject i have 4 fields beside name and title template AddProject with field ------- Field "SelectUSer" (user1, user2, user3) this field / page / Single page (Page) or boolean false when none selected ------- Field "SelectStatus" (Active, Inactive) this field / page / Single page (Page) or boolean false when none selected ------- Field "SelectProf" (Name, Name2, Name3) this field / page / Single page (Page) or boolean false when none selected ------- Field "SelectSource" (10,20,30,40,50,60,70,80,90,100) this Field is Select not page and i have a page when i list projects ListProject ----------Project 1 ------------Field "SelectUSer" (user1) ------------Field "SelectStatus" (Active) ------------Field "SelectProf" (Name) ------------Field "SelectSource" (20) ----------Project 2 ------------Field "SelectUSer" (user2) ------------Field "SelectStatus" (Active) ------------Field "SelectProf" (Name2) ------------Field "SelectSource" (50) ----------Project 3 ------------Field "SelectUSer" (user3) ------------Field "SelectStatus" (Active) ------------Field "SelectProf" (Name3) ------------Field "SelectSource" (80) i want to query Project 1 | User1 | Active | Name | 20 Project 2 | User2 | Active | Name2 | 50 Project 3 | User3 | Active | Name3 | 80 also query for user to grab field related to user and page user1 | Active | and Field SelectSource to get number from pages which have selected user1 or other user
  19. Hello, I would like to have access control per field and wonder if this lies within the capacity of PW. Situation: Certain fields in the backend form for certain pages should only be visible to certain users. A regular user might fill data in fields title, fulltext etc. An admin user has additional fields available like meta_description etc. I'm fairly new to PW and can find access options in the template setup. But not in the fields setup. Is there a way to achieve this in PW? Thank you gerhard
  20. Hi there, When I upload my files on the image field, it changes their name and uploads a file with a different name. In this case I am building a Retina ready site and I really need these files t be uploaded as they are. Their names end with '@2x', so 'file@2x.png' could be an example, but when I upload it, the file that appears on the assets/files/ folder is named 'file_2x.png'. How can I control this? Thanks
  21. Hi there, I've got two templates that need some of the same fields. So, is it possible to get a field value from another template? So when I update on one template, I update on all other fetching this field? Thanks
  22. I have a “related pages” field that list same template’s pages in a SelectMultiple input. This allow to create relations between pages of the same kind. But those relations are not mutual: I would like to get B related to A when I link A to B. Is this possible?
  23. Hi there, Is it possible to make an Image Field store the images on a custom folder? Because my images are being stored in a folder called '1012', how can I change this. Thanks
  24. Is the password field compatible with the "required" option? I only ask because if I make it a required option when editing a page if I haven't changed the password, it throws a required error. Obviously I'd like for the user to be able to leave it blank and leave the password how it is. The problem is if I don't make it required then I may end up without a password at all. Is this something I should look to triggering via a module? Thanks.
  25. Hey guys, I'm jumping ship from WordPress to ProcessWire because PW seems so much easier and intuitive than WP. I am trying to make my portfolio in PW and I am trying to make a custom field. My portfolio is for web design and development and on the portfolio page I want to have a basic image followed by text underneath it. I figured I would try my hand at making a custom field for this, one called "project". So when I query through each project on the page it has an image and a title. I would greatly appreciate any help with this, also if I am approaching this wrong I am 100% open to all suggestions. Thanks!
×
×
  • Create New...