• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

FTS results - column widths

Participant ,
Feb 18, 2011 Feb 18, 2011

Copy link to clipboard

Copied

Does anyone know if it's possible to specify the width of the Title and Rank columns which display the FTS results? At the moment they look like they're 50/50. I'd like to make the Title column as wide as possible and squeeze the Rank column up. Also, can I change the symbol used to sort the columns to an image?

I've had a nosey in whfhost.js, but no joy.

Thanks

Jonathan

Views

1.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Feb 20, 2011 Feb 20, 2011

Just to summarize what is mentioned in the specified thread and answer the second query of inserting an image for sorting...

For reducing Rank column width

1. Search for the function writeTableHead in the file whfhost.js

2. Look for TD ID='OdinFtsRank'. Out of the two occurrences, update the width value of the second one as required.

For example <TD ID='OdinFtsRank' CLASS='fr_tt' STYLE='cursor:pointer; width:15%;'>

This should reduce the column widht value.

For using an image for sorting columns

1. Loo

...

Votes

Translate

Translate
Community Expert ,
Feb 20, 2011 Feb 20, 2011

Copy link to clipboard

Copied

This post might help.

javascript:;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Feb 20, 2011 Feb 20, 2011

Copy link to clipboard

Copied

Just to summarize what is mentioned in the specified thread and answer the second query of inserting an image for sorting...

For reducing Rank column width

1. Search for the function writeTableHead in the file whfhost.js

2. Look for TD ID='OdinFtsRank'. Out of the two occurrences, update the width value of the second one as required.

For example <TD ID='OdinFtsRank' CLASS='fr_tt' STYLE='cursor:pointer; width:15%;'>

This should reduce the column widht value.

For using an image for sorting columns

1. Look for definitions of gsAscendFlag and gsDescendFlag on Line No 29 and 30 as ascending and descending sorting respectively.

2. Replace their values with img tag with necessary attributes. For exmaple: Something like this

gsAscendFlag  = "<img src=\"down_arrow.gif\" />"

Please specify the image path accordingly and do enlose the path with \" --- \" as shown in the example.

I hope this resolves the issue.

Mayank

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 21, 2011 Feb 21, 2011

Copy link to clipboard

Copied

That's brilliant thanks!

I've also removed the Rank column (mentioned in this thread http://forums.adobe.com/thread/660831). However, when the Rank column isn't displayed, the ascending/descending image doesn't display until you click the Title column header. I'm guessing it still thinks the Rank column is the default sort column. Don't suppose you know how to change this to the Title column so that the image is displayed straight away?

Cheers

Jonathan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Feb 21, 2011 Feb 21, 2011

Copy link to clipboard

Copied

This happens becuase, initially the results are displayed sorted by rank columnn which is hidden in your case. They are sorted by Title only when Title header is clicked.

You can update the sorting type so that the initial sorting also happens based on Title.

Update the value of g_nSortType from 0 to 1 at line 49 to change the sorting from Rank basis to Title basis.

var g_nSortType = 1;

Mayank

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 21, 2011 Feb 21, 2011

Copy link to clipboard

Copied

Once again, your advice worked a treat!

Many thanks Mayank

Jonathan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 21, 2011 Feb 21, 2011

Copy link to clipboard

Copied

Actually Mayank, before I let you go. Do you know how I can style the seach progress bar or even replace it with an animated gif?

Jonathan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Feb 21, 2011 Feb 21, 2011

Copy link to clipboard

Copied

@Jonathan. It will be great if you could start a new discussion in a separate thread. Also, it will be helpful for others if you could mark the helpful response in this thread as Answer so that others can refer it directly.

@Leon. Please try following all the steps mentioned in this thread. It should work for you. Or you can mention the exact steps you followed and exact problem you faced.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 22, 2011 Feb 22, 2011

Copy link to clipboard

Copied

No probs, I've started a new thread here: http://forums.adobe.com/thread/794899?tstart=0.

I've marked the thread as Answer too.

Thanks again, you've been a real help!

Jonathan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Feb 22, 2011 Feb 22, 2011

Copy link to clipboard

Copied

The exact steps I followed and the exact problem I faced?

  1. Since I had already disabled the Rank column in the whfhost.js file, I ignored your Feb 21, 2011 1:56 AM instructions on "reducing the Rank column width."
  2. Since I did not want to use ranking images, I ignored your Feb 21, 2011 1:56 AM instructions on "using an image for sorting columns."
  3. Since I did want to "update the sorting type so that the initial sorting also happens based on Title," I followed your Feb 21, 2011 8:00 AM instructions to "Update the value of g_nSortType from 0 to 1 at line 49."


The problem I faced with step 3 was this: your instructions resulted in no change to the default behavior. With a search that produced 18 results:

  • 10 results to a page - page 1 titles sorted by rank, page 2 titles also sorted by rank
  • 20 results to a page - all titles sorted by rank


Leon

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Feb 22, 2011 Feb 22, 2011

Copy link to clipboard

Copied

Ideally the solution should work as per the steps followed by you.

It will be great if you could share the whfhost.js file on your system so that I can look into the exact issue. You can mail me at magrawalATadobeDOTcom

Mayank.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Feb 21, 2011 Feb 21, 2011

Copy link to clipboard

Copied

The change to line 49 didn't work for me, Mayank. The titles are still sorted by Rank.

Leon

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 10, 2011 Oct 10, 2011

Copy link to clipboard

Copied

LATEST

Hello Mayank,

I was just faced with the same problem and found your solution, tried it out and ... it works!! Thanks a lot.

Greetings from Switzerland,

Kurt

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp