-
AuthorPosts
-
May 14, 2011 at 4:23 am #163988
Hi there,
I had enable the param “modified date and time” from parameters component, however i could not see this shows up from front-end. The code i am copying here:
<?php if ( intval($this->article->modified) !=0 && $this->params->get(‘show_modify_date’)) : ?>
<span class=”modifydate”>
<?php JText::sprintf(‘LAST_UPDATED2’, $this->escape(JHTML::_(‘date’, $this->article->modified, JText::_(‘DATE_FORMAT_LC2’)))); ?>
</span>
<?php endif; ?>is just working for blog content, it does not work for article content
Please advise me how to fix this
Thanks so much!chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
May 14, 2011 at 4:38 am #391155If the Article is associated with the Menu, Then Please check the Menu parameters.
Also check each the particular article parameters option.
Note: If you Find my Post useful please click on the Thanks Icon
May 14, 2011 at 11:59 am #391227Hi Chavan,
I had turn on those parameters from both article and menu parameter setting. This below link can give you more clue as i had quick setup from quickstart demo DB, please look at “Test” menu name
http://joomweb.com/ja_ores_0117
admin: user:admin/pass:123456Thanks
May 18, 2011 at 4:31 am #391729Hi,
Anybody could help me?
Thanks
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
May 18, 2011 at 9:50 am #391795The url is not working http://joomweb.com/ja_ores_0117. Please provide us the right one
May 18, 2011 at 10:19 am #391802Hi Chavan,
Sorry for the link as i would make site quickly. Please follow this link to check: http://brandingdesign.com.vn/site/
Thanks for your help!
May 19, 2011 at 3:18 am #391881Hi Chavan,
Have you found any bugs related to this issue yet?
Thanks
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
May 19, 2011 at 7:05 am #391911This site is not showing up again http://brandingdesign.com.vn/site/.
May 19, 2011 at 8:15 am #391927Strange! it works fine for me
Ok…i will take screenshots instead. please wait a momentMay 19, 2011 at 8:22 am #391929Here are they:
– screenshot1.jpg: the article shows but does not have “last update” field information
– screenshot2_menu.jpg: parameters that i setup for menu
– screenshot3_article.jpg: parameters that i setup for the articleYou could reproduce this issue easily by installing quickstart and try to configure to show last update field for articles only
Thanks
- May 23, 2011 at 4:29 am #392381
is it difficult to reproduce the issue? i posted this question almost 1 week but not see any positive feedback.
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
June 6, 2011 at 8:53 am #394875Hi,
Sorry for the delay.
I could not access you joomla file from FTP or Cpanel access. Everywhere I am getting “Wrong username or password” error. So I am giving few instructions here, following which you will be able to display the last Modified date before the Created Date in Article view.
Go to FTP, and open templates/ja_ores/html/com_content/article/default_default.php
On around line no. 59 you will find the code which displays created date. you need to paste <blockquote><?php if ( intval($this->article->modified) !=0 && $this->params->get(‘show_modify_date’)) : ?>
<span class=”modifydate”>
<?php echo JText::sprintf(‘LAST_UPDATED2’, $this->escape(JHTML::_(‘date’, $this->article->modified, JText::_(‘DATE_FORMAT_LC2’)))); ?>
</span>
<?php endif; ?></blockquote> above or below the created date display code, as you want.from line no. 48 you will see code <blockquote>if (
($this->params->get(‘show_create_date’)) || ($this->params->get(‘show_modify_date’))
|| (($this->params->get(‘show_author’)) ….</blockquote> etcAdd || ($this->params->get(‘show_modify_date’)) after ($this->params->get(‘show_create_date’)) and let the remaining conditions as they are.
Save the file and check if you can see last modified date on your article pages.
If you want show the last modified date on a blog layout or on frontpage blog layout, then you will need the same changes as explained above in emplates/ja_ores/html/com_content/article/default_blog.php or templates/ja_ores/html/com_content/frontpage/default_item.php respectively.
1 user says Thank You to himangi for this useful post
June 6, 2011 at 9:36 am #394885Hi himangi,
Thanks for your instruction. I found in the origin code it missing “echo” at the line no 149, my template version is 1.1.6 (<?php echo JText::sprintf(‘LAST_UPDATED2’, $this->escape(JHTML::_(‘date’, $this->article->modified, JText::_(‘DATE_FORMAT_LC2’)))); ?>
I made modification base on your advice and it works successfully
Again, thank you!
AuthorPostsViewing 13 posts - 1 through 13 (of 13 total)This topic contains 13 replies, has 3 voices, and was last updated by doananh 13 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum