[solved] version 5: where did 'subscribe to this category' go?

yorai85
yorai85
  • yorai85
  • 6 months ago

hello maverick,

i'm upgrading community answers from version 4.6.0 to 5.0.0.

since i have many overrides i'm comparing each file from all the views and layouts.

i noticed that for the category pages, the heading area (category's title & sub-categories list) have moved from the 'view' file "views/category/default.php" to a new 'layout' file called "category_search_box".

i'm moving my overrides to the new file, however in that new file i don't see the code for the "subscribe to this category" feature.

in version 4.6.0 it's in "views/category/default.php":

<?php if(!$user->guest):?>

<div class="">

<?php if($this->subscribed):?>

<a href="#" onclick="CjAnswersApi.submitAjaxForm(this, '#adminForm', 'category.unsubscribe', 'onBeforeSubscribeCategory', 'onAfterSubscribeCategory'); return false;"

title="<?php echo JText::_('COM_COMMUNITYANSWERS_CLICK_TO_UNSUBSCRIBE');?>" data-toggle="tooltip">

<i class="fa fa-check-square-o"></i> <?php echo JText::_('COM_COMMUNITYANSWERS_LABEL_SUBSCRIBED');?>

</a>

<?php else :?>

<a href="#" onclick="CjAnswersApi.submitAjaxForm(this, '#adminForm', 'category.subscribe', 'onBeforeSubscribeCategory', 'onAfterSubscribeCategory'); return false;">

<i class="fa fa-envelope"></i> <?php echo JText::_('COM_COMMUNITYANSWERS_LABEL_SUBSCRIBE');?>

</a>

<?php endif;?>

</div>

<?php endif;?>

 

 

where can i find that code in the new version?

 

thank you


Access to viewing replies is restricted.
Showing 3 of 3 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai