What happened to start publishing/end publishing options?

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
jgold723
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 226
Joined: Mon Mar 26, 2007 3:13 pm

What happened to start publishing/end publishing options?

Post by jgold723 » Thu Jan 18, 2018 5:06 pm

We're using Joomla 3.8.3. with the JCE editor. We used to be able to set a start and end date for publishing, but I can no longer find those options in the article editor interface -- only the option to set the status (publish/unpublish, etc.). What happened?

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: What happened to start publishing/end publishing options?

Post by sozzled » Thu Jan 18, 2018 7:19 pm

The start and end publishing settings are located on the Publishing tab (see image below); they are not "features" of JCE or of any editor extensions.
j3_start-endPublishing.png
Standard Joomla feature.
You do not have the required permissions to view the files attached to this post.

User avatar
tegang_berbisa
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sun Jan 21, 2007 8:08 am
Contact:

Re: What happened to start publishing/end publishing options?

Post by tegang_berbisa » Sat Sep 22, 2018 1:34 am

I just installed 3.8.12 and there is no option for start publishing/end publishing for new article for author.
Any idea how to enable this so that a user can set their start and publishing date for their articles?
-Think Different-

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: What happened to start publishing/end publishing options?

Post by sozzled » Sat Sep 22, 2018 1:37 am

@tegang_berbisa: look at my earlier post in this topic. Do you see the Publishing tab (as shown in the image)?

User avatar
mandville
Joomla! Master
Joomla! Master
Posts: 15152
Joined: Mon Mar 20, 2006 1:56 am
Location: The Girly Side of Joomla in Sussex

Re: What happened to start publishing/end publishing options?

Post by mandville » Sat Sep 22, 2018 1:50 am

not that i ever use that front end facility but doesnt an "author" have to have their content approved and published by a "publisher" its all in the acl

Author = Person who creates/writes the article
editor = person who checks the spelling and grammar etc..
publisher = person who makes article appear on website.
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be reported, added to the foe list and possibly just deleted
{VEL Team Leader}{TM Auditor }{ Showcase & Security forums Moderator}

User avatar
tegang_berbisa
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sun Jan 21, 2007 8:08 am
Contact:

Re: What happened to start publishing/end publishing options?

Post by tegang_berbisa » Sat Sep 22, 2018 1:55 am

Hi Sozzle..
Yes.. i did, but there is no options for Start/End Publishing date.

See attachment
You do not have the required permissions to view the files attached to this post.
-Think Different-

User avatar
tegang_berbisa
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sun Jan 21, 2007 8:08 am
Contact:

Re: What happened to start publishing/end publishing options?

Post by tegang_berbisa » Sat Sep 22, 2018 1:59 am

mandville wrote:
Sat Sep 22, 2018 1:50 am
not that i ever use that front end facility but doesnt an "author" have to have their content approved and published by a "publisher" its all in the acl

Author = Person who creates/writes the article
editor = person who checks the spelling and grammar etc..
publisher = person who makes article appear on website.
Yes I understand that mandville... in some situations, author need to suggest the date they want to publish their article. Publisher just publish those articles that in their mind is not against the company policies.
-Think Different-

annahersh
Joomla! Guru
Joomla! Guru
Posts: 734
Joined: Wed Aug 15, 2018 8:23 pm

Re: What happened to start publishing/end publishing options?

Post by annahersh » Sat Sep 22, 2018 3:25 am

tegang_berbisa wrote:
Sat Sep 22, 2018 1:59 am
in some situations, author need to suggest the date they want to publish their article. Publisher just publish those articles that in their mind is not against the company policies.
You will have to set author group's edit state permission to allowed, in the content options to display the publish start and end fields.

User avatar
tegang_berbisa
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sun Jan 21, 2007 8:08 am
Contact:

Re: What happened to start publishing/end publishing options?

Post by tegang_berbisa » Sat Sep 22, 2018 4:12 am

annahersh wrote:
Sat Sep 22, 2018 3:25 am
tegang_berbisa wrote:
Sat Sep 22, 2018 1:59 am
in some situations, author need to suggest the date they want to publish their article. Publisher just publish those articles that in their mind is not against the company policies.
You will have to set author group's edit state permission to allowed, in the content options to display the publish start and end fields.
Thanks for the reply annahersh. Any guide on how to do this?
-Think Different-

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9739
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: What happened to start publishing/end publishing options?

Post by AMurray » Sat Sep 22, 2018 4:38 am

In the Administrator back-end, Go to Content >> Articles, then click Options button (top right corner) then click Permissions tab.

Change the permission there for "Author" to allow any change (should currently show disallowed/inherited"). Change it to allowed, click save. The change should be immediately apparent.

Note, an Author level access of course can't change such things; that would have to be done by a super user. Backup before making these kinds of changes.
Regards - A Murray
General Support Moderator

User avatar
tegang_berbisa
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sun Jan 21, 2007 8:08 am
Contact:

Re: What happened to start publishing/end publishing options?

Post by tegang_berbisa » Sat Sep 22, 2018 4:59 am

AMurray wrote:
Sat Sep 22, 2018 4:38 am
In the Administrator back-end, Go to Content >> Articles, then click Options button (top right corner) then click Permissions tab.

Change the permission there for "Author" to allow any change (should currently show disallowed/inherited"). Change it to allowed, click save. The change should be immediately apparent.

Note, an Author level access of course can't change such things; that would have to be done by a super user. Backup before making these kinds of changes.
Thanks AMurray for the guide, but it seems doesn't to be working. Even if I allow everything for the author, I get the same result - no publishing start/end options.

See attachment:
You do not have the required permissions to view the files attached to this post.
-Think Different-

annahersh
Joomla! Guru
Joomla! Guru
Posts: 734
Joined: Wed Aug 15, 2018 8:23 pm

Re: What happened to start publishing/end publishing options?

Post by annahersh » Sat Sep 22, 2018 5:04 am

Do you have Show Publishing Options set to Yes in Editing Layout?
article-edit.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
tegang_berbisa
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sun Jan 21, 2007 8:08 am
Contact:

Re: What happened to start publishing/end publishing options?

Post by tegang_berbisa » Sat Sep 22, 2018 5:08 am

annahersh wrote:
Sat Sep 22, 2018 5:04 am
Do you have Show Publishing Options set to Yes in Editing Layout?
article-edit.jpg
Yes. It is by default has Show Publishing Options set to Yes and I didn't change on that part.
-Think Different-

annahersh
Joomla! Guru
Joomla! Guru
Posts: 734
Joined: Wed Aug 15, 2018 8:23 pm

Re: What happened to start publishing/end publishing options?

Post by annahersh » Sat Sep 22, 2018 5:53 am

You may have an override file, edit.php, which may have the fields manually removed. All that you have configured should enable the date fields.

Check your template/html/com_content to see if there is a folder named form and includes a file edit.php. If yes, rename the file to edit.php.bak and check the article edit page.

User avatar
tegang_berbisa
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sun Jan 21, 2007 8:08 am
Contact:

Re: What happened to start publishing/end publishing options?

Post by tegang_berbisa » Sat Sep 22, 2018 6:13 am

annahersh wrote:
Sat Sep 22, 2018 5:53 am
You may have an override file, edit.php, which may have the fields manually removed. All that you have configured should enable the date fields.

Check your template/html/com_content to see if there is a folder named form and includes a file edit.php. If yes, rename the file to edit.php.bak and check the article edit page.
Hi Annahersh
This is a new fresh installation and it is using the default template that came with the package (protostar). There is no com_content folder under template/protostar/html, thus no edit.php file found under the floder

I switched the default template to beez - same result.
-Think Different-

annahersh
Joomla! Guru
Joomla! Guru
Posts: 734
Joined: Wed Aug 15, 2018 8:23 pm

Re: What happened to start publishing/end publishing options?

Post by annahersh » Sat Sep 22, 2018 7:17 am

There must b something broken somewhere. The attached image is based on all the methods I posted and as you can see, the date fields are displayed. I will do some tests to see what may possibly be wrong with your configuration.
author-view.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44091
Joined: Sat Apr 05, 2008 9:58 pm

Re: What happened to start publishing/end publishing options?

Post by Webdongle » Sat Sep 22, 2018 10:09 am

'Edit state' is the Permission that allows Article publishing options. I would suggest putting a user in a User group that has that option Allowed or create a User group (with Author as Parent) then Allow 'Edit state' for that new group.

It is not wise to alter the Permissions of the default user groups. Always better to create a new User group (with Parent that has minimum required Permissions) and add Permissions. The Permissions can be set in Global config then added to in the individual Components Options.

Use Pen and Paper to work out what User groups and Permissions you need. By using Pen and Paper you will see more clearly how complex you are making your ACL.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
tegang_berbisa
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sun Jan 21, 2007 8:08 am
Contact:

Re: What happened to start publishing/end publishing options?

Post by tegang_berbisa » Sat Sep 22, 2018 11:51 am

Thanks annahersh and wendongle.
I managed to get the publishing start/end options to appeared exactly like the one shown on annahersh's attachment.
The only problem is the author now has the right to choose to publish and then publish the article!

Any idea how to make the option to publish disable for the author or simply make unpublished is default for that option?
-Think Different-

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44091
Joined: Sat Apr 05, 2008 9:58 pm

Re: What happened to start publishing/end publishing options?

Post by Webdongle » Sat Sep 22, 2018 1:38 pm

Publish start date and end are part of publishing. If someone is trusted to set start and end publishing dates then it is a prerequisite that they can publish and unpublish an Article manually. Therefore (even though the default is Published for those who have those Permissions) they are trusted to choose to change to unpublished.

In short ... If you trust them to set start and end publish date it would be ridiculous for you not to trust them to manually publish/unpublish.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

annahersh
Joomla! Guru
Joomla! Guru
Posts: 734
Joined: Wed Aug 15, 2018 8:23 pm

Re: What happened to start publishing/end publishing options?

Post by annahersh » Sat Sep 22, 2018 7:41 pm

tegang_berbisa wrote:
Sat Sep 22, 2018 11:51 am
The only problem is the author now has the right to choose to publish and then publish the article!

Any idea how to make the option to publish disable for the author or simply make unpublished is default for that option?
That is the default behavior, however it can be easily altered with an override of edit.php
copy the file from components/com_content/views/form/tmpl/
to templates/protostar/html/com_content/form/

Edit the override file (edit.php) and place the following at the top just before the ending php tag ?>

Code: Select all

foreach($this->form->getXml()->fieldset->field as $param) {
	// remove editor content plugin buttons
	$param->attributes()->buttons = false;

    // stretch the title field to full width
	if( $param->attributes()->name == 'title' )
		$param->attributes()->class = 'span12';
		
	// ensure publish state default to unpublished
	if( $param->attributes()->name == 'state' )
		$param->attributes()->default = 0;
}

// disable the author group's ability to change publish state if current user is in that group
$notallowed = in_array(3, JAccess::getGroupsByUser(JFactory::getUser()->id));
Now in the HTML coding, find the line that reads <?php if ($this->item->params->get('access-change')) : ?>

and edit it as below

Code: Select all

<?php if ($this->item->params->get('access-change')) : ?>
    <?php 
    // if the user belongs to the author group, do not show publish state and featured fields
    if( $notallowed ) {}else{
        echo $this->form->renderField('state'); 
        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; ?>
publish-fields.jpg
content-tab.jpg
You do not have the required permissions to view the files attached to this post.


Locked

Return to “Extensions for Joomla! 3.x”