Coranto project your help is apreciated

Discuss news styles, css code, and other Coranto customizations in here...the possibilities are endless, so have at it!

Moderator: Spunkmeyer

Okay...

Postby Esstee » Thu May 26, 2005 2:33 pm

I took 2 solid weeks to punch through some vBulletin code and build an
external vBulletin driven page to display coranto, and now I am readying to
format the "maginot teaser/fullnews" layout etc.

As shown above this is my target main newspage:
Image

Here is the table I designed to contain the layout:
Image

Does this make sense?
I will label the table spaces with real maginot alter one today but in some preliminary tests I am having difficulty finding out how to format title and content in the fullstory maginot display file.

Is there a document showing the .tmpl commands we can use?
with a maginot page? I would like to apply some specific formating
to the title etc.
User avatar
Esstee
 
Posts: 320
Joined: Thu Nov 25, 2004 4:13 pm
Location: Deep in some project

Postby madriver » Thu May 26, 2005 5:06 pm

Is there a document showing the .tmpl commands we can use?
with a maginot page? I would like to apply some specific formating
to the title etc.


Hi Esstee,

If you're talking about formatting titles and such, aren't you talking styles rather than templates? I'm pretty sure that my templates create the overall structure of my news pages, including column layout, masthead, and calling on my CSS style sheet for fonts and such. My styles, on the other hand, determine the look of the news items themselves, such as the look of the subject line. My sense is that you can use pretty much anything you want in the way of Perl, HTML, CSS, etc. in your templates and styles.

For example, in the style code below, which I use for most of my full news articels, the h3 heading tag calls on the h3 declared in my stylesheet, which is called by my template. Note that the Perl code inserts an icon in news that's less than 2 days old and the IMG class and IF statement control how an image appears if one is present. (Thanks, mostly to Parahead it think, for the Perl and IF strategies). I also insert a horizontal rule at the end of each article. Simple, I know, but it's working for me.

I hope this helps. And thanks for sharing your development. It's very helpful to a newbie like me.

Code: Select all
<PerlCode>
$consider_link_new = time() - (2 * (60*60*24));
if ($newstime > $consider_link_new){
</PerlCode>
<IMG class="floatLeft" SRC="http://www.etsdvt.org/ems/images/new_icon.gif" WIDTH="32" HEIGTH="30" BORDER="0">
<PerlCode>
}
</PerlCode>
<p><h3><Field: Subject></h3>
Posted by <a href="mailto:<Field: CustomField_AuthorEmail>"><Field: CustomField_AuthorName></a> on <Field: Date></p>
<If: Field: CustomField_ImageUpload1><br>
<img class=floatLeft src="<FilePath: CustomField_ImageUpload1>" width="200">
</If>
<Field: Text>
<hr style="text-align: left; margin-left: 0em; width: 75%">
madriver
 
Posts: 6
Joined: Fri Apr 15, 2005 5:31 pm
Location: Vermont, USA

Postby Parahead » Thu May 26, 2005 5:35 pm

madriver wrote:If you're talking about formatting titles and such, aren't you talking styles rather than templates? I'm pretty sure that my templates create the overall structure of my news pages, including column layout, masthead, and calling on my CSS style sheet for fonts and such. My styles, on the other hand, determine the look of the news items themselves, such as the look of the subject line. My sense is that you can use pretty much anything you want in the way of Perl, HTML, CSS, etc. in your templates and styles.
Yes, madriver, you are correct in how you use the templates and styles, that is the general idea. The PerlCode tag is only for styles though... Regarding titles, check out this thread.
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby Esstee » Thu May 26, 2005 6:00 pm

madriver

You are correct about the .template and style confusion.
my fullnews template createst the page structure by calling individual
.php modules to build the page and my style is what creates the
layout that you are looking at here.

My mistake.
User avatar
Esstee
 
Posts: 320
Joined: Thu Nov 25, 2004 4:13 pm
Location: Deep in some project

Previous

Return to Customization

Who is online

Users browsing this forum: No registered users and 3 guests

cron