FLEXI_PLEASE_SELECT [Solved]

More
12 years 8 months ago #18054 by ggppdk
Replied by ggppdk on topic FLEXI_PLEASE_SELECT [Solved]
No reason not to appear there, Just make sure you have proper translation of the string in the language files i mention in my previous POST


-- 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
12 years 8 months ago #18056 by aloisio
I will see the lenguaje files.

Another issue:
I have a field type "select" named "assigned bruno" in the formulary in the frontend.
To hide these field using the "Add css to edit form" in the menu item I try the code:
# adminForm. label.field_asig-bruno {display: none;}
It does not work.

Regards

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

More
12 years 8 months ago #18059 by ggppdk
Replied by ggppdk on topic FLEXI_PLEASE_SELECT [Solved]
Alosio, this is not the proper way to do it.

The proper and poweful way to do it is to create a template override:

1. Inside your Joomla Template create folder:
templates/mytemplate/html/com_flexicontent/items/
2. Inside this folder copy paste the file form.php from components/com_flexicontent/view/items/tmpl/form.php
3. Find "foreach ($this->fields as $field) {"
Immediately after this line you can do something:
Code:
if ($field->name=='myfieldname1') { // do something }
Like skip the field:
Code:
if ($field->name=='myfieldname1') { continue; // ... }
To JUST PRINT the field without creating an editable html form field do:
Code:
if ($field->name=='myfieldname1') { echo $field->label .": ". $field->html; continue; // ... }
To create a hidden form field that will have some default value, without letting the user change it:
Code:
if ( $field->name=='myfieldname1' && JRequest::getVar("id",0)==0 ) { echo "<input type="hidden" name="myfieldname1" value="geographia" />"; continue; }

The JRequest::getVar("id",0)==0 will detect that you are submitting new item, and not editing existing item.

If you were a developer you could do a lot more !!!

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
12 years 8 months ago - 12 years 8 months ago #18060 by aloisio
To hide to a user a field type "select", used as a filter, in the formulary in the frontend should not be done using "css". It should be development.
That I should contact a developer.

It's Correct?

Regards
Last edit: 12 years 8 months ago by aloisio.

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

More
12 years 8 months ago #18062 by ggppdk
Replied by ggppdk on topic FLEXI_PLEASE_SELECT [Solved]
Alosio, i gave you code to do this ..., For this you don't need developer, because i provided you with solution.

Just copy files, paying attention not to name the folder/files wrongly
e.g. if you name folder 'items' as 'item' IT WILL not work.

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
12 years 8 months ago - 12 years 8 months ago #18064 by aloisio
Sorry, but in your code is written "// do something" then I thought it was not for me to do.

Regards
Last edit: 12 years 8 months ago by aloisio.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.289 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