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.
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.
Is there any documentation anywhere for this feature?
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.
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>
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.
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!
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
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. :)
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.
Yeah, I agree. I was thinking about looking into that code to see how those are used, and what is available.
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