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

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 05:07:17 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 310
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 294
  • Total: 295
  • lurkalot

Re: Frontpage Articles custom template

Started by HugiN, March 07, 2011, 08:48:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HugiN

Sorry for grabbing out such an old topic - but it fits exactly what i am searching for ;)

Quote from: SN on May 24, 2010, 07:23:00 AM
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?

HugiN

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:

<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:

<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

Lesmond