rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: lol24 on February 17, 2016, 09:19:49 AM

Title: Help, Search in comments
Post by: lol24 on February 17, 2016, 09:19:49 AM
Hello everyone, I'm new to HFS and I have a little problem...

I want to search in the comments with the default HFS search. Is it possible?

I want to write tags in the comments (ex.: tag1, tag2), so I can find the files much more faster.

Like if I want to search for "tag1", it will list all the files with "tag1" in it...

Thanks in advance!
Title: Re: Help, Search in comments
Post by: LeoNeeson on February 18, 2016, 09:18:22 AM
Hi! and welcome... :)

I exactly don't know if the latest version has this function, but a couple of years ago, HFS didn't have this feature. See a similar question, HERE (http://www.rejetto.com/forum/html-templates/search-file-by-its-comment/).

Wait for the answer of Rejetto or another member, just to be sure...
Title: Re: Help, Search in comments
Post by: bmartino1 on February 18, 2016, 05:50:26 PM
if i recal correctly, no, hfs alone still doesn't have this, but a template did.

It looks like your wanting tags and tag search, i recal a template having that...

i thought it was thunderchicken of glory....
Title: Re: Help, Search in comments
Post by: lol24 on February 19, 2016, 08:51:39 AM
if i recal correctly, no, hfs alone still doesn't have this, but a template did.

It looks like your wanting tags and tag search, i recal a template having that...

i thought it was thunderchicken of glory....

I don't really find anything tag related in any of the tempelates... :/
Title: Re: Help, Search in comments
Post by: LeoNeeson on February 20, 2016, 11:58:03 AM
i thought it was thunderchicken of glory....
I don't really find anything tag related in any of the tempelates... :/
You can download the template Thunderchicken of Glory v4.0.3 (http://www.rejetto.com/forum/rawr-designs/thunderchicken-of-glory-v4-0-3-released/), HERE (http://rawr.thatstevensguy.com/projects/3/4.0.3/thunderchicken_of_glory-4.0.3.zip). (http://www.rejetto.com/forum/rawr-designs/latest-releases/)
(This doesn't mean this template has that feature, just try it)
Title: Re: Help, Search in comments
Post by: lol24 on February 20, 2016, 12:23:54 PM
You can download the template Thunderchicken of Glory v4.0.3 (http://www.rejetto.com/forum/rawr-designs/thunderchicken-of-glory-v4-0-3-released/), HERE (http://rawr.thatstevensguy.com/projects/3/4.0.3/thunderchicken_of_glory-4.0.3.zip). (http://www.rejetto.com/forum/rawr-designs/latest-releases/)
(This doesn't mean this template has that feature, just try it)

No tag search in this tempelate, sadly :(
Title: Re: Help, Search in comments
Post by: LeoNeeson on February 21, 2016, 05:56:37 AM
Sorry, I don't know what else to say about this... :-[
Title: Re: Help, Search in comments
Post by: bmartino1 on February 22, 2016, 03:45:36 AM
html progmr it manulay:

http://www.w3schools.com/tags/tag_meta.asp

https://searchenginewatch.com/sew/how-to/2067564/how-to-use-html-meta-tags
Title: Re: Help, Search in comments
Post by: rejetto on March 06, 2016, 06:25:41 PM
i confirm that feature is not available.
I guess you don't want it just in the same folder, as in that case you would just use the browser 'search' for text in the page.
Anway, it's not impossible to be programmed inside the template itself, but surely it's not easy.
Title: Re: Help, Search in comments
Post by: teslaman on April 28, 2023, 11:50:46 PM
I am looking to do this too and thought I'd share what I came up with, in case anyone else is still looking for a solution. It's not pretty, but it's simple and gets the job done. To show up in the search results, I created a virtual "Tag" folder and created null files (no extension) for the tags, like "folder name - tag1, tag2, tag3". Then I created the "hfs.comments.txt" in the Tag folder, where you can add a link to the "tagged" folder, like:
Code: [Select]
folder name - tag1, tag2, tag3=<a href="/link/to/folder/" target="_blank">Open Folder</a>
If you could replace the null file link with the folder link, then you wouldn't need the "Open Folder" comment link, but I don't know a way to do that.