Joomla.it Forum
Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => : Marksss 11 Jan 2011, 12:33:57
-
Ciao a tutti, ho un sito in fase di realizzazione da tempo..
Mi sono accorto che le news che pubblico nel modo mod_newsflash non appaiono, a meno che io non le imposti con una data di creazione e pubblicazione antecedente a quella odierna..
Com'è possibile questa cosa?
Qualcuno mi può aiutare?
Grazie!!
-
up..
-
up
-
svuota la cache, del sito e del browser
stai parlando del modulo di default?
cioè di quello che sta nella installazione
-
Controlla che non ci siano categorie da scegliere e/o sezioni!
-
svuota la cache, del sito e del browser
stai parlando del modulo di default?
cioè di quello che sta nella installazione
Ho svuotato la cache e provato con altri browser.
Si, il modulo di default.
-
Controlla che non ci siano categorie da scegliere e/o sezioni!
Si, quella parte è ok.
-
At first, i'm sorry. I don't speak italian, but i can read a few words.
The answer of the question is in the db.
In the table "jos_content" u can see the properties that you can get from the object $item of the mod_newsflash. (see the /modules/mod_newsflash/tpl/_item.php file).
There, we can find the the informations of all articles, including what you want: "publish_up", and "created".
So, what you have to do is get the information like this: $item->publish_up or $item->created and put it into the JText pattern.
Like:
<?php echo JHTML::_('date', $item->publish_up, JText::_('DATE_FORMAT_LC2')); ?>
or
<?php echo JHTML::_('date', $item->created, JText::_('DATE_FORMAT_LC2')); ?>
I wish it could help. Cheers from Brazil.
-
Hi, thank you for reply!!
I read the file, but I don't understand where I have to modify..
This is the file <?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<?php if ($params->get('item_title')) : ?>
<table class="contentpaneopen<?php echo $params->get( 'moduleclass_sfx' ); ?>">
<tr>
<td class="contentheading<?php echo $params->get( 'moduleclass_sfx' ); ?>" width="100%">
<?php if ($params->get('link_titles') && $item->linkOn != '') : ?>
<a href="<?php echo $item->linkOn;?>" class="contentpagetitle<?php echo $params->get( 'moduleclass_sfx' ); ?>">
<?php echo $item->title;?></a>
<?php else : ?>
<?php echo $item->title; ?>
<?php endif; ?>
</td>
</tr>
</table>
<?php endif; ?>
<?php if (!$params->get('intro_only')) :
echo $item->afterDisplayTitle;
endif; ?>
<?php echo $item->beforeDisplayContent; ?>
<table class="contentpaneopen<?php echo $params->get( 'moduleclass_sfx' ); ?>">
<tr>
<td valign="top" ><?php echo $item->text; ?></td>
</tr>
<tr>
<td valign="top" >
<?php if (isset($item->linkOn) && $item->readmore && $params->get('readmore')) :
echo '<a class="readmore" href="'.$item->linkOn.'">'.$item->linkText.'</a>';
endif; ?>
</td>
</tr>
</table>
Can you show me? ;D
Thank you!!
-
Up..