Keyword

Frontend Modification

  • Tomas Tovt
  • Tomas Tovt's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 months ago #98284 by Tomas Tovt
Frontend Modification was created by Tomas Tovt
In frontend there is a category list, where the publisher is select the category for the content. This list is included all categories. How can I left there only one category (etc. "Blogs") and hide other ones?

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #98285 by william white
Replied by william white on topic Frontend Modification
For the frontthismay work for you

Please Log in or Create an account to join the conversation.

  • Tomas Tovt
  • Tomas Tovt's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 months ago #98286 by Tomas Tovt
Replied by Tomas Tovt on topic Frontend Modification
Thanks, William I'll try...

Please Log in or Create an account to join the conversation.

  • Tomas Tovt
  • Tomas Tovt's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 months ago #98287 by Tomas Tovt
Replied by Tomas Tovt on topic Frontend Modification
in my file form.php I have:

<table class="adminform adminFormK2"> <tr> <td><label for="title"><?php echo JText::_('Title'); ?></label></td> <td><input class="text_area" type="text" size="40" name="title" id="title" maxlength="250" value="<?php echo $this->row->title; ?>" /></td> <td><label><?php echo JText::_('Category'); ?></label></td>  <td><?php echo $this->lists; ?></td>  - here we have the list of categories


 

Where I must add the code, and how?:

 

window.addEvent('domready',function () {$$('#catid option').each(function(item, index){if (item.getProperty('disabled'))item.remove();});});


 

Please help...

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum