changing .tmpl files path

Discuss news styles, css code, and other Coranto customizations in here...the possibilities are endless, so have at it!

Moderator: Spunkmeyer

changing .tmpl files path

Postby funkoolow » Sat Mar 16, 2002 1:30 pm

as above, how can i change the path for the .tmpl files from the coranto root to another dir (i'm using a templates subdir in coranto root)? it's a little less messy out of there :)

thx you all-knowing-guys :D
funkoolow
 
Posts: 38
Joined: Mon Mar 11, 2002 12:29 pm

Postby funkoolow » Sat Mar 16, 2002 5:00 pm

:(

neither manually changing a path inside one of those core files?
funkoolow
 
Posts: 38
Joined: Mon Mar 11, 2002 12:29 pm

Postby msbzdragn » Sun Mar 17, 2002 7:38 pm

Editing of core files is strongly discouraged, particularly for a reason as trivial as this... You'll have to redo those edits with every future upgrade, and if you've edited core files we won't be able to help you if you have problems in future since we won't know for sure what you've changed.
Michael R. Tomkins
Administrator, 'Unofficial Coranto / NewsPro Forums'

Mitsubishi Diamante Forum

Do NOT send me instant messages asking for Coranto help without me telling you explicitly to do so. You WILL be placed on ignore if you do so; I don't have time to provide personal tech support to every person who IM's me. Sorry!
User avatar
msbzdragn
 
Posts: 2397
Joined: Mon Mar 11, 2002 4:51 pm
Location: Oak Ridge, TN

Postby funkoolow » Sun Mar 17, 2002 8:01 pm

ok, i'll keep the mess...
funkoolow
 
Posts: 38
Joined: Mon Mar 11, 2002 12:29 pm

moving the .TMPL file, virtually

Postby Rickster » Mon Mar 25, 2002 5:15 am

I publish my TMPL files to the same directory the profile uses. then I create a link in coranto root to point to them. Works great for me.

Example: do this inside Coranto root

>link /path/to/where/you/want/news.tmpl news.tmpl

I'm on UNIX your mileage may vary. :D
Rickster
 
Posts: 12
Joined: Tue Feb 06, 2007 1:08 am

uh?

Postby funkoolow » Mon Mar 25, 2002 12:32 pm

sorry man, i can't realize what you mean for "link" :confused:
funkoolow
 
Posts: 38
Joined: Mon Mar 11, 2002 12:29 pm

Postby Rickster » Mon Mar 25, 2002 1:08 pm

A link is a logical pointer in one directory pointing to a physical file in another directory. The link acts just like the real file it points to.

I see you are from Italy ... here's a rough attempt to translate

Un 'link' è un indicatore logico in un indice che indica ad un archivio fisico in un altro indice. Il 'link' si comporta giusto come l' archivio che reale indica a.

'link' di mezzi di collegamento

Please accept my apologies if I messed that up.:D
Rickster
 
Posts: 12
Joined: Tue Feb 06, 2007 1:08 am

Postby funkoolow » Mon Mar 25, 2002 1:15 pm

my fault :)

i can understand what a link is BUT what i cannot understand is HOW TO HAVE THIS LINK EFFECTIVE IN THIS PARTICULAR CASE... in other words: what is it in this case? a file? a statement into another file (such a .cgi)?

thank you for the patience man :)
funkoolow
 
Posts: 38
Joined: Mon Mar 11, 2002 12:29 pm

Postby ultimatesystem » Mon Mar 25, 2002 1:20 pm

You would put it in a .htaccess file.
User avatar
ultimatesystem
 
Posts: 116
Joined: Mon Mar 11, 2002 11:10 pm
Location: Plattsmouth, Nebraska

Postby Rickster » Mon Mar 25, 2002 1:31 pm

Ok. Here's how I use the symbolic link function.

I use Net Objects MX to publish my website. I have several template files that are used by the site. These files are created in Net Objects along with all of the static files. When I publish the site the TMPL files are created at the same time and uploaded to their own subdirectory. the result is a structure like this ...

Code: Select all
public_html_dir
  news
     news.shtml
      news
           news.tmpl  ( physical file )

Coranto root is in my  cgi-bin directory.

public_html_dir
   cgi-bin
       coranto
            [news.tmpl]  (points to) public_html_dir/news/news/news.tmpl


Hope this helps.
    Rickster
     
    Posts: 12
    Joined: Tue Feb 06, 2007 1:08 am

    Postby funkoolow » Mon Mar 25, 2002 5:23 pm

    omg, it must be me :(

    i still can't understand what to do. i use WSFTP to tranfer files to my space, dunno what this NETOBJ-MX is...

    let my guess: do i have to use TELNET to have this LINK DONE (i'm on unix too)? maybe the command

    Code: Select all
    link path/to/template/dir/template.tmpl template.tmpl


    must be typed in a telnet session while being into the coranto root, so that it creates the .htaccess file that ultimatesystem is talkin of?

    i really can't catch it, plz suggest me a good translator or at least a good neuropathist :D
    funkoolow
     
    Posts: 38
    Joined: Mon Mar 11, 2002 12:29 pm

    Postby l0rdphi1 » Mon Mar 25, 2002 6:22 pm

    I thought the point of this was to not have .tmpl files in Corano's directory?
    User avatar
    l0rdphi1
     
    Posts: 3590
    Joined: Sat Mar 09, 2002 10:03 pm
    Location: Pennsylvania, United States of America

    Postby Rickster » Mon Mar 25, 2002 8:51 pm

    L0rdPhi1 wrote:I thought the point of this was to not have .tmpl files in Corano's directory?


    They aren't ... they just look like their there ... it's all smoke and mirrors. :D
    Rickster
     
    Posts: 12
    Joined: Tue Feb 06, 2007 1:08 am

    Postby msbzdragn » Mon Mar 25, 2002 8:55 pm

    Yes, but won't those still look like files in the directory and still look just as messy in an FTP client? (Personally, I don't find it messy - I find it better to have all my Coranto files in one place, but...)
    Michael R. Tomkins
    Administrator, 'Unofficial Coranto / NewsPro Forums'

    Mitsubishi Diamante Forum

    Do NOT send me instant messages asking for Coranto help without me telling you explicitly to do so. You WILL be placed on ignore if you do so; I don't have time to provide personal tech support to every person who IM's me. Sorry!
    User avatar
    msbzdragn
     
    Posts: 2397
    Joined: Mon Mar 11, 2002 4:51 pm
    Location: Oak Ridge, TN

    Next

    Return to Customization

    Who is online

    Users browsing this forum: No registered users and 1 guest

    cron