Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[FIXED] Backend EDIT forms not showing saved data 15 Dec 2012 19:06 #6147

in the backend of my component in the sandbox i have a form view. but when i select to edit an entry using this view the text boxs are not displaying the entries data ready for editing, they are just empty. this is a new problem as this has worked in the past. if i use fly view all the data is displayed its just when i try to use an input text box.

Any help appreciated

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

Re: Backend EDIT forms not showing saved data 16 Dec 2012 04:25 #6149

I confirm texts string data type are not displayed when editing the form, this bug is recent because it worked two days ago back in, the problem is present on the 2.5 beta in Joomla! compatibility in version 1.6,1.7,2.5 it works, thank you to correct bug
ps: translated with google, I hope you understand :sick:

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

Re: Backend EDIT forms not showing saved data 16 Dec 2012 05:01 #6150

Well I find the error by comparing with a former component cook
happens in the /administrator/components/com_your_component/models/fields /cktext.php

Note! This solution is posted on a provisional basis pending a response from the admin

open the file cktext.php

and search the fonction "getInput"
public function getInput()
	{

		$this->input = JDom::_('html.form.input.text', array_merge(array(
				'dataKey' => $this->getOption('name'),
				'domClass' => $this->getOption('class'),
				'formControl' => $this->formControl,
				'size' => $this->getOption('size')
			), $this->jdomOptions));

		return parent::getInput();
	}

replace with
public function getInput()
	{

		$this->input = JDom::_('html.form.input.text', array_merge(array(
				'dataKey' => $this->element['name'],
				'dataValue' => $this->value,
				'domClass' => (isset($this->element['class'])?$this->element['class']:null),
				'formControl' => $this->formControl
			), $this->jdomOptions));

		return parent::getInput();
	}

Well, I hope that the bug will be fixed soon

Good day
The following user(s) said Thank You: admin

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

Last edit: by recalls74.

Re: Backend EDIT forms not showing saved data 16 Dec 2012 09:54 #6151

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.

Sorry.
Coding is now a piece of cake
The following user(s) said Thank You: JoomGuy

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

  • Page:
  • 1
Time to create page: 0.087 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started