TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 118
  • Total: 118

Hide article category?

Started by Bloodlvst, December 09, 2010, 01:50:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bloodlvst

I'm trying to make a featured article for my frontpage, and make it permanent, but not look like your standard article. In fact, a lot of my articles would benefit from this. Is there any way to remove the "posted in <category>" from the top of articles...at least on the front page?

I've combed through every setting and am about to pull my hair out lol.

IchBin

That is why there is the custom option for frontpage display called "Use custom template". You can modify that code to suit your custom display. Otherwise, you have to manually edit the code in the TP files.

WillyP

Is there any documentation anywhere for this feature?

IchBin

Not that I know of. It's pretty simple to understand. You just remove the parts or change the HTML to fit what you want.

Lesmond

I have tried it here, but nothing happens :o

I removed this  {article_category} from the section below, and checked "Use custom template"
<h3 class="catbg"><span class="left"></span>{article_shortdate} {article_title}  {article_category}</h3>

IchBin

That part should remove the category from the bar at the top. Go a little further down in the code and you'll see the spot that will remove the text for the category for the actual post or article. It's working for me on both SMF1 and SMF2 in the latest release of TP.

Bloodlvst

Thanks IchBin, that worked perfectly.

I actually assumed that would work, but it was going to be a last resort...if there was a pre-built feature or way to do it I would've preferred that over customizing code. ;)

But it works like a charm, kudos!

ZarPrime

There is no way that TinyPortal could have a "Layout Type" for everything that a user might want to do on their site.  This is exactly why there is a custom layout type and this is a perfect use for it.  Topic marked solved. O0

ZarPrime

IchBin

I had one guy that I helped a long time ago that wanted a complete custom layout. He wanted each article with a special graphic border and stuff. The custom layout option sure made it nice and easy to fix it up for him. :)

WillyP

Quote from: IchBin on December 09, 2010, 05:11:44 PM
Not that I know of. It's pretty simple to understand. You just remove the parts or change the HTML to fit what you want.

It would be nice to have a help file with at least a list of tags you can use.

This website is proudly hosted on Crocweb Cloud Website Hosting.