Page 1 of 2

List last articles plug in

Posted: Mon Aug 16, 2010 1:01 am
by rj
What I want to do is use that plug in that uses the sidebar to present the last articles and put them front and center.
Anyway of doing that? I dont want the last 6 articles listed in small text down the sidebar 150 wide.
I want them front and center 500 wide in 18pt, like into a head nugget plugin would be perfect! I dont want it to have all the meta data of an article though...
I have come to believe this is important. Greatly increase second clicks.
Thanx
RJ

Re: List last articles plug in

Posted: Mon Aug 16, 2010 1:09 am
by yellowled
rj wrote:I want them front and center 500 wide in 18pt, like into a head nugget plugin would be perfect!
Apart from actually displaying the plugin's output in the content area, that's purely CSS formatting. Other than that, it depends on whether your index page (I assume that's where you want to put it?) is a static page or the classic s9y last entries listing. A hint on which template your using or an URL to the live blog in question would be helpful, too.

YL

Re: List last articles plug in

Posted: Mon Aug 16, 2010 7:49 pm
by rj
oops sorry...
http://rackjite.com
And I think I am using standard S9Y

And while I got ya!

A few years ago I changed my two sidebars to both be on the right. Now I want to split them left and right of the entries. I forgot where and how I did that! :(

Thanx!

RJ

Re: List last articles plug in

Posted: Mon Aug 16, 2010 10:16 pm
by Don Chambers
The file you edited for the placement of your sidebars was your template's index.tpl, which is also likely going to be the file you will edit to display the recent entries. You can display the output from that plugin anywhere using:

Code: Select all

{serendipity_showPlugin class="serendipity_plugin_recententries"}
You can hide the meta info (post date, time) via css, such as

Code: Select all

.serendipity_recententries_entrydate {display: none}
Another option would be to fetch entries:

Code: Select all

{serendipity_fetchPrintEntries limit="0,10 noCache=false fetchDrafts=false full=false use_footer=false template="your_smarty_template.tpl"}
the smarty template could then be designed to show as much info (title, author, date, number of comments, etc), or as little info (title only??), from the entry as you wanted.

Re: List last articles plug in

Posted: Tue Aug 17, 2010 3:57 am
by rj
{serendipity_showPlugin class="serendipity_plugin_recententries"}

wow, thanx I will try that and let you know! If ti goes up as is thats a big win. But if I wanted to to some formatting how would that go?

This could be a big thing for those of us whose primary traffic comes TO ARTICLES rather than to the front page. I can see my 90% to articles blog going from a 1.3 page average to 3.

My side bars are next to each other on the right. I want them on each side of the entry.
I looked for the sidebar area in index.tpl, found one little group of 2 lines of code for each side and could not figure our what to do with it.

table id="mainpane">
<tr>
<td id="content" valign="top">{$CONTENT}</td>
{if $leftSidebarElements > 0}
<td id="serendipityLeftSideBar" valign="top">{serendipity_printSidebar side="left"}</td>
{/if}
{if $rightSidebarElements > 0}
<td id="serendipityRightSideBar" valign="top">{serendipity_printSidebar side="right"}</td>
{/if}
</tr>
</table>

Re: List last articles plug in

Posted: Tue Aug 17, 2010 4:03 am
by Don Chambers
I have not looked closely at your site, especially your css, but you could try simply moving the left sidebar code so that it appears before content:

Code: Select all

<table id="mainpane">
<tr>
{if $leftSidebarElements > 0}
<td id="serendipityLeftSideBar" valign="top">{serendipity_printSidebar side="left"}</td>
{/if}
<td id="content" valign="top">{$CONTENT}</td>
{if $rightSidebarElements > 0}
<td id="serendipityRightSideBar" valign="top">{serendipity_printSidebar side="right"}</td>
{/if}
</tr>
</table>
From an SEO perspective however, you are better off with your content being rendered before your sidebars.

Re: List last articles plug in

Posted: Tue Aug 17, 2010 4:34 am
by rj
Worked great. Here is where it goes to reside between my head and my first artcile.
This is the very top of entries.tpl. If you put it in the wrong palce it gets repeated.
<!-- ENTRIES START -->
{serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
{serendipity_showPlugin class="serendipity_plugin_recententries"}
{foreach from=$entries item="dategroup"}
{foreach from=$dategroup.entries item="entry"}
<div class="serendipity_Entry_Date">
{if $dategroup.is_sticky}
<h3 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h3>
{else}
<h3 class="serendipity_date">{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}</h3>
{/if}
</div>
Thanx Don!!

Re: List last articles plug in

Posted: Tue Aug 17, 2010 4:38 am
by rj
And without even looking I know you got that one right. other side of content, though php retarded I should have seen that and figured it out... THanks Don...
I used some css just to make sidebar NEW ARTILCES bigger and sidebar titles larger. Now I have to change my brain to write shorter article titles! We go a little nuts on that using as may keywords as we call. I am over due for a PR 6 and am pushing it these days. The big trick of course is getting links to you without having to link back. :)

Re: List last articles plug in

Posted: Tue Aug 17, 2010 5:45 am
by rj
hey don thanx a lot, you really helped... I applied things and its pretty much what I wanted.
Still would like to add some css text fromat to the recent articles though...

http://rackjite.com

Thanx again

RJ

Re: List last articles plug in

Posted: Tue Aug 17, 2010 3:56 pm
by Don Chambers
No problem. Keep up the good work!

Re: List last articles plug in

Posted: Wed Aug 18, 2010 4:58 am
by rj
I stayed up all night and just finished it. completely different look, read up on some SEO and decided to go with fixed 1024, I dont know why people like it more than auto size, but it seems they do.!
http://rackjite.com

Oh! Somewhere in the process I lost the css for the admin screen, it works no problem but its in some sort of default css mode or something. Any idea what I may have done
THANX AGAIN
RJ

Re: List last articles plug in

Posted: Wed Aug 18, 2010 8:25 am
by Timbalu
Hi
As far as I know, these should be the ones
  • /templates/default/style_fallback.css
    /templates/Bulletproof/admin/style.css
you are looking for.

Ian

Re: List last articles plug in

Posted: Wed Aug 18, 2010 9:55 am
by yellowled
Timbalu wrote:
  • /templates/default/style_fallback.css
    /templates/Bulletproof/admin/style.css
Never ever edit default/style_fallback.css. Just don't. :) (It's a stylesheet containing some styles which s9y will always need in any template.)

The admin template's stylesheet is /templates/yourtemplate/admin/style.css.

YL

Re: List last articles plug in

Posted: Wed Aug 18, 2010 8:03 pm
by Timbalu
Hmmm YL, did I say something about editing?
And lost is lost and seems like a question where to find it.
If it still attended in his template folder, he wouldn't have asked..., I assume. :P
Ian

Re: List last articles plug in

Posted: Wed Aug 18, 2010 8:36 pm
by yellowled
Timbalu wrote:Hmmm YL, did I say something about editing?
No, you didn't. Sorry about that, it was too early for me to reply to anything. :wink: (Although it cannot be stressed often enough to never ever delete or edit anything in /templates/default/. Kind of a Pavlov.)
Timbalu wrote:And lost is lost and seems like a question where to find it.
In /templates/bulletproof/admin/ of a fresh s9y tarball or zipfile. Since BP now is the standard s9y template, so is it's admin template.

So probably /templates/bulletproof/admin/styles.css (or /templates/YOURTEMPLATE/admin/styles.css if working w/ a copy of BP) got delete. Replace w/ the same file from a s9y archive, done :) (Hope so, at least.)

YL