News: TinyPortal Release Schedule. Please read this update for More Info.

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

September 20, 2019, 09:36:01 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 188921
  • Total Topics: 20754
  • Online Today: 130
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 51
Total: 51

Author Topic: Re: Frontpage Articles custom template  (Read 7254 times)

0 Members and 1 Guest are viewing this topic.

Offline HugiN

  • Jr. Member
  • **
  • Posts: 18
  • Very busy
    • Newerth
Re: Frontpage Articles custom template
« on: March 07, 2011, 01:48:30 PM »
Sorry for grabbing out such an old topic - but it fits exactly what i am searching for ;)

Is there any chance i can get the custom template code for "Picture + Article 2". Reason being, i like that style and i want to use it on some Articles without a the picture, but i want the article i use it on to still have an Intro with a picture on the front page. So i would just paste the custom  template code for "Picture + Article 2" in the Category settings and delete the part of the code that is the picture.

For my new page i need the style of "Picture + Article 2" and wondering about if it is possible to have this layout on the frontpage, but the articles themselfs shown without any picture?
« Last Edit: March 08, 2011, 01:17:37 PM by IchBin »

Offline HugiN

  • Jr. Member
  • **
  • Posts: 18
  • Very busy
    • Newerth
Re: Re: Frontpage Articles custom template
« Reply #1 on: March 07, 2011, 04:21:26 PM »
Problem is solved! Finally i understood how frontpage custom layout effects the "full single article view", this topic made my day: http://www.tinyportal.net/index.php?topic=33291.msg266971#msg266971

Now i understand that the custom layout for a category takes effect on the view of the whole category.

For the styling of a full single article view, the frontpage custom layout is required. Imo this is a bit confusing, and its hard to find a solution if you are not very familiar with TP. But anyways, for me it works now and i bookmarked the helping topic above ;D

If anyone else is looking for how to do an article overview with a small image (listing icon) shown next to the intro (like the layout given by "Picture + Article 2") and the full single article view without that listing icon, here are the custom code snippets that worked for me:

On the article category settings page:
Code: [Select]
<div class="tborder" style="margin-bottom: 5px;">
<div class="article windowbg" style="margin: 0pt;">
<div class="article_picturecolumn smallpad">
{article_picturecolumn}
</div>
<div class="render4 smallpad">
<h2 class="article_title">{article_title}</h2>
<div class="article_info">
{article_category}
{article_author}
{article_date}
{article_views}
{article_rating}
{article_options}
</div>
<div class="article_padding">{article_text}</div>
{article_moreauthor}
{article_bookmark}
{article_morelinks}
{article_globaltags}
{article_comments}
</div>
</div>
</div>

On the frontpage settings page:
Code: [Select]
<div class="tpcontentHeader">
<div style="margin-bottom: 5px; overflow: hidden;">
<div class="title_bar">
<h3 class="titlebg">{article_shortdate} {article_title} </h3>
</div>
<div class="windowbg2">
{article_avatar}
<div class="article_info windowbg">
{article_category}
{article_author}
{article_date}
{article_views}
{article_rating}
{article_options}
</div>
<div class="article_padding">{article_text}</div>
{article_bookmark}
{article_boardnews}
{article_moreauthor}
{article_bookmark}
{article_morelinks}
{article_globaltags}
{article_comments}
</div>
</div>
</div>

I hope, that helps someone else, too O0

Offline Lesmond

  • Do what you have to!
  • Administrator
  • *
  • Posts: 3129
    • Tiny Pix... Free Image Hosting and Sharing.
Re: Re: Frontpage Articles custom template
« Reply #2 on: March 07, 2011, 04:52:32 PM »
Nice one HugiN
Please don't PM me for support without an invitation.