Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Syntax in template editing
Raph
Posted on 04 Nov 2009, 16:29:32

Access: Member
Total Posts: 3
Joined: 2009-11-04

Hi,

Congratulations to the creator(s) of this tool! It's really nice! Easy to install, use and understand!

Right now I'm trying to create a nice template for showing news on my website. But I don't really get how it works with the syntax. Is it html?

I saw that html and css were used in the original templates...but in a weird way, since there is no <html> or <body> tag for example.

Would it be possible for example to write a css style sheet and use it when editing the template?

I'm a bit lost here...

Thanks!
Raphaël

EDIT:
Ok I just realized something...since I'm inserting the news in a already "css designed" page...well I can just use the classes and ids of the css stylesheet of the page and it works great!:original:
#1153
Last edited by Raph at 2009-11-04 16:38:21 Reason:
Chris
Posted on 04 Nov 2009, 16:38:17

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

The best way to understand how the templates work is to describe the main purpose of the system.

The system is primarily designed for users who already have a website design/layout already made who want a news system they can incorporate into.

For example if you imagine the code below is my website design

Code:
<html>
<head>
<title>my design</title>
<body>
some stuff here
<br />
more stuff>
<br />
here is where I want to show my news
</body>
</head>
</html>


To get the news to show and incorporate the system into it I'd do this

Code:
<html>
<head>
<title>my design</title>
<body>
some stuff here
<br />
more stuff>
<br />
<?php
include 'news/index.php';
?>
</body>
</head>
</html>


The system will then take the code that you've entered into whichever template you're currently using, use that code to format your news posts then display those posts in that section of the page.

So basically you build your layout then include the news system into it. This is why there are no <html> or <body> tags in the template code. Although you could indeed add those tags into the templates but that's entirely up to you and how you've designed your site.
#1154
Raph
Posted on 04 Nov 2009, 16:41:12

Access: Member
Total Posts: 3
Joined: 2009-11-04

Thank you for your complete answer...it confirms what I thought (I edited my post the same time you posted yours)!

Thanks again for this tool.
#1155
Network-13.com © 2013