-
Posts
7,473 -
Joined
-
Last visited
-
Days Won
144
Everything posted by kongondo
-
I get you now. I have never used that module before, hence the reason I didn't recognise the /clone/ url. Let me install the module, have a play and get back to you.
-
This is the important part for me. What exactly happens here? How are you cloning the page? Could you show us some code? It is here you might need to tell ProcessWire the parent page, hence the parent_id.
-
Let's back up a bit. How are you cloning the page?
-
Not exactly what you are describing but maybe Robin's module could be of help? At least for editors. It can do captions.
-
If using the API, you can get it like this. There are probably other (better) ways. <?php namespace ProcessWire; $myPageTableField = $fields->get('your_page_table_field_name'); $myPageTableFieldParentID = $myPageTableField->get('parent_id'); Alternatively, if you have to, you can also get it from the markup wrapping the 'Add New' Button: <span class="InputfieldPageTableAdd" data-url="/hooks/page/add/?modal=1&template_id=29&parent_id=1056&context=PageTable"> <button class="ui-button ui-widget ui-corner-all ui-state-active ui-state-default" name="button" value="Add New" type="button"> <span class="ui-button-text"><i class="fa fa-plus-circle"></i> Add New</span> </button> </span>
-
Can call this a bug then? It broke Media Manager, btw.
-
That has been my guess as well. That was my observation as well, only difference being I was saving (like twice) before it would catch.
-
Thanks to testing. I forgot to mention, it will look like it works but it doesn't. The setting is saved for the field, however, the database is not altered. A new column 'tags' is not created. In fact, if you edit a page using your field, you should get a PDO error about unknown column field_your_field_name.tags in field list ?.
-
Hi, Could someone please show me how to create a new file or image field using the API and enable tags as well? It used to work a while back but I am not sure what changed. It seems I can only enable tags using the GUI and only once the field has been added to a template. In addition, it seems one has to do it twice; First enable tag, then disable them then re-enable them! I am talking about normal tags (user enters tags by text input). <?php namespace ProcessWire; $f = new Field(); // ... more code here $f->useTags = 1;// does not work, even if I do this after adding this field to a template $f->save(); Relevant method in FieldtypeFile.module: updateDatabaseSchema() Edit: Just updating this. The above code will look like it works. The field will save the setting use tags. However, the field's table will not be altered, i.e. the column 'tags' will not be created. Editing a page that uses that field will throw a PDO error: unknown column field_your_field_name.tags in field list. Thanks.
-
Still not 100% sure what you are saying but I'll assume you have a menu builder menu with 3 top level items (1, 2 and 3) and you only want to output the children of the top level item 2. I'll also assume you mean you want to control this programmatically, i.e. not disable the other menu items in the MB admin. If this I got it right...the easiest way of doing this is via getMenuItems(). Use getMenuItems() to get your menu. Better if you use the option to return a WireArray menu object. Let's call this $menu. Filter / find the children of item 2 inside $menu using their parent ID, e.g.: $items = $menu->find("parentID=10"); where 10 is the ID of item 2. Build a menu using $items. For a simple 2 level menu (i.e. 2 and 2.1, 2.2, etc), you can use a loop (foreach) to build the menu. Otherwise, have a look at these gists for example recursive functions.
-
I understand the question but I don't understand the context. What do you mean by this? Do you mean: That is the structure of a menu you've built using Menu Builder? OR That is the structure of your ProcessWire page tree?
-
Padloper 2: Early Alpha Preview + Roadmap Please see the latest announcement here:
-
Announcing the current status, planned release, roadmap and preview of Padloper 2. Status Feature freeze. Full multilingual support. Only PHP 7.2+ supported. Support for ProcessWire 3.0 only. Backend support for modern browsers only (that support JavaScript ES6 modules). Current Work Finish work on admin/backend. Work on installer and uninstaller (including configurable availability of some features). Work on UI/UX improvements. Start work on documentation with special focus on technical documentation. Continue work on Padloper API and data/model component. Roadmap Please note that these ARE NOT hard and fast targets. The roadmap may have to be adjusted to accommodate technical and non-technical constraints. Q1 2021 Inbuilt support for (latest) PayPal (full rewrite, no external modules required). Additional work on Padloper API. Invite a limited number of early alpha testers (fully-priced product). Soft and closed release of Padloper 2. Q2 2021 Start work on relaunch of Padloper website. Inbuilt support for Stripe (no external modules required). Future Plans Support for more Payment Gateways. Support for order, customers, etc imports and exports. Support for AdminThemeReno and AdminThemeDefault. Separate fully-featured frontend shop module. Consider support for multiple currencies. FAQ 1. Have you abandoned this project? No. 2. When will Padloper 2 be released? First early alpha release is scheduled for Q1 2021. This target may change depending on circumstances! Access will be by invite only for this first release. 3. What is the pricing model of Padloper 2? Three licences: Single Site, Developer and Agency licences (12 months’ updates and VIP support). 4. How much will Padloper 2 Cost? No price has been set yet. It will cost more than Padloper 1. 5. Can we upgrade from Padloper 1? No. 6. Will existing users of Padloper 1 get a discount for Padloper 2? No, this will not be possible. Apologies for the earlier announcement. It was unrealistic and unworkable. 7. Can we pay for Padloper 2 in advance? No. 8. Does Padloper 2 render markup/templates in the frontend? No. Access to all data you need to build your shop’s frontend is via the Padloper API. 9. Can we keep sending you ‘Are we there yet’ messages? No, please. Preview Here is a video preview of the current state of the backend/admin of Padloper 2. Please note the following: This is early alpha. There are bugs! It even includes WIP/notes!! FOUC, misaligned things, etc. The video shows the near-raw implementation of Vuetify UI. The UI/UX improvements work is yet to start. What you see here is the development version. Some of the incomplete features may not be available in the early releases. Most of the features you see will be optional to install.
-
A number of previous topics that could get you started:
- 1 reply
-
- 1
-
- translation
- export
-
(and 3 more)
Tagged with:
-
ProcessWire .htaccess adding URL parameter to redirects
kongondo replied to FireWire's topic in General Support
The posts I have seen were from a while back when this module didn't support multi-language sites. Good to see that it now does ?- 15 replies
-
- multilanguage
- redirects
-
(and 2 more)
Tagged with:
-
Three possibilities Option One Copy the module to /site/modules/InputfieldPageTable/ ProcessWire will ask which version of the module to use, select yours Modify renderTableRow() as needed. You'll need JavaScript to help with the cloning (?). Option Two Hook after renderTable(). Grab the return string. Use regex to inject your markup. You'll need JavaScript to help with the cloning. Option Three A pure JavaScript solution to inject your markup. You will need ajax to create the pagetable item (a page). Just my 2p.
-
Module Module: Matrix Fieldtype & Inputfield
kongondo replied to kongondo's topic in Modules/Plugins
It seems you were talking about the frontend? I was talking about the backend ?. -
ProcessWire .htaccess adding URL parameter to redirects
kongondo replied to FireWire's topic in General Support
Brilliant! Glad it worked!- 15 replies
-
- multilanguage
- redirects
-
(and 2 more)
Tagged with:
-
ProcessWire .htaccess adding URL parameter to redirects
kongondo replied to FireWire's topic in General Support
Just that and the next two posts :-). - workaround in the 2nd post. I am afraid not. Nice site, btw ?.- 15 replies
-
- 1
-
- multilanguage
- redirects
-
(and 2 more)
Tagged with:
-
ProcessWire .htaccess adding URL parameter to redirects
kongondo replied to FireWire's topic in General Support
I see. No, it doesn't, although someone posted a workaround here, just FYI.- 15 replies
-
- 1
-
- multilanguage
- redirects
-
(and 2 more)
Tagged with:
-
ProcessWire .htaccess adding URL parameter to redirects
kongondo replied to FireWire's topic in General Support
Have you tried the module Jumplinks?- 15 replies
-
- multilanguage
- redirects
-
(and 2 more)
Tagged with:
-
Module Module: Matrix Fieldtype & Inputfield
kongondo replied to kongondo's topic in Modules/Plugins
Sorry for the late reply @Aleksey Popov, If you mean sort the displayed table on the fly, then that's not possible currently. If you mean one off sort for the field in respect to how it retrieves pages for building the rows of the matrix, then you do this in the field's settings. See the details tab when editing the field. For instance, if using a selector, you would do it as shown below: I hope this answers your question. If not, please let me know. -
That seems to be the case...
-
Tested and it works fine. As Robin S suggested above, you are probably logged in. Try in a different browser or in incognito.
-
OK. I'll see if I can replicate this on a new install.