Joomla Unpublished Articles

DaveOzric
875 Posts
DaveOzric posted this 04 March 2016

Hello, I was confused and thought my unpublished articles were showing on my frontend. Then I realized when logged into Joomla you can see all articles.

How do you set this so it's like Artisteer or native Joomla where they look different? Articles were a light blue container when unpublished in my Artisteer templates.

Thanks

Hello, I was confused and thought my unpublished articles were showing on my frontend. Then I realized when logged into Joomla you can see all articles. How do you set this so it's like Artisteer or native Joomla where they look different? Articles were a light blue container when unpublished in my Artisteer templates. Thanks
Vote to pay developers attention to this features or issue.
5 Comments
Order By: Standard | Newest
ttigerwods
1 Posts
ttigerwods posted this 12 June 2019

In Joomla 3 you usually need to create a Guest user group and Guest access level.

Set Guest user group parent to publish.

Set Guest access level to Guest User Group.

In the options of user component set the Guest User Group to Guest.

I hope it's help.

In Joomla 3 you usually need to create a Guest user group and Guest access level. Set Guest user group parent to publish. Set Guest access level to Guest User Group. In the options of user component set the Guest User Group to Guest. I hope it's help.
Scorpion Computers & Software
93 Posts
Scorpion Computers & Software posted this 11 February 2017

This is the full solution that i asked Thempler to implement in the new release:

Add the following code to
line 33: /html/com_content/category/blog_item.php
and to
line 13: /html/com_content/article/default_template.php

$params['state'] = $this->item->state;
$params['publish_up'] = $this->item->publish_up;
$params['publish_down'] = $this->item->publish_down;

Then in my case i have added CMS-code, but this should be a Post State field in Themler.

<?php if ($data['state'] == 0) : ?>
    <span class="badge warning">
        <?php echo JText::_('JUNPUBLISHED'); ?>
    </span>
<?php endif; ?>


<?php if (strtotime($data['publish_up']) > strtotime(JFactory::getDate())) : ?>
    <span class="badge warning">
      <?php echo JText::_('JNOTPUBLISHEDYET'); ?>
    </span>
<?php endif; ?>


<?php if ((strtotime($data['publish_down']) < strtotime(JFactory::getDate())) && $data['publish_down'] != JFactory::getDbo()->getNullDate()) : ?>
    <span class="badge warning">
      <?php echo JText::_('JEXPIRED'); ?>
    </span>
<?php endif; ?>

This is the full solution that i asked Thempler to implement in the new release: Add the following code to line 33: /html/com_content/category/blog_item.php and to line 13: /html/com_content/article/default_template.php $params['state'] = $this->item->state; $params['publish_up'] = $this->item->publish_up; $params['publish_down'] = $this->item->publish_down; Then in my case i have added CMS-code, but this should be a **Post State** field in Themler. <?php if ($data['state'] == 0) : ?> <span class="badge warning"> <?php echo JText::_('JUNPUBLISHED'); ?> </span> <?php endif; ?> <?php if (strtotime($data['publish_up']) > strtotime(JFactory::getDate())) : ?> <span class="badge warning"> <?php echo JText::_('JNOTPUBLISHEDYET'); ?> </span> <?php endif; ?> <?php if ((strtotime($data['publish_down']) < strtotime(JFactory::getDate())) && $data['publish_down'] != JFactory::getDbo()->getNullDate()) : ?> <span class="badge warning"> <?php echo JText::_('JEXPIRED'); ?> </span> <?php endif; ?>
Scorpion Computers & Software
93 Posts
Scorpion Computers & Software posted this 11 February 2017

Maybe it should be high priority to implement all the basic features of the Joomla! CMS. It is one of the main products supported by Themler.

I have looked into the code of the standard protostar template and there is a state of the article which indicated if an article is published. They also look at the dates of the article to show if they might not be expired or not yet published.

This is the code from the default template:

<?php if ($this->item->state == 0) : ?>
    <span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
<?php endif; ?>
<?php if (strtotime($this->item->publish_up) > strtotime(JFactory::getDate())) : ?>
    <span class="label label-warning"><?php echo JText::_('JNOTPUBLISHEDYET'); ?></span>
<?php endif; ?>
<?php if ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate()) : ?>
    <span class="label label-warning"><?php echo JText::_('JEXPIRED'); ?></span>
<?php endif; ?>

I don't have these values, so i can't use a CMS-code control. But it should be default. Lot of people use front-end editing. It is one of the big differences with other CMS-ses. So please Thempler will you implement this?

Maybe it should be high priority to implement all the basic features of the Joomla! CMS. It is one of the main products supported by Themler. I have looked into the code of the standard protostar template and there is a state of the article which indicated if an article is published. They also look at the dates of the article to show if they might not be expired or not yet published. This is the code from the default template: <?php if ($this->item->state == 0) : ?> <span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span> <?php endif; ?> <?php if (strtotime($this->item->publish_up) > strtotime(JFactory::getDate())) : ?> <span class="label label-warning"><?php echo JText::_('JNOTPUBLISHEDYET'); ?></span> <?php endif; ?> <?php if ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate()) : ?> <span class="label label-warning"><?php echo JText::_('JEXPIRED'); ?></span> <?php endif; ?> I don't have these values, so i can't use a CMS-code control. But it should be default. Lot of people use front-end editing. It is one of the big differences with other CMS-ses. So please Thempler will you implement this?
DaveOzric
875 Posts
DaveOzric posted this 05 March 2016

Hello, just checking. Not 100% sure of all the settings in this amazing programs. It certainly is not a high priority as you stated. I appreciate your help.

Hello, just checking. Not 100% sure of all the settings in this amazing programs. It certainly is not a high priority as you stated. I appreciate your help.
Support Team
Support Team posted this 05 March 2016

Hi,

How do you set this so it's like Artisteer or native Joomla where they look different?

As I can see protostar theme adds a label "Unpublished". That's all. Themler theme is built using various controls. Therefore Themler needs specific control to show this label. This task is in our list-to-do but with low priority. Therefore I can't say when it will be implemented.

Thank you,
Olivia

Hi, > How do you set this so it's like Artisteer or native Joomla where they look different? As I can see protostar theme adds a label "Unpublished". That's all. Themler theme is built using various controls. Therefore Themler needs specific control to show this label. This task is in our list-to-do but with low priority. Therefore I can't say when it will be implemented. Thank you, Olivia
You must log in or register to leave comments