Show user custom field on frontpage and make it selectionable in Joomla 3Joomla 2.5 custom field with select=selected optionJoomla 3.2 Grouped List Custom Field List doesn't have SELECTED valueTranslating Joomla User MenuJoomla - create custom rewrite rulesUpdate WordPress user_meta Custom Field with post_meta Custom Field valueJoomla backend component file upload for custom componentJoomla 2.5 create user in php script without email addressCustom Joomla profile plugin registered user database table update issuesAdd custom field from plugin to joomla article loopAccess the custom fields in joomla 3

Continuous vertical line using booktabs in tabularx table?

DeclareMathOperator and widearcarrow with kpfonts

What is the length of pair of wires after twisting them around each other?

Write an interpreter for *

How to avoid the "need" to learn more before conducting research?

ICO or PNG Format?

Is there a way to unplug the Raspberry pi safely without shutting down

What gave Harry Potter the idea of writing in Tom Riddle's diary?

Can you castle with a "ghost" rook?

function evaluation - I don't get it

Is refreshing multiple times a test case for web applications?

Wherein the Shatapatha Brahmana it was mentioned about 8.64 lakh alphabets in Vedas?

n-types of the theory of natural numbers?

Is this curved text blend possible in Illustrator?

Why are Gatwick's runways too close together?

A tool to replace all words with antonyms

Can the ground attached to neutral fool a receptacle tester?

Understanding the point of a kölsche Witz

Acceptable to cut steak before searing?

Is it legal for a company to enter an agreement not to hire employees from another company?

Am I overreacting to my team leader's unethical requests?

How to mark beverage cans in a cooler for a blind person?

Plausibility of Ice Eaters in the Arctic

How to take the beginning and end parts of a list with simpler syntax?



Show user custom field on frontpage and make it selectionable in Joomla 3


Joomla 2.5 custom field with select=selected optionJoomla 3.2 Grouped List Custom Field List doesn't have SELECTED valueTranslating Joomla User MenuJoomla - create custom rewrite rulesUpdate WordPress user_meta Custom Field with post_meta Custom Field valueJoomla backend component file upload for custom componentJoomla 2.5 create user in php script without email addressCustom Joomla profile plugin registered user database table update issuesAdd custom field from plugin to joomla article loopAccess the custom fields in joomla 3






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I need to show the user's custom field in the frontend and that the user can change it. The field is a drop-down list and the intention is that it can be changed without having to enter the user profile. For the moment I have managed to get the value of the field that is assigned, but I can't render all the options to make them selectable because I appear as protected.



I have read the joomla tutorial and tried all the possibilities but I can't do what I need
https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides



//This throw me the current value of the custom field for the user

JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');

$customFields = FieldsHelper::getFields('com_users.user', JFactory::getUser(), true);

$grAct = $customFields[0]->value;

//Tried this code to show the full options of field but nothing happens.

foreach ($this->item->jcfields as $field)

echo $field->label . ':' . $field->value;




Its posible do somthing like this for save the changes?



$form->setFieldAttribute('fieldname','required','','com_fields');



I need to show all the options of the custom field in frontend and when I change it, it saves in the user profile










share|improve this question


























  • Your question appears to have stalled without an support. Perhaps you'd like to try Joomla Stack Exchange.

    – mickmackusa
    Jun 11 at 9:46

















0















I need to show the user's custom field in the frontend and that the user can change it. The field is a drop-down list and the intention is that it can be changed without having to enter the user profile. For the moment I have managed to get the value of the field that is assigned, but I can't render all the options to make them selectable because I appear as protected.



I have read the joomla tutorial and tried all the possibilities but I can't do what I need
https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides



//This throw me the current value of the custom field for the user

JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');

$customFields = FieldsHelper::getFields('com_users.user', JFactory::getUser(), true);

$grAct = $customFields[0]->value;

//Tried this code to show the full options of field but nothing happens.

foreach ($this->item->jcfields as $field)

echo $field->label . ':' . $field->value;




Its posible do somthing like this for save the changes?



$form->setFieldAttribute('fieldname','required','','com_fields');



I need to show all the options of the custom field in frontend and when I change it, it saves in the user profile










share|improve this question


























  • Your question appears to have stalled without an support. Perhaps you'd like to try Joomla Stack Exchange.

    – mickmackusa
    Jun 11 at 9:46













0












0








0








I need to show the user's custom field in the frontend and that the user can change it. The field is a drop-down list and the intention is that it can be changed without having to enter the user profile. For the moment I have managed to get the value of the field that is assigned, but I can't render all the options to make them selectable because I appear as protected.



I have read the joomla tutorial and tried all the possibilities but I can't do what I need
https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides



//This throw me the current value of the custom field for the user

JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');

$customFields = FieldsHelper::getFields('com_users.user', JFactory::getUser(), true);

$grAct = $customFields[0]->value;

//Tried this code to show the full options of field but nothing happens.

foreach ($this->item->jcfields as $field)

echo $field->label . ':' . $field->value;




Its posible do somthing like this for save the changes?



$form->setFieldAttribute('fieldname','required','','com_fields');



I need to show all the options of the custom field in frontend and when I change it, it saves in the user profile










share|improve this question
















I need to show the user's custom field in the frontend and that the user can change it. The field is a drop-down list and the intention is that it can be changed without having to enter the user profile. For the moment I have managed to get the value of the field that is assigned, but I can't render all the options to make them selectable because I appear as protected.



I have read the joomla tutorial and tried all the possibilities but I can't do what I need
https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides



//This throw me the current value of the custom field for the user

JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');

$customFields = FieldsHelper::getFields('com_users.user', JFactory::getUser(), true);

$grAct = $customFields[0]->value;

//Tried this code to show the full options of field but nothing happens.

foreach ($this->item->jcfields as $field)

echo $field->label . ':' . $field->value;




Its posible do somthing like this for save the changes?



$form->setFieldAttribute('fieldname','required','','com_fields');



I need to show all the options of the custom field in frontend and when I change it, it saves in the user profile







php joomla3.0 custom-fields






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 8:33









Irfan

6,0103 gold badges34 silver badges49 bronze badges




6,0103 gold badges34 silver badges49 bronze badges










asked Mar 26 at 12:18









CipriCipri

11 bronze badge




11 bronze badge















  • Your question appears to have stalled without an support. Perhaps you'd like to try Joomla Stack Exchange.

    – mickmackusa
    Jun 11 at 9:46

















  • Your question appears to have stalled without an support. Perhaps you'd like to try Joomla Stack Exchange.

    – mickmackusa
    Jun 11 at 9:46
















Your question appears to have stalled without an support. Perhaps you'd like to try Joomla Stack Exchange.

– mickmackusa
Jun 11 at 9:46





Your question appears to have stalled without an support. Perhaps you'd like to try Joomla Stack Exchange.

– mickmackusa
Jun 11 at 9:46












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55356996%2fshow-user-custom-field-on-frontpage-and-make-it-selectionable-in-joomla-3%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55356996%2fshow-user-custom-field-on-frontpage-and-make-it-selectionable-in-joomla-3%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript