1
gordo
Edit News Template
  • 2009/11/5 11:01

  • gordo

  • Just popping in

  • Posts: 49

  • Since: 2006/8/17


I am trying to edit the News Item Template, nothing drastic simply making one of the cells a different color, everytime I do, the news page resorts to a code view.

Using ver 2.0.18.2 with Clouds as a theme. I have refreshed the the templates for updats and emptied C_templates too. It has me beat as it is such a simple to do

2
ghia
Re: Edit News Template
  • 2009/11/5 13:53

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Where and how did you change your template?
Did you update the News module?

3
gordo
Re: Edit News Template
  • 2009/11/5 15:10

  • gordo

  • Just popping in

  • Posts: 49

  • Since: 2006/8/17


First of all I cloned the template then download it, and changed just one of the table cells bg color, saved as is and upload. Refreshed template for changes, refreshed News in the modules and empited C_templates.


The template was News_items.html

4
ghia
Re: Edit News Template
  • 2009/11/5 17:25

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Try by updating the file in the /modules/news/template/ directory and enabling the setting for 'check the templates ...' in the system general preferences or updating the News module.

5
gordo
Re: Edit News Template
  • 2009/11/5 19:38

  • gordo

  • Just popping in

  • Posts: 49

  • Since: 2006/8/17


Yea tried those and still nothing works, I have just downl;oaded and installed a fresh copy of the whole of the news module. The page now is out of alignment to what it was before.

Think I'll give up for now thanks for sticking with me

6
mboyden
Re: Edit News Template
  • 2009/11/6 17:19

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


For anyone that works with templates and block permissions extensively, you will want GIJOE's altsys module. Don't leave home without it.

Templates are cached unless you have that system preference set to rebuild them. Also, you have to choose which set of templates to use. Clearing the cache directories will rebuild them of course, and in <2.3.x versions of XOOPS, you will have to clear the templates_c directory for templates to rebuild.

BTW, which version of XOOPS and which version of News? I use news on most sites....

7
gordo
Re: Edit News Template
  • 2009/11/6 22:53

  • gordo

  • Just popping in

  • Posts: 49

  • Since: 2006/8/17


xoops Using ver 2.0.18.2 news 1.63

8
ghia
Re: Edit News Template
  • 2009/11/6 23:30

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Do you have PHP 5?

9
mboyden
Re: Edit News Template
  • 2009/11/7 4:33

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


If you cloned the templates, then chose them as default, then edited the file version, that will not change those used by XOOPS even if the module is updated since the cloned ones are the default templates and updating those will only update the default set, not the chosen cloned templates.

Does that help?

10
gordo
Re: Edit News Template
  • 2009/11/7 11:28

  • gordo

  • Just popping in

  • Posts: 49

  • Since: 2006/8/17


Thanks a lot people, for the advice for what seems quite trivial, I will play around around with the cloned templates and simply keep going until I get what I would like to achieve. I do believe that also involoves the themes as well.

Thanks once again appreciated

Login

Who's Online

160 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits