0
Welcome Guest! Login
0 items Join Now

Using the same template twice on a site

  • Using the same template twice on a site

    Posted 17 years 6 months ago
    • Hi Folks,

      What is the process of loading the same template on a site to use for different purposes. Is the template package renamed i.e., Simplix2?

      I saw it mentioned on several posts but still not sure of the actual process. I understand the concept of assigning templates - but I need completelydifferent looks using the same template.

      Any help is appreciated.
    • Robert D. Wagers's Avatar
    • Robert D. Wagers
    • Elite Rocketeer
    • Posts: 1545
    • Thanks: 0
    • Full-Time Cancer Fighter!

    Re: Using the same template twice on a site

    Posted 17 years 6 months ago
    • yeah, rename it to something like Colormatic2.

      You prob need to change a few lines in the templateDetails.xml so that it will install right.
    • "Everyone has to get knocked-down every once-in-a-while, otherwise you'll never learn how to get-back-up! "
      A quote attributed to my Grandpa Wagers
    • Matthew's Avatar
    • Matthew
    • Hero Rocketeer
    • Posts: 299
    • Thanks: 0

    Re: Using the same template twice on a site

    Posted 17 years 6 months ago
    • First, be ready to ftp (or otherwise directly copy) the files instead of using the installer.

      Let's say that you want multiple versions of Simplix. If you currently have a folder called rt_simplix in your templates folder, you would want to copy it (or a plain version of Simplix, if you have made modifications to the first copy that you don't want in the second) to a new folder, also in templates, called something else like: rt_simplix_2

      Once you have that folder, edit templateDetails.xml and change <name>rt_simplix</name> to <name>rt_simplix_2</name>. (Note: it is against the terms and conditions of RocketTheme to remove the copyright and related information from the XML)

      Once that is done, the template will be available in the back end, and can be assigned as needed.

      You can make as many "duplicate" versions of the template as you need, but I suggest coming up with a good naming convention if you need very many (instead of _2, etc.). Something like: rt_simplix_intro - rt_simplix_guests - rt_simplix_registered etc.
    • www.gofftech.com Web Design
  • Re: Using the same template twice on a site

    Posted 17 years 4 months ago
    • Hi Folks,

      Finally getting around to install Dimensions on same site for different page looks.

      Using your instructions, I successfully renamed the primary zip, extracted the files to get at the templatedetails.xml file -changed it - zipped it - uploaded via Cpanel, but it still will not extract correctly ---- any ideas??

      Once the zip is renamed - what is the best way to rename the templatedetails.xml file and where should I do it?

      Thanks very much for any and all help.

      Brian
  • Re: Using the same template twice on a site

    Posted 17 years 4 months ago
    • Another great tip...I was wondering how to do the same thing over the weekend.
    • Last Edit: 17 years 4 months ago by RFF Media.
  • Re: Using the same template twice on a site

    Posted 17 years 4 months ago
    • Using thesame template on the same site twice......... mmmmm thats thesame as using it once! Unless what you mean is changing styles! yes there are a million ways you could do this. ok a simple example

      take a look at a joomla url

      index.php?option=com_frontpage&task=something [this is obviously your frontpage]
      index.php?option=com_content&task=something&bla bla [this will obviously be some content page]

      ok say you want to use style A on your front page, and Style B on your content Page, and Style C on your Community Builder page! you can do this by using the php $_GET variable passing the option values through and assing styles per value. So what do i mean


      In your RT templates you normally just do something like
      $style = 'styleA' ;

      now replace that line with something like
       
      if(isset($_GET['option'] && $_GET['option'] !='com_frontpage') 
      &nbsp; {
      &nbsp; &nbsp; switch($_GET['option'] ) {
       
      &nbsp; &nbsp; &nbsp;  case 'com_content' :
      &nbsp; &nbsp; &nbsp;  $style = 'styleB';
      &nbsp; &nbsp; &nbsp;  break;
       
      &nbsp; &nbsp; &nbsp;  case 'com_comprofiler' :
      &nbsp; &nbsp; &nbsp;  $style = 'styleC';
      &nbsp; &nbsp; &nbsp;  break;
       
      &nbsp; &nbsp; &nbsp;  default:
      &nbsp; &nbsp; &nbsp;  $style ='styleD';
      &nbsp; &nbsp; &nbsp;  break;
       
      &nbsp; &nbsp;  }
       
      &nbsp; }else{
       
      &nbsp; &nbsp; &nbsp; $style = 'styleA'
       
      &nbsp; }
       
    • No money to extend membership :(
  • Re: Using the same template twice on a site

    Posted 17 years 4 months ago
    • Livingston,

      Thank you I will give iot another try using your guide -

      Agin, thanks for your courtesy in responding.

      Brian
  • Re: Using the same template twice on a site

    Posted 17 years 4 months ago
    • just let me know if it works and if u need any specific help! as to the template your using, and the pages yu wish to use different sites! ;D ;D
    • No money to extend membership :(
    • breeze's Avatar
    • breeze
    • Hero Rocketeer
    • Posts: 365
    • Thanks: 0

    Re: Using the same template twice on a site

    Posted 16 years 11 months ago
    • Is this advice any different for J1.5 templates or can I follow word for word without jacking up my site?

Time to create page: 0.053 seconds