Hot answers tagged

5

That's because the $menu->getActive() is not returning an object, and here is because there is no menu item used for the search page. To get rid of the php notice you are seeing, you could first check if the $menu->getActive() is an object and if yes then get its id property. like so: if ( is_object( $menu->getActive() ) ) { //... }


5

Copy the file /modules/mod_search/tmpl/default.php to templates/joomla-template/html/mod_search (make sure that the file doesn't exist under the destination directory first) Add the following to the form tag: enctype="application/x-www-form-urlencoded" So, your form tag should be something like: <form action="<?php echo JRoute::_('index.php');?>"...


5

Ah, I found it! For the benefit of anyone else who can't see how to do this... I was looking for it in the options when configuring the menu item, and in the component options in global config. In fact, you need to look in the component itself. Go to "Components" / "Smart Search", and then pick the "Content Maps" section. You'll see that your content has ...


4

I will focus only on the question itself, about the 2 meta tags and won't expand on what else would make a website SE Friendlier. From the 2 meta tags in question, the one that you should really care and pay attention is the meta description. Although not powerful as it used to be, meta description still has its importance, Google does use it, and it's a ...


3

If you're on a content heavy site (continuously updating), then filling in the meta data for each article wouldn't not be as important, as the search engines will use the global meta data, however if you do have time to fill them fields in, I'd recommend doing so. The meta data used in each article can be helpful though, because if a search engine detects ...


3

The best practice to avoid any unpredictable urls is to create "Articles - Category List" or "Articles - Category Blog" menu items for all your top level article categories. This way all your articles will inherit the url structure from these menu aliases. Go to Menus->Add New Menu Create a Menus say "Articles" Go to that Menus Add the menu item for each ...


3

Joomla has two search options: Search and Smart Search. Depending on which you choose may dictate some factors. For Search (Components > Search) you will need to manually enable gathering search statistics in the options. This is off by default, as it can accumulate massive amounts of data if there's lots of searches on a popular site. Once you're ...


2

Not quite the full answer, BUT someone has already started working on this, though not really a rendering of the search page, more of a menu module, but certainly a very nice start http://www.demo-joomunited.com/tag-transform Very nice component, with demo video showing its full workings


2

Perhaps a simple approach would be to import the Access records as Articles in the #__content table, and use the Categories and/or Tags to separate the Books/DVDs. This way you can leverage all the core search/sort/display features of Joomla without changing a line of code. Additionally, there are endless extensions to search and otherwise work with core ...


2

You can build everything as part of the component. Not sure how the database structure looks like, you need to import it to MySQL (or another supported database), but if you could bring / adapt it to match Joomla needs (id, sorting, etc...), you can rely on JTable / JModelLegacy & Co. for CRUD operations, also in the front-end. => for this you need to ...


2

Just a few quick thoughts: I guess that you want to have a search module that will instantly show search results from a specific category. There are 3rd party search modules that are using AJAX to display results. Many of them might have options to specify categories from which to show the search results. But usually the search results of these modules are ...


2

I had the same problem couldn't find solution on other websites, so fixed it myself. In my case solution was to remove onContentSearch on first line in the file: public_html/plugins/search/fieldsattachmentadvanced/fieldsattachmentadvanced.php Probably the developer put it there by mistake. :)


2

It seems that onContentSearch is written in echo or print_r , you can search the string in code to detect it in search plugin or component used on your site, can check the article content if any is set on this page from admin panel and also check the index file of your template.


2

There is no import option for the Tags component. This will make a such import directly into the database a tough process, as you will have to take into consideration all the fields of the table for each row. An insert statement for each row would look like this: INSERT INTO `cpxns_tags` (`id`, `parent_id`, `lft`, `rgt`, `level`, `path`, `title`, `alias`, `...


2

It's very easy to create your own search plugin as is fully documented at Creating a search plugin.


2

There is an extension for this. You can look it up at the JED, here: http://extensions.joomla.org/extensions/extension/search-a-indexing/site-search/os-pdf-indexer It works only when you have pdf-files that are directly 'printed' from a text-file, not for pdf's that are only an image of a text. When the pdf-files are public over time Google searchbots will ...


2

I believe this is more likely, SEO related question. Joomla has nothing to do with that. But still I can guide you to a nice explanation. https://acrobatusers.com/tutorials/make-your-pdfs-work-well-google-and-other-search-engines Hope this will help.


2

I think you could use JInput to get the ItemId. Try using the following: $jinput = JFactory::getApplication()->input; $ItemId = $jinput->get('Itemid', '', 'INT'); if ($ItemId == 203) { // Something here }


2

You can control this by creating menu items first for the Joomla articles category (blog/newsfeed or whatever), then for the tag component itself. 1. JOOMLA CONTENT You want to have a page where the articles posted under the blog category will be displayed under the same URL scheme, like www.domain.com/blog/article-title. For this you need to have a ...


2

Best option will be if you use Mozilla Firefox, and then install the add-on extension WebDeveloper. That extension will help you a lot with discovering where are you on your HTML code, which CSS class/id is assigned to that specific line, and then easily you can edit your CSS code and see in "live" what you are getting by changing parameters. At the same ...


2

The best way for make this changes is making an override. First, here some docs for make the override step by step: https://docs.joomla.org/J3.x:How_to_use_the_Template_Manager Now you need to create an override in the column: Components > com_search > search You can find the files in: yoursite/templates/yourtemplate/html/com_search/search For the ...


2

Thanks for clarifying the question. I'll leave the Smart Search option in this answer as it may be useful to others in future. Joomla Smart Search Enable Smart Search by enabling the Content - Smart Search plugin and then go to Components -> Smart Search and click on the Index button. Create filters for the required categories at Components -> Smart ...


2

Extra to the default search component, we have another search component called Smart Search. You can find this component in: Components > Smart Search and Extensions > Modules > New > Smart Search You also have some configuration in: System > Global Configuration > Smart Search From here change to show the field Query Explanation, see the screenshot: If ...


2

Your containing div has the class .search and you give that class in custom.css a height of 55px. I assume it's because you want to fit the search button into the main navi. If you want only your search button in the main navi to have a height of 55px use this rule: .head-search .search { height: 55px; }


2

Can you try setting up an alternate page using Components->Smart Search? This might help narrow down whether it is a code problem or server/resource problem. If it is a code problem, check your template's override folder (/templates/TEMPLATE_NAME/html/com_search/) to see if there is a template override causing the problem.


2

The search function is in the navbar which is hidden on narrower screen widths. The relevant HTML is: <div class="t3-navbar navbar-collapse collapse"> and the corresponding CSS is: .collapse { display: none; } The easiest solution is probably to add an additional search module in an alternative module position for narrower screen widths.


2

Ok, after a bit more in depth digging the following fixed the issue: @media (min-width:768px) and (max-width:991px) { #t3-mainnav .t3-navbar.navbar-collapse.collapse { display:block; height:0px; border:none; background:none; box-shadow:none; position:static; } .t3-megamenu { display:...


2

First of all. This is potentially an awesome idea you have for searcheable admin custom fields. This could be done using template override and/or layout override of JPATH_ADMINISTRATOR/components/com_content/articles/default.php And create a dedicated search plugin, better yet a system plugin eg: plg_system_searchcustomfields to hook into content ...


2

It's important to keep your software up-to-date.Your Joomla 3.6.4 has been released in October 2016. The most recent Joomla version is Joomla 3.9.19 (June 2020). In between those versions, whole bunch of issues (including some security issues) have been fixed. It's a waste of time to try fixing issues with outdated software. Those issues might have been ...


Only top voted, non community-wiki answers of a minimum length are eligible