Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Templates tweak assistance (alt to featured).

 

 


dimeco
User

Jan 4, 2010, 6:17 PM

Post #1 of 5 (4860 views)
Shortcut
Templates tweak assistance (alt to featured). Can't Post

I'm not sure how to go about this, so I'd appreciate a little assistance if possible Wink

Here's the new template I'm working with:

http://www.dime-co.com/sneakpeek.html

If you look at the MAIN box (where you see the golden mouse) you see:
Newly Enhanced Dime-co.com Example of Featured Post

Now - If you click over to the second one (example of featured post), you'll see the content switches.

There's two things I'd like to do, and *preferably* not manually LOL!

1) On each category page, I'd like to simply switch between say 4-5 chosen/featured articles - *all* from the same category. (say, the 5 newest ones, or the 5 that I choose). This is kind of like the featured content slider, but not the same.

Don't worry about how to set the tabs, I know how to do that.

What I basically need to know, is how the heck do I tell the system article 1 - 2 - 3 - 4 to appear very specifically there?

#2: to do kind of the same thing for the front page of the site, but only one post in the categories I choose to show for it (i.e., most popular topics like Business-1 article, Entertainment-1 article, Home/Family-1 article, etc).

Ideas?

I could hard code but that will mean I'm updating daily... and that's a pain.

I'm okay with doing that if I have to on the front page, but would totally love to have it automated at the very least for the category pages. (I am creating a unique categoryindex page for each category).

Amber


Donna
Staff / Moderator


Jan 6, 2010, 2:56 PM

Post #2 of 5 (4843 views)
Shortcut
Re: [dimeco] Templates tweak assistance (alt to featured). [In reply to] Can't Post

Hi Amber!

Hmm, that shouldn't be too hard. It looks like the basic layout code is essentially this repeating:

<div class="tabbertab">
<h2>Title</h2>
<img class="thumb" src="image.jpg" alt="Alt Text" width="150" height="225" />
<h1><a href="http://www.dime-co.com/">Title</a></h1>
<p style="font-size:11px; margin:0px 0px 10px 0px;">Date</p>
<p>Excerpt Content/p>
<p>Summary <a href='link.html'>[Read the full story</a></p>
<div class="clear"></div>
</div>

So, to do this I would create a template that contains the above content, but with the placeholder text I've thrown in there replaced with the appropriate placeholders. Then, create a List template that publishes the first 1-5 articles using this template.

Include this into your main index template with an SSI, and you've got your featured articles. :)

Let me know if that makes sense!

Donna

--
support@interactivetools.com

(This post was edited by Donna on Jan 6, 2010, 2:58 PM)


dimeco
User

Jan 6, 2010, 3:43 PM

Post #3 of 5 (4839 views)
Shortcut
Re: [Donna] Templates tweak assistance (alt to featured). [In reply to] Can't Post

Yep! I was coming up with something similar - so I'll try it your way :)

Amber


dimeco
User

Jan 6, 2010, 4:12 PM

Post #4 of 5 (4837 views)
Shortcut
Re: [Donna] Templates tweak assistance (alt to featured). [In reply to] Can't Post

Hi Donna,

Okay:

<div class="tabbertab">
<h2>Title</h2>
<img class="thumb" src="image.jpg" alt="Alt Text" width="150" height="225" />
<h1><a href="http://www.dime-co.com/">Title</a></h1>
<p style="font-size:11px; margin:0px 0px 10px 0px;">Date</p>
<p>Excerpt Content/p>
<p>Summary <a href='link.html'>[Read the full story</a></p>
<div class="clear"></div>
</div>

I've got a category headlines template set up for this - basically to show the "newest" (1) article.

However, I'm a little unsure of how do I show just an exerpt, rather than the actual summary for this specific template?

In researching the placeholders, it looks like it might be,

$PLACEHOLDER:limitParagraphs(1):maxWords(125)$

So that would translate to:

$article.content:limitParagraphs(1):maxWords(125)$


and then of course the link to continue....

am I right?

Amber


Donna
Staff / Moderator


Jan 7, 2010, 1:09 PM

Post #5 of 5 (4831 views)
Shortcut
Re: [dimeco] Templates tweak assistance (alt to featured). [In reply to] Can't Post

Hi Amber,

Yup, you've got it. :)

Donna

--
support@interactivetools.com