I'm finishing up my work on the JA Essence template, and I've got a few remaining questions that I just can't figure out.

-On the Search function, the results page includes Home Page modules. Is there any way to not have those modules appear on the results page?

-For articles, I can't find where to turn off the "Author's latest articles" and "Share article" links. (See below.) Where is that function located at?

-Finally, I'm trying to add a mailto link in an article, but the function doesn't seem to work correctly. Clicking on the link doesn't open a mail tab, or a mail app.

Any help with these lingering issues would be appreciated! Thanks!

    Hi kamenriderdie,
    To hide the module in the result page, you can go to the backend > Modules and search the main-bottom-1 position and open the Gallery (Note: Exclude Home 5).
    Then open the Menu Assignment tabs to configure the page that you want to show/hide the module.

    To remove the share article, and author latest articles, you can open the \templates\ja_essence\html\com_content\article\default.php file and remove the following code:

    Share article - Line 245:

    <div class="share-social">
    	<div class="title-txt">
    		<h6><?php echo Text::_('TPL_SHARE_ARTICLE'); ?></h6>
    	</div>
    	
    	<div class="ja-share-button" services="facebook,twitter,linkedin" layout="default" ></div>
    </div>

    Author latest articles - line 273 to end file.

    <div class="title-sc-author h1">
    	<?php echo Text::_('TPL_AUTHOR_ARTICLE_LASTEST'); ?>
    </div>
    
    <?php 
    	if (!isset($this->item->created_by)) return;
    
    	$author_id = $this->item->created_by;
    	$author_name = $this->item->author;
    	$current_article_id = $this->item->id;
    	$limit_article = 2;
    
    	$list = JATemplateHelper::getArticlesBaseOnAuthor($author_id, $current_article_id, $limit_article);
    	if (empty($list)) return;
    
    ?>
    
    <div class="author-related-items relateditems type-1 <?php echo $moduleclass_sfx??''; ?> mod-list">
        <div class="row">
                      ...........................
    	                    </div>
    	                </div>
    	            </div>
                </div>
            <?php endforeach; ?>
        </div>
    </div>

    Thanks so much for the response!

    Trimming the code for the article changes worked great, but the suggestion to fix the Search results didn't work. (I'd actually had that module turned off entirely, prior to this.) The module is set to No Pages, but the modules in the main-top-1 position still show up on the Search Results page. They're each set for only showing up on the Home page.



    kamenriderdie -On the Search function, the results page includes Home Page modules. Is there any way to not have those modules appear on the results page?

    Greetings

    I guess there is not menu item type of Smart Search created on your site yet. You could create one and go to backend settings of the smart search module and assign it to created menu item.

    It will show the search results in its own menu item instead of homepage then.

    Regards

    Write a Reply...
    You need to Login to view replies.