[SOLVED] <!-- pageAttribute: NotSearchable --> not working for page title

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
eh
Forum Members
Forum Members
Posts: 29
Joined: Sun Oct 07, 2007 1:19 pm

[SOLVED] <!-- pageAttribute: NotSearchable --> not working for page title

Post by eh »

The in the page text doesn't prevent the search module from listing a page in the search results when the title of the page matches the search criteria.

For example:

If there's a page with title or menu text "should be hidden" and in the page contents there is the tag then a search for "should" lists the page in the results list.

Question:

Must the appear somewhere else on the page than in the text?

Thanks for any reply!
ernst

--------------------------------------------------------------------------

Found out by myself:

Have to enter the tag in HTML mode of TinyMCE. If entering in WYSIWIG mode the get converted to the HTML codes for these special chars (< / >) and thus won't be recognized by the search module.
Last edited by eh on Sun Jan 11, 2009 8:46 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: [SOLVED] <!-- pageAttribute: NotSearchable --> not working for page title

Post by Dr.CSS »

No kidding, tiny does the job of cleaning up the code like it's supposed to, that you shouldn't be putting in it any way, have you tried putting that in the metadata box in the options tab, it should probably say that anyways instead of just in the template...
eh
Forum Members
Forum Members
Posts: 29
Joined: Sun Oct 07, 2007 1:19 pm

Re: [SOLVED] <!-- pageAttribute: NotSearchable --> not working for page title

Post by eh »

Applies to CMSMS 1.4.1:

- Placing the tag in the "Page Specific Metadata" textbox has no effect.
- Placing the tag in the "Smarty data or logic that is specific to this page" textbox solves the problem.

Applies to CMSMS 1.2.4:

- Placing the tag in the "Metadata" textbox solves the problem.
- For this version there's no "Smarty data or logic that is specific to this page".

Conclusion:

The version independent solution seems to be by entering the tag in the page contents in HTML edit mode.

Thanks for your hint anyway!
Ernst
Last edited by eh on Mon Jan 12, 2009 1:03 pm, edited 1 time in total.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm
Location: Helsinki, Finland

Re: [SOLVED] <!-- pageAttribute: NotSearchable --> not working for page title

Post by KO »

Best solution would be to update those CMS versions.

Latest 1.5.1 has checkbox for that is called "This page is searchable:". This is on options tab.
eh
Forum Members
Forum Members
Posts: 29
Joined: Sun Oct 07, 2007 1:19 pm

Re: [SOLVED] <!-- pageAttribute: NotSearchable --> not working for page title

Post by eh »

Thanks for that - did the upgrade.
Ernst
Post Reply

Return to “Modules/Add-Ons”