Editing additional fields in frontend [SOLVED]

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
13 years 3 months ago #17842 by Anonymous
Hello to everybody! I have a few questions can anybody help with it? Is it possible to edit additional fields when adding flexicontent material from frontend? And how to configure all adding from the frontend? That is, if I need the user to specify only the city, the type, address and phone number (they are all custom fields) and the name of the company well, of course, and then went to the material pre-moderation and only after moderation appeared on the site. Everyone responded thank you very much. Sorry for my english.

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

More
13 years 3 months ago #17853 by ggppdk
I am sorry i don't understand what you want to do, make some fields required based on if some other are filled in?

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
13 years 3 months ago #17895 by Anonymous
Replied by Anonymous on topic Editing additional fields in frontend [SOLVED]
How can i prevent entering description by the authors, they have to enter only city, type, address and phone number. Nothing more. Thanks.

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

More
13 years 3 months ago #17897 by ggppdk
Create a template override and customize the submit / edit form:

See this post for details:
www.flexicontent.org/forum/index ... pic#p17885

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
13 years 3 months ago #17899 by ggppdk
Then FIND and COMMENT OUT the code:
Code:
if ($this->tparams->get('hide_html', 0)) { $field->html = '<textarea name="text" rows="20" cols="75">'.$maintext.'</textarea>'; } else { $height = $this->tparams->get('height', 400); $field->html = $this->editor->display( 'text', $maintext, '100%', $height, '75', '20' ) ; }
Then use the following 2 statements instead of the above code:
1. The first will make the form field readonly and hidden and
2. The second will display the description inside an html div tag:
Code:
$field->html = '<textarea style="display:none;" readonly="readonly" name="text" rows="20" cols="75">'.$maintext.'</textarea>'; $field->html .= '<div>'.$maintext.'</div>';

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

  • Anonymous
  • Topic Author
  • Visitor
  • Visitor
13 years 3 months ago #17925 by Anonymous
Replied by Anonymous on topic Editing additional fields in frontend [SOLVED]
It works! Great thanks to you! :)

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.104 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline