Welcome, Guest
Username Password: Remember me

2 templates for 1 category
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: 2 templates for 1 category

2 templates for 1 category 1 year, 5 months ago #1

  • emicoma
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 48
  • Karma: 0
I wonder how to use two different templates for 1 category ?
The idea is to have a develop template with all fields, and a simple one with essential fields. so I need two templates...
Thanks for your help.

Re: 2 templates for 1 category 1 year, 5 months ago #2

  • Helrunar
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 57
  • Karma: 0
Hi emicoma,

did you need a developtemplate for you as admin and one for the other users? If so, you can check the Status from the User with getuser and put your Fields for develop behind


$user =& JFactory::getUser();
if ($user->usertype == 'Super Administrator') {

// your Fields for development

}


So, only Super Administrator will see the Fields


Edit: look here for user core

www.jseblod-cck.com/documentation/templa...ield-attributes.html
Last Edit: 1 year, 5 months ago by Helrunar.

Re: 2 templates for 1 category 1 year, 5 months ago #3

  • emicoma
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 48
  • Karma: 0
thanks for your answer.
It is not exactly what i want to do.
I want to have different category views, for the same user, like one with all my contenttype, and an other one with only few fields.
kind of resume and details views.

Re: 2 templates for 1 category 1 year, 5 months ago #4

  • Helrunar
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 57
  • Karma: 0
Hi,

you mean somthing like introtext and readmore? Then you have to work with index.php and index2.php

www.jseblod-cck.com/documentation/how-to...ontent-template.html

Re: 2 templates for 1 category 1 year, 4 months ago #5

  • emicoma
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Posts: 48
  • Karma: 0
no, i mean 2 or 3 or more templates for 1 category.
but i think it is not possible, need to create that..
  • Page:
  • 1
Time to create page: 0.19 seconds