New page from inputfield
#1
Posted 23 February 2012 - 02:27 PM
So if, for instance, I were adding a new page to a site, and had a "topics" field that selected pages from /topics/, and I realized that topic didn't exist yet, I could add it from the page without having to go back to the page tree, navigate to /topics/, create a new topics page, publish, then return to my unpublished new content page.
I suppose the most straightforward plan of attack would be to create a new inputfield module, but ideally, this could be applied to any of the existing ones, whether checkboxes, asmSelect, or auto complete. Can a module extend other modules in that way?
#2
Posted 23 February 2012 - 04:51 PM
#4
Posted 23 February 2012 - 06:29 PM
#5
Posted 24 February 2012 - 03:50 AM
I've got a few fields on one project where it's more than just a title, so whilst I would like to see a simple option for fields that are just linking to a page with a title I think that being able to add a more complex page would be hugely beneficial.
What I wouldn't want to do is have the ability for someone to add a new page title and then forget to fill out the rest of the page after saving the current page, but I think that displaying a large page inline like with the repeater fields could get messy - especially since you need to take into account that page's tabs too.
That's the only reason I was thinking of a modal window for it
#6
Posted 24 February 2012 - 12:31 PM
Any way you go about it, you're probably looking at a somewhat less-than-ideal situation if you're adding a page with lots of fields while editing another page that references it. If it has enough fields that a user might forget to fill some of them out, it's probably worth going the long way around instead of trying to add it in-context.
#7
Posted 24 February 2012 - 02:31 PM
In order to use it, you check the box on your page reference 'input' tab settings, like shown in the video. Your page reference field has to have both a parent and template defined with it. It also has to use the 'title' as the label field (which 99% of the time I'm sure we already do). If the user doesn't have access to create new pages in the parent or with the template, then the option to add new pages won't appear.
If used with an inputfield that only allows selection of a single page (rather than multiple pages) then it gives you an <input type='text'> rather than a <textarea>, since you can only add/select one page in that scenario.
#8
Posted 29 February 2012 - 11:55 AM
#9
Posted 01 March 2012 - 05:54 PM
@somartist | modules created | support me, flattr my work flattr.com
#10
Posted 01 March 2012 - 07:36 PM
But at the same time i gotta agree with Soma: quite often the page(template) you want to reference has more than one field you will want to populate. From a UI- and fast workflow perspective it would be great if this was possible. I guess this would mean some sort of modal popup. As the PW user-base expands i think this would be frequently used and a killer feature, really taking the relational aspect a step further (from UI perspective).
So for possible future directions, and to make PW even more awesome than it already is i ask you to take this into consideration.
#11
Posted 02 March 2012 - 07:21 PM
#12
Posted 03 March 2012 - 02:21 AM
#13
Posted 03 March 2012 - 11:34 AM
#15
Posted 24 July 2012 - 09:07 AM
maybe PW 2.3 could add a feature to sort all child pages when listed in the admin (when there are many it becomes hard to move them all around one by one).
#16
Posted 25 July 2012 - 10:32 AM
The behavior here depends on how you've defined your selectable pages, as well as what inputfield you've selected. The PageList inputfields will sort in the same way your page tree does. Whereas the others will sort according to the selectable pages definition. If you chose a parent for the selectable pages, then they should sort according to the parent's sort setting (on it's children menu). If you are using some other criteria to find selectable pages (like template, by itself), you may want to instead use the "custom selector to find selectable pages", and specify the "sort=field" right there, i.e.
template=something, sort=title
When you add a page to a multi-page selection, where it goes in that selection depends on what inputfield you are using. If using asmSelect, PageAutocomplete, or PageListSelectMultiple, new selections are appended to your list and you can drag-n-drop them wherever you want them to be. If using checkboxes or regular select multiple, then the selection should stay consistent with the source.
#17
Posted 25 July 2012 - 12:15 PM
my new pages made by inputfield were put under the parent 'tags'.. so in the admin tree, I just needed to click tags > edit > children... then there is a sort setting there.
I never knew that setting existed, another win for PW usability.
Thanks Ryan~!
Also tagged with one or more of these keywords: solved, page fieldtype, inputfield
Community Support →
Getting Started →
Why does $page->rootParent identify current section?Started by isellsoap, 27 Feb 2013 |
|
|
||
Community Support →
Getting Started →
Abstract Class ErrorStarted by Nicole Bardales, 05 Jan 2013 |
|
|
||
Community Support →
General Support →
Change default operator for ProcessPageSearch?Started by bcartier, 20 Dec 2012 |
|
|
||
Community Support →
Modules/Plugins →
Module/Plugin Development →
Validation for own Inputfield/Fieldtype modulesStarted by boundaryfunctions, 13 Dec 2012 |
|
|
||
Welcome to ProcessWire →
Wishlist & Roadmap →
Char counter for text/textarea fieldsStarted by boundaryfunctions, 10 Dec 2012 |
|
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users













