Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: category named articles  (Read 5032 times)

bobcat

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 67
    • ESL Jobs by Country
category named articles
« on: December 04, 2006, 11:49:45 AM »

Hi i'm using RC3 snew 1.5 and have tried to name a category as 'articles'.

This seems to be causing problems as the admin used 'articles' as a page. Can this be changed so articles can operate as a normal category name?

Thanks

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
category named articles
« Reply #1 on: December 04, 2006, 12:01:12 PM »

Yes, it can be changed - I was thinking of adding prefix to all hardcoded categories defined in language variables section $l['cat_listSEF'] but I need you to suggest something in order to maintain its possible seo value. How about adding _ to them?
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

bobcat

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 67
    • ESL Jobs by Country
category named articles
« Reply #2 on: December 04, 2006, 10:58:30 PM »

yes i think that _ would probably be the easiest clearest way to differentiate categories/admin variables.

think it is pretty important to have the option to name a category as 'articles', especially as seeing a main use of snews is as a news and article publisher.

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
category named articles
« Reply #3 on: December 05, 2006, 06:37:37 AM »

Okay then, I'll add prefix _ to hardcoded categories; I think it shouldn't diminish seo value...
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

bobcat

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 67
    • ESL Jobs by Country
category named articles
« Reply #4 on: December 06, 2006, 08:27:18 AM »

I know this is a simple matter of find-and-replace, but i have been unable to do this myself after 2 days trying.
I would be very greatful if someone could post or PM a copy of the snews.php files modified to use _articles instead of articles (as is currently)
Thanks.

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
category named articles
« Reply #5 on: December 06, 2006, 08:29:30 AM »

I'm finalizing 1.5 documentation at the moment so I don't have much time for modding... could you wait just a while longer?
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

bobcat

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 67
    • ESL Jobs by Country
category named articles
« Reply #6 on: December 06, 2006, 10:39:45 AM »

Sorry for bugging. of course waiting is no problem, Mika. Thanks  :)