Closed mennoswaak closed 3 months ago
Hello Menno, What do you mean by redoing menu items? Some menu item settings not saved, table selected, or layout? J4.4.1 is so much different compared to 4.4.0. I didn't test on PHP 8.2.7 yet.
Hello Ivan Atfter an update of Custom Tables things go wrong in the frontend. If I want to open a list this kind of messages appear:
So in the backend I go to the corresponding menu item and I can see that under Tables & Layout some of the parameters are set back to - Default insteed of the choices I made there before.
Most urgent for me now is the Add button
Is it possible that the Layout name contains a white space?
What is the link to Add New page? Does it contain listing_id parameter?
There where several Layout names with a white space. I am replacing them now with a underscore.
In the List view layouts I never used any extra parameter. Just {{ html.add }}. This has been working for some time, till.... a update? For my most Urgent situation I changed that into {{ html.add(1948) }}. 1948 is a menu iten ID of an Edit form that I added the menu. And this works. And that is fine for now. But I have a fourty plus more list where I have to change that is this appears to be the one solution. So I realy hope that the trusted old and simple {{ html.add }} will be back in charge here.
Does this information help?
Yes, it helps. One more question: when you use {{ html.add }} tag what link it generates?
Like this?
Or are there more parameters in the generated link?
P.S. tested on PHP 8.3.0 - no issues.
Can you please try the latest (11 Dec) update, if you didn't try it yet?
no, it does not help
Both {{ html.add(1948) }} and {{ html.add() }}
Generate the same link?
{{ html.add(1948) }} generates https://permacultuur.net/index.php?option=com_customtables&view=edititem&returnto=aHR0cHM6Ly9wZXJtYWN1bHR1dXIubmV0L2luZGV4LnBocC9wY2phYXItNjQyL3Byb2ZpZWxmb3RvLXVwbG9hZHMtNjQyP3ZpZXc9Y2F0YWxvZw==&Itemid=1948 And 1948 is the ID of a menu item that I made aspecialy to sole my problem. It opens an (empty) Edit Form. This works as needed.
{{ html.add() }} generates https://permacultuur.net/index.php?option=com_customtables&view=edititem&returnto=aHR0cHM6Ly9wZXJtYWN1bHR1dXIubmV0L2luZGV4LnBocC9wY2phYXItNjQyL3Byb2ZpZWxmb3RvLXVwbG9hZHMtNjQyP3ZpZXc9Y2F0YWxvZw==&Itemid=1687 And 1687 is the ID of the List. where {{ html.add() }} is in the layout. But... it open the Edit form with the content of the last addes record.
My feeling is that the gegerated link is missing an extra parameter that makes that the form opens empty.. Maybe a simple 0 at the end??
Do you have a menu item with ID 1687?
The layout with {{ html.add() }} tag is it a Simple Catalog? and the menu type is CustomTables/Records?
Or is it a module?
Is it possible to see it myself?
1687 is the menu item to List where we try to find the solution for. It is Custom Tables >> Records Ans the layout is indeed Simple Catalog
Om je ingevoerde foto met gegevens aan te passen, klik achterin jouw invoerregel op het potlood-icoontje in de kolom Action.
{{ record.label }} | {{ bestandnaam.label }} | {{ naamcursist.label(true) }} | {{ plaatsnaam.label }} | Action |
---|---|---|---|---|
Bekijk {{ record.id }} | {{ bestandnaam("","icon-filename-link") }} | {{ naamcursist }} | {{ plaatsnaam }} | {{ html.toolbar("edit") }} |
{{ html.add(1948) }} is pointing to a menu item that opens an (empty) Edit form that the can now fill a new record in. Actualy it used to be {{ html.add }} and that worked well for some time.
What is the difference between {{ html.add }} and {{ html.add() }} ? The Layout Auto Creator creates {{ html.add }}
{{ html.add }}
If Menu Itemid or Alias is not provided the current page Itemid is used.
Do you have any filter in Menu Item (1687)/Filter Table/ Search Parameter ?
It looks like the problem is with the 1687 menu Item.
Is this issue still exists?
Add button in List view does not open a new empty edit form but shows the latest filled record. So no way to add a new record. In Detail view a File field opens a 404 page not found when klicked on it. After (almost?) every update I have to redo the menu items with Custom Tables. The settings are lost. I have close to a hundred menu items.....
My application has been working well for a while. If there is no quick solution for it can I go back to an older stable version?
This is on J4.4.1 om php 8.2.7