Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure all things are translated #90

Open
shoulders opened this issue Oct 15, 2020 · 0 comments
Open

make sure all things are translated #90

shoulders opened this issue Oct 15, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@shoulders
Copy link
Owner

I have found some things are not translated i.e.

<?php
	echo "<h3>After display title:</h3>";
	echo $this->item->afterDisplayTitle;
	echo "<h3>Before display content:</h3>";
	echo $this->item->beforeDisplayContent;
	echo "<h3>After display content:</h3>";
	echo $this->item->afterDisplayContent;
	
	JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php');
    $fields = FieldsHelper::getFields('com_helloworld.helloworld', $this->item, true);
	echo "<h3>Fields set to not display automatically:</h3>";
	foreach ($fields as $field)
	{
		if ($field->params->get("display") == "0")
		{
			echo FieldsHelper::render($field->context, 'field.render', array('field' => $field)); 
			echo "<br>";
		}
	}
?>
@shoulders shoulders added this to the Upgrade The Component milestone Oct 15, 2020
@shoulders shoulders added the bug Something isn't working label Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant