TinyPortal

Development => Support => Topic started by: Bloodlvst on December 09, 2010, 01:50:34 AM

Title: Hide article category?
Post by: Bloodlvst on December 09, 2010, 01:50:34 AM
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.
Title: Re: Hide article category?
Post by: IchBin on December 09, 2010, 03:41:43 PM
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.
Title: Re: Hide article category?
Post by: WillyP on December 09, 2010, 04:35:18 PM
Is there any documentation anywhere for this feature?
Title: Re: Hide article category?
Post by: 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.
Title: Re: Hide article category?
Post by: Lesmond on December 09, 2010, 05:46:04 PM
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>
Title: Re: Hide article category?
Post by: IchBin on December 09, 2010, 06:08:51 PM
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.
Title: Re: Hide article category?
Post by: Bloodlvst on December 11, 2010, 03:59:44 AM
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!
Title: Re: Hide article category?
Post by: ZarPrime on December 12, 2010, 02:29:14 PM
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
Title: Re: Hide article category?
Post by: IchBin on December 13, 2010, 04:11:11 AM
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. :)
Title: Re: Hide article category?
Post by: WillyP on December 13, 2010, 12:50:24 PM
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.
Title: Re: Hide article category?
Post by: IchBin on December 13, 2010, 05:33:03 PM
Yeah, I agree. I was thinking about looking into that code to see how those are used, and what is available.
Title: Re: Hide article category?
Post by: ZarPrime on December 14, 2010, 01:44:44 PM
I remember that, back a couple of months ago, someone asked about showing an image and what tag was required to do that.  I had to do a little searching to figure it out but I finally found it.  It was sort of like a trial and error thing trying to figure it out.  It would be nice to know what tags can be used for this.

ZarPrime

Edit:  Ah, OK, found it.  Here's the post where I found the correct tag for the user to use for his custom layout, trial and error --> http://www.tinyportal.net/index.php?topic=33291.msg266991#msg266991