Submit an Article
Try in frontend create article to not display in Publishing tab these fields :
Note
Author's Alias
Access
You don't see in frontend create article in Publishing tab these fields :
Note
Author's Alias
Access
You see in frontend create article in Publishing tab these fields :
Note
Author's Alias
Access
j3.9.9
Labels |
Added:
?
|
Labels |
Added:
J4 Issue
|
Title |
|
Joomla 3.9.9 don't have this feature to not display these: ?
Note
Author's Alias
Access
?
You wrote in Title "Feature Request", so i comment.
Status | New | ⇒ | Discussion |
Yes its feature request, but as you already know joomla documentation is very bad or I dont know how to use it, So I ask here if somebody knows how to do this in j 3.9.9 if yes it ll be easy to do it in j 4
Franz do you know if such feature is in j 3.9.9 already?
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-07-10 11:01:40 |
Closed_By | ⇒ | franz-wohlkoenig |
@brianteeman the problem is I see these 3 fields:
Note
Author's Alias
Access
And I want feature not to see these fields.
I see lots of same questions on the forum but still no answer for years. Thats why I think we need this feature.
If you know how to not display just these 3 fields (Note, Author's Alias,Access) please share this information here or on forum.
Hmm. It rather looks like what the original poster want is to NOT display these specific fields in frontend.
The com_content layout let's set Show Publishing Options
to Hide, this does not work in frontend for all fields because the forms displayed by the Publishing Tab in frontend are different.
@Milglius
You can create an override for tmpl/edit/form.php in your frontend template where we have (in core for Protostar) the following code
<?php echo JHtml::_('bootstrap.addTab', $this->tab_name, 'publishing', JText::_('COM_CONTENT_PUBLISHING')); ?>
<?php echo $this->form->renderField('catid'); ?>
<?php echo $this->form->renderField('tags'); ?>
<?php echo $this->form->renderField('note'); ?>
<?php if ($params->get('save_history', 0)) : ?>
<?php echo $this->form->renderField('version_note'); ?>
<?php endif; ?>
<?php if ($params->get('show_publishing_options', 1) == 1) : ?>
<?php echo $this->form->renderField('created_by_alias'); ?>
<?php endif; ?>
<?php if ($this->item->params->get('access-change')) : ?>
<?php echo $this->form->renderField('state'); ?>
<?php echo $this->form->renderField('featured'); ?>
<?php if ($params->get('show_publishing_options', 1) == 1) : ?>
<?php echo $this->form->renderField('publish_up'); ?>
<?php echo $this->form->renderField('publish_down'); ?>
<?php endif; ?>
<?php endif; ?>
<?php echo $this->form->renderField('access'); ?>
<?php if (is_null($this->item->id)) : ?>
<div class="control-group">
<div class="control-label">
</div>
<div class="controls">
<?php echo JText::_('COM_CONTENT_ORDERING'); ?>
</div>
</div>
<?php endif; ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
As you see you can modify there what does not fit for you.
Title |
|
Labels |
Added:
J3 Issue
Removed: J4 Issue |
@infograf768 You are right I want to NOT display these specific fields in frontend Submit an Article.
Where I can find this file
tmpl/edit/form.php in frontend template (in core for Protostar)
It does depend on your template. For Protostar you can do it this way:
Copy the file ROOT/components/com_content/views/form/tmpl/edit.php
Then create or make sure you have in your template in the html folder the following structure where you have copied the edit.php file (if there is already one, edit it to fit your needs). Protostar has none, so I created it.
To reflect your needs here is a modified edit.php file (uncompress) for Protostar.
edit.php.zip
Please next time ask on forum.
New Features will go in J4, so this is assigned.