Hi! Is there a way for the "search module" to search thru metadata?
Like searching thru keywords..
Search Module question..
Re: Search Module question..
The only way I think this might work is to create a "keywords" content block with all your keywords used within your meta.
Then that would be applied to the "keywords" meta tag in your template and the search function could pick it up.
Then that would be applied to the "keywords" meta tag in your template and the search function could pick it up.
~ Life is like water, every movement you make changes the way it flows ~
Re: Search Module question..
mrenigma,
can you show me how to put a content block in a meta tag?
can you show me how to put a content block in a meta tag?
Re: Search Module question..
Hi Minefox,
The easiest way would be to have your header stored in a Global Content Block and then on your template write something similar to this:
Within the header template you would want to then call:
The easiest way would be to have your header stored in a Global Content Block and then on your template write something similar to this:
Code: Select all
{content block="metaKeywords" label="Meta Keywords" oneline=true assign="keywords"}
{global_content name="header"}
... rest of template ...
Code: Select all
.. Usual start to HTML and <head> ...
{if !empty($keywords)}
<meta name="keywords" content="{$keywords}" />
{/if}
.. Rest of HTML header ...
~ Life is like water, every movement you make changes the way it flows ~
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Search Module question..
Easiest way would be something like:can you show me how to put a content block in a meta tag?
<meta name="keywords" content="{content block='keywords' oneline='true' label='Enter SEO keywords here'}"/>
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Search Module question..
Hi calguy1000,
Got your code working in my specific page. But still the Search function was not able to find the keyword i placed inside the content block. ie
In Content Block the keywords are "Minefox, Dude". This content block is specific for a certain page. Inside the page, I put in the Page Specific Metadata a code that looks like this
Got your code working in my specific page. But still the Search function was not able to find the keyword i placed inside the content block. ie
In Content Block the keywords are "Minefox, Dude". This content block is specific for a certain page. Inside the page, I put in the Page Specific Metadata a code that looks like this
<meta name="keywords" content="{global_content name='keyword1' oneline='true' label='SEO keyword'}"/>
Re: Search Module question..
Have you tried going to the Search module under "Extensions" and clicking the "reindex" button?
~ Life is like water, every movement you make changes the way it flows ~