default userpic

Editing Search Results template

Vote 0 Votes

I'm trying to create a custom Search Results template that matches the look of the index page, etc. I'm stymied about how to eliminate the part of the results that shows the author's icon and when the returned result was posted. Those elements just aren't relevant in this particular case. Where do I find this stuff so I can remove it safely, without messing up the rest of the template?

Thanks...

Reported on Movable Type 4.3

4 Replies

| Add a Reply
  • think its a global template module that goes by the name "Userpic". It gets sourced in through the Comment Detail template module, which in turn gets included by Comment Listing.

  • 1. Author's Icon

    The author's icon is filled in from the "Userpic" template module. You will have to remove it's reference. I will explain you how to do it.

    First let me say that the reply provided by "Web Nomad" above is partly true, in the sense that the "Userpic" module is not provided only on the "Comment Detail" module, but also on the "Entry Metadata" module which is relevant in your case.

    Let me guide you on how to get rid of the author's photo on your "Search Results" system template.

    When you go to this system template you would see that it includes a module called "Entry Summary", that module itself includes "Entry Metadata" and this one references itself the "Userpic" module.

    If you get rid of the "Userpic" module reference from inside the "Entry Metadata" module this change would be applied also to other page types and you may not like that.


    So, you could either:

    1.1. remove the mt:include coding referencing "Userpic" from "Entry Metadata", but be aware that this change would be reflected also on other page types (main page and entry listing).

    1.2. just replace the mt:include coding referencing "Entry Summary" from the "Search Results" system template with the coding from inside the "Entry Summary" (also replacing the mt:include coding referencing "Entry Metadata" with the coding from inside "Entry Metadata" excepting "Userpic").

    1.3. a third solution and the easiest for less technical people is to clone "Entry Summary" and "Entry Metadata" and add to the cloned versions the suffix "(Without Author Icon)".

    On the "Search Results" system template you would change:

    mt:Include module="Entry Summary"

    With:

    mt:Include module="Entry Summary (Without Author Icon)"


    Then on the "Entry Summary (Without Author Icon)" template module you would replace:

    mt:Include module="Entry Metadata"

    with:

    mt:Include module="Entry Metadata (Without Author Icon)"


    Finally, on the "Entry Metadata (Without Author Icon)" template module you would REMOVE:

    <$mt:Include module="Userpic" userpic_size="36"$>


    2) When the returned result was posted

    If you've followed the solution 1.3 that I've explained above, you would have to remove the EntryDate tag from the "Entry Metadata (Without Author Icon)" template module.

  • You're welcome and I'm glad it's helpful for you ;)

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012