-
AuthorPosts
-
obliat Friend
obliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
April 10, 2011 at 9:18 pm #162606I’ve set my JA_News FP to show Last modified on instead of Created date on the lead news story (K2), but now it updates with the current time every time I refresh the site no matter I’m not editing the item in the Back-end?
How do I fix this?
thangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
April 14, 2011 at 4:38 am #386281Please submit your login information (FTP/Admin) via IEG-173-44026. We should check with further detail for you.
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
April 15, 2011 at 8:46 am #386518Ticket updated – in hosting cPanel File Manager is under Файлов мениджър (as it’s in Bulgarian)
Can you also please check why my Home page K2 items pics (as well as K2 blog page pics) are not linked (I can a href them in the items but would like to have this in the code if possible – explained in detail in this thread )
thangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
April 16, 2011 at 3:23 am #386634I have checked your site and seen that you have chosen “Most recent first” not “last modified”. I have changed it for you and now, it keeps after each refresh
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
April 16, 2011 at 8:52 am #386664Hi thangnn1510,
I didn’t mean that – I have manually changed the code to make JA News FP show “Last modified on” as a date instead of “Created date” (and not “Latest modified”) – I was not talking about module or categories settings in the back-end. So what happens is that “Last modified on” must show your last time you edit the item in the back-end, right? And instead it shows the current time with every refresh.In other words let say that I modify the lead news story in JA News FP in 12:45 than if I refresh the page in 12:50 it should still show “Last modified on” 12:45, but it shows the current computer time not “Last modified on”.
Basically I want to show Most recent items, but instead of having a “created date” – to show “last modified on” date/hour
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
April 16, 2011 at 9:04 am #386668Its me of course that made a mistake – I coded it like:
<div><?php echo JText::_('Last modified on'); ?> <?php echo JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC5')); ?></div>
and I created this LC5 custom date – but it does not show Last modified on actually, but just my custom date. I have to fix the code or just leave it as you made it – to show Last modified on.
I also think Latest modified and Last modified on are completely different things.
Latest modified will show last modified item as leading news, and that’s not what I want – I need to keep them show with Most recent first, but the Lead news story to show when it was last modified within the time it is Leading. And then when I create new story it becomes Lead story and if I modify it in 10 minutes to show this mod time. This way if there is a development on the story while it is Lead (Breaking news) story – people will see the time it was updated at.
Inside K2 Items it successufully shows “Last modified on” at the end of the Item/article – that’s exactly what I want to show at JA News FP Lead news story below the title. Question is why my (above) code is OK and FP module shows current, but not last modified on time (I changed to LC2 and it still shows current, not LMO.
It maybe needs more coding like adding
<?php if($this->item->params->get('catItemDateModified')): ?>
or what?thangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
April 18, 2011 at 7:32 am #386813Dear obliat!
Sorry but we can’t help to customize code of the module, all custom works are done by users.
Thanks for your understanding!
obliat Friendobliat
- Join date:
- December 2010
- Posts:
- 416
- Downloads:
- 12
- Uploads:
- 64
- Thanks:
- 108
- Thanked:
- 31 times in 1 posts
April 18, 2011 at 6:08 pm #386974You could’ve save me 3 days if you would say that earlier.
Thank you. I will try to work it out and post my solution for other’s that may benefit from it.
-
AuthorPosts
This topic contains 9 replies, has 2 voices, and was last updated by obliat 13 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum