Keyword

Error when copying itemform code

  • Alan Campbell
  • Alan Campbell's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 3 months ago #165693 by Alan Campbell
Error when copying itemform code was created by Alan Campbell
Hello,

I am trying to make a template for the frontend itemform (partly so I can experiment to try and solve my issue regarding the attachment link noted in my other thread).

When I copy the contents of default.php into a new itemform.php, as recommended, I receive an error stating:
Call to member function getLimitBox(); with null

This is despite me copying all the contents of the file, other than the initial direct access prevention (which is already in the itemform.php).

May I ask if anyone can point out anything silly I must be doing??

Thanks!

Alan

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 3 months ago #165702 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error when copying itemform code
Can you send me the code via Github (gist)?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Alan Campbell
  • Alan Campbell's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 3 months ago #165806 by Alan Campbell
Replied by Alan Campbell on topic Error when copying itemform code

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 3 months ago #165843 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error when copying itemform code
This is actually the layout for the list.
This can't operate in the frontend without heavy modifications.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Alan Campbell
  • Alan Campbell's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 3 months ago #165877 by Alan Campbell
Replied by Alan Campbell on topic Error when copying itemform code
Dear Krikor,

Oh I see - from the comments in the code, I thought that was how we modified the layout? I.e., copying it and pasting that code when creating a custom template.

Have I misunderstood?

Alan

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 3 months ago #165924 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error when copying itemform code
You understood correctly and the method you used is absolutely correct but you copied the wrong file. You copied the /items file which is the file used for the lists.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum