2013-07-21, 01:43:38
I'm trying to set up news management (multilanguage) with SpecialPages plugin.
So, in my "Company News" SpecialPageType setup, I use the following code in the "view" tab:
And this one in the "search" tab field:
The last function is called by a string in the page where I want to show recent news list without headings:
Now i just have to create special pages section and add translations via ViewAllPagesIl8N menu if required..
Everything seems to be fine, but I'm not sure if this is the correct way of using this plugin..
How can I change the way the DateFormat is shown on the full news page? I want it to be the same as in a recent news list ("%d/%m/%Y"). Please help!
So, in my "Company News" SpecialPageType setup, I use the following code in the "view" tab:
Code:
<h2><?php get_special_field('title','',false); ?></h2>
<p class="small"><?php get_special_field_date('pubDate', $dateFormat); ?></p>
<?php get_special_field('content'); ?>
And this one in the "search" tab field:
Code:
<?php if ($showDate) { ?>
<p class="small">
<?php get_special_field_date('creDate', $dateFormat); ?>
</p>
<?php } ?>
<?php get_special_field_excerpt('content', $numWords); ?>
<p class="link-full"><a href="<?php get_special_field('link','',false); ?>">
<?php echo "Read more..."; ?>
</a></p>
The last function is called by a string in the page where I want to show recent news list without headings:
Code:
(% searchresults tags:compnews max:4 i18n:0 lang:en DATE_FORMAT:"%d/%m/%Y" order:created showPaging:0 numWords:1p HEADER="" %)
Now i just have to create special pages section and add translations via ViewAllPagesIl8N menu if required..
Everything seems to be fine, but I'm not sure if this is the correct way of using this plugin..
How can I change the way the DateFormat is shown on the full news page? I want it to be the same as in a recent news list ("%d/%m/%Y"). Please help!