1
Sviluppo / Re:Come togliere Pubblicazione dall' editor degli articoli?
« il: 26 Nov 2009, 11:57:28 »
Fantastico!! ci sono riuscito...
Il trucco è andare a modificare il file del template!
il file da modificare è il seguente:
templates\Nome del template\html\com_content\article\form.php
Per togliere la parte Pubblicazione bisogna eliminare le seguenti righe:
<fieldset>
<legend><?php echo JText::_('Publishing'); ?></legend>
<table class="adminform">
<tr>
<td class="key"><label for="sectionid"><?php echo JText::_( 'Section' ); ?>:</label></td>
<td><?php echo $this->lists['sectionid']; ?></td>
</tr>
<tr>
<td class="key"><label for="catid"><?php echo JText::_( 'Category' ); ?>:</label></td>
<td><?php echo $this->lists['catid']; ?></td>
</tr>
<?php if ($this->user->authorize('com_content', 'publish', 'content', 'all')) : ?>
<tr>
<td class="key"><label for="state"><?php echo JText::_( 'Published' ); ?>:</label></td>
<td><?php echo $this->lists['state']; ?></td>
</tr>
<?php endif; ?>
<tr>
<td width="120" class="key"><label for="frontpage"><?php echo JText::_( 'Show on Front Page' ); ?>:</label></td>
<td><?php echo $this->lists['frontpage']; ?></td>
</tr>
<tr>
<td class="key"><label for="created_by_alias"><?php echo JText::_( 'Author Alias' ); ?>:</label></td>
<td><input type="text" id="created_by_alias" name="created_by_alias" size="50" maxlength="100" value="<?php echo $this->article->created_by_alias; ?>" class="inputbox" /></td>
</tr>
<tr>
<td class="key"><label for="publish_up"><?php echo JText::_( 'Start Publishing' ); ?>:</label></td>
<td><?php echo JHTML::_('calendar', $this->article->publish_up, 'publish_up', 'publish_up', '%Y-%m-%d %H:%M:%S', array('class'=>'inputbox', 'size'=>'25', 'maxlength'=>'19')); ?></td>
</tr>
<tr>
<td class="key"><label for="publish_down"><?php echo JText::_( 'Finish Publishing' ); ?>:</label></td>
<td><?php echo JHTML::_('calendar', $this->article->publish_down, 'publish_down', 'publish_down', '%Y-%m-%d %H:%M:%S', array('class'=>'inputbox', 'size'=>'25', 'maxlength'=>'19')); ?></td>
</tr>
<tr>
<td valign="top" class="key"><label for="access"><?php echo JText::_( 'Access Level' ); ?>:</label></td>
<td><?php echo $this->lists['access']; ?></td>
</tr>
<tr>
<td class="key"><label for="ordering"><?php echo JText::_( 'Ordering' ); ?>:</label></td>
<td><?php echo $this->lists['ordering']; ?></td>
</tr>
</table>
</fieldset>
Spero di essere stato utile a qualcuno... Ciao!!!
Il trucco è andare a modificare il file del template!
il file da modificare è il seguente:
templates\Nome del template\html\com_content\article\form.php
Per togliere la parte Pubblicazione bisogna eliminare le seguenti righe:
<fieldset>
<legend><?php echo JText::_('Publishing'); ?></legend>
<table class="adminform">
<tr>
<td class="key"><label for="sectionid"><?php echo JText::_( 'Section' ); ?>:</label></td>
<td><?php echo $this->lists['sectionid']; ?></td>
</tr>
<tr>
<td class="key"><label for="catid"><?php echo JText::_( 'Category' ); ?>:</label></td>
<td><?php echo $this->lists['catid']; ?></td>
</tr>
<?php if ($this->user->authorize('com_content', 'publish', 'content', 'all')) : ?>
<tr>
<td class="key"><label for="state"><?php echo JText::_( 'Published' ); ?>:</label></td>
<td><?php echo $this->lists['state']; ?></td>
</tr>
<?php endif; ?>
<tr>
<td width="120" class="key"><label for="frontpage"><?php echo JText::_( 'Show on Front Page' ); ?>:</label></td>
<td><?php echo $this->lists['frontpage']; ?></td>
</tr>
<tr>
<td class="key"><label for="created_by_alias"><?php echo JText::_( 'Author Alias' ); ?>:</label></td>
<td><input type="text" id="created_by_alias" name="created_by_alias" size="50" maxlength="100" value="<?php echo $this->article->created_by_alias; ?>" class="inputbox" /></td>
</tr>
<tr>
<td class="key"><label for="publish_up"><?php echo JText::_( 'Start Publishing' ); ?>:</label></td>
<td><?php echo JHTML::_('calendar', $this->article->publish_up, 'publish_up', 'publish_up', '%Y-%m-%d %H:%M:%S', array('class'=>'inputbox', 'size'=>'25', 'maxlength'=>'19')); ?></td>
</tr>
<tr>
<td class="key"><label for="publish_down"><?php echo JText::_( 'Finish Publishing' ); ?>:</label></td>
<td><?php echo JHTML::_('calendar', $this->article->publish_down, 'publish_down', 'publish_down', '%Y-%m-%d %H:%M:%S', array('class'=>'inputbox', 'size'=>'25', 'maxlength'=>'19')); ?></td>
</tr>
<tr>
<td valign="top" class="key"><label for="access"><?php echo JText::_( 'Access Level' ); ?>:</label></td>
<td><?php echo $this->lists['access']; ?></td>
</tr>
<tr>
<td class="key"><label for="ordering"><?php echo JText::_( 'Ordering' ); ?>:</label></td>
<td><?php echo $this->lists['ordering']; ?></td>
</tr>
</table>
</fieldset>
Spero di essere stato utile a qualcuno... Ciao!!!