![]() ![]() ↳ Migrating and Upgrading to Joomla! 3.x.↳ Access Control List (ACL) in Joomla! 3.x.Joomla! 3.x - Ask Support Questions Here.↳ Search Engine Optimization (Joomla! SEO) in Joomla! 4.x.↳ Migrating and Upgrading to Joomla! 4.x.Joomla! 4.x - Ask Support Questions Here. ![]() Is there anybody who knows how to do this? I just need to figure out what small bit of PHP to write in order to pull this off. That's complete overkill for this, considering custom fields can be overridden using template overrides, so you can get the custom field to output the value with your own wrapper elements.Ī plugin would be a substantial time sink, nor do I have the technical skill to be able to pull this off. My opinion is, I shouldn't have to write a plugin just to be able to display a bit of custom code. There is a list of events you could use somewhere but I have forgotten where. In the plugin you would either replace the placeholder with the content you want or nothing at all. to look for a placeholder within an article or within a custom default_items.php file and you could pass parameters in the placeholder. You could use onContentPrepare or onAfter. I think you really need a plugin rather than a custom field. CSS does not block GET requests, so it's incredibly important that I achieve this via PHP **ALONE**. I want to prevent unnecessary GET requests on images/iframes, etc etc. It's imperative that I accomplish this via PHP, because doing so via CSS with display:none property is **NOT** an option. There are certain custom fields that I want to display **ONLY** in the featured blog items php, and then there are custom fields that I want to display **ONLY** in the full article page. I want to find a custom field by name/label, and then display that wherever I please, in whichever PHP file that I please. I do **NOT** want to loop through an array and display every custom field. I would like to be able to put this custom field **WHEREVER** I want-**NOT** simply above/below the article. I would like to specifically display **ONE** custom field without displaying **ALL** of them. "com_content/featured/default_item.php" I duplicated the Cassiopiea Template, gave it a new name, and I'm editing an override for that PHP file. ![]() Where do you want to display your custom field?įeatured Blog Items php file. Can somebody, PLEASE, for the love of whatever god or gods you subscribe to, help me figure this out?Īnd also, why is there no discord, irc, or slack channel for Joomla? Why is Joomla so dead? Really aggravated and disappointed to see that Joomla is this level of dead and support is nonexistent. $this->item, 'params' => $params, 'position' => 'above')) ?>īut this is completely nonsensical to me. The closest I've come, is finding this in "com_content/featured/default_item.php" It seems as though I need to use something called "LayoutHelper::render()" since that is how Joomla 4 is doing things.īut there's not a single blip of documentation ANYWHERE on how to display a SINGLE custom field for Joomla 4. ![]() They appear to be outdated, because I'm using Joomla v4. These are the 2 resources I've looked at. I want to display a **SINGLE** custom field. I've been searching all over the internet and I cannot figure this out. ![]()
0 Comments
Leave a Reply. |