Publish date in template

More
13 years 2 months ago #31721 by denniskobus
Is het difficult to activate the publiction date to the template. and also to the module?

thanks, dennis

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #31725 by ggppdk
Replied by ggppdk on topic Publish date in template
Publication date?

You mean creation date or publish up date?

If you mean to display creation date, FLEXIcontent universal content Module has parameters for displaying this, and also the SCOPE (filter the results of the list in the module) can use the creation date.


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #31737 by denniskobus
i meant publish up date.
creation date would be an option if it could be edited by other than SuperAdmin.

of course there is always the option of a custom date field but it seems strange to me that with so many core date fields it is not possible to give editors one they can control (while visble in template)

thanks, dennis

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #31739 by ggppdk
Replied by ggppdk on topic Publish date in template
I see , yes you are right it makes sense that in some case we would want to allow editing of creation date

but not allow it to any editor,

you see in many sites it is important, and must always show when an item was really listed in the site !

-- what is more appropriate is add an ACL permission !

e.g. you would give this ACL permission to all registered users or to groups that you select

so you want to display publish up time in FLEXIcontent module? why? item is not visible anyway , right?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #31742 by denniskobus
first: thanks for quick responses!

this is the case: the news-section of our portal we want the visible date to be the date on which the news-event happend.
so in the morning we add news about things that happend the day before in the afternoon (for instance a press conference). the date above the title should be the date of the press conference, not the date we added it to the site.

but:
publish_up can be altered by editors (ic with administrator rights) but not be made visible.

creation date (and modified) can be made visible, but are not editable (which i understand for modified)

basically it doesn't matter which one i can use, as long as it works both in FC component as in FC universal module
(and i dont mind hacking it into either template)

thanks, dennis

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #31745 by ggppdk
Replied by ggppdk on topic Publish date in template
i mean to say that
1. publish-up date is alterable by editors that have publish privilege

2. if publish-up date is not in the past item will not show at all in FLEXIcontent universal content module, is this ok?, will all your items have publish-up date to the past?

3. so since publish-up time will be in the past why don't you use a custom date field ?

about using publish_up in your templates i will add it to available data for every item, in next commit

to use this now, at file helper.php of the module:

Find:
Code:
$lists[$ord]['featured'][$i]->access = $row->access; ... $lists[$ord]['standard'][$i]->access = $row->access;
AND add respectively:
Code:
$lists[$ord]['featured'][$i]->publish_up = $row->publish_up; ... $lists[$ord]['standard'][$i]->publish_up = $row->publish_up;
and then in module template file, e.g. mynews.php
use:
Code:
<?php echo $item->publish_up; ?>

Please considering leaving a review at JED (joomla extensions)

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #31752 by denniskobus

ggppdk wrote: i mean to say that
1. publish-up date is alterable by editors that have publish privilege

alterable, but not visible for visitor

ggppdk wrote: 2. if publish-up date is not in the past item will not show at all in FLEXIcontent universal content module, is this ok?, will all your items have publish-up date to the past?

if we write about something that happened yesterday, we want yersterdays date

ggppdk wrote: 3. so since publish-up time will be in the past why don't you use a custom date field ?

because most of the time the automatic publication date is fine. we just want to be able to edit it sometimes. And sorting on a custom field is in a module still not possible (but that is in an other thread)

ggppdk wrote: about using publish_up in your templates i will add it to available data for every item, in next commit

that wil give me the option to add it to the template by dragging, like i can do now with most other core fields and custom fields, right?


i did implement your code for de module file, now trying to apply cutom date format to it

thanks

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #31763 by ggppdk
Replied by ggppdk on topic Publish date in template
Hello,

if we write about something that happened yesterday, we want yersterdays date


if it is in future then item will not be visible that is what i meant ... so you cannot display items that have future publish_up anyway. In short i was telling you can use this only and only if all items have past publish up date.

that wil give me the option to add it to the template by dragging, like i can do now with most other core fields and custom fields, right?


no i was not speaking of a new core field, i was speaking of adding ability to used by developers, in templates of FLEXIcontent universal module

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #31776 by denniskobus

In short i was telling you can use this only and only if all items have past publish up date.

clear and workable

no i was not speaking of a new core field, i was speaking of adding ability to used by developers, in templates of FLEXIcontent universal module

ok, but how about displaying it in the component templates? i thought i would be able to drag it in the tempate (in category or item view) like create date and other core fields. i'm not sure if that requires a new core field or just making an already existing (joomla)field visible.

regards, dennis

ps. i will register to JED especially to add a review to flexicontent, but how about updating it to a 2.5 compatible component there?

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #31778 by ggppdk
Replied by ggppdk on topic Publish date in template
In template you will have to modify template files (remember to duplicate them first via template manager)


1. the category_items.php (category view)
and add either (blog template):
Code:
<?php echo $item->publish_up ?>
or
Code:
<?php echo $items[$i]->publish_up ?>

3. item.php (item view)
and add:
Code:
<?php echo $item->publish_up ?>


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save