Results 1 to 3 of 3

Thread: Format News

  1. #1
    New user
    Join Date
    07-09-09.
    Posts
    15

    Default Format News

    Hi There,

    I'm new to typolight so forgive me if this comes across as silly,

    I would like to change how the news is formatted,
    At the moment I am using the simple list template and that is fine because I only want the links to the articles but what I am trying to do is put my news section into a nice lil box with a border and a background colour.
    At the moment the news section is in the right colum of the layout.
    I don't want the whole right colum coloured in or bordered though, just the news section/module.

    I'm fairly handy with php and css but I can't find the right file to edit.
    I tried the template (news_simple.tpl) but that only allowed me to apply formatting to the idividual news links, I want the whole area around it too.

    This is probably really obvious, but I'm lost.
    Anyone point me in the right direction?

  2. #2
    User
    Join Date
    06-19-09.
    Posts
    41

    Default Re: Format News

    Hi clairec,
    I'm new to typolight so forgive me if this comes across as silly
    then welcome to TL (and no reason for excuse ).

    If all you want is a border around your news section you won't have to change the template for that. Just take a look into the sourcecode of your frontend output: the whole section is placed into a div with the css-class mod_newslist, simply address that div in your css file. Same way you can also address the single news-entries or any other element in there. Also you'll find the same structure (a surrounding div) coming with almost any other module.

    Templates should only be changed if your goal can't be achieved with css. Of course, that happens, but the less you change in templates the easier a system update will be...


    cheers
    Antipitch

  3. #3
    New user
    Join Date
    07-09-09.
    Posts
    15

    Default Re: Format News

    That's brilliant,
    Thanks so much!
    So glad it's not as complicated as I was making things!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •