 |
 |
 |
 |
 |
| Author |
Message |
scottdallas

Joined: 04 May 2006 Posts: 1808 Location: US |
|
Export 'Title in URL' in Templates? |
|
Well I guess the reason I want to do this is irrelevant although I realized this could open some flexibility in the way {full-story} links open...
So, my question.. is there a way to put the use the 'Title in URL' field in templates similarly to {title}? I want to use my own URL for {full-story}.. for example some templates will use something like:
<a href="http://www.mysite.com/view.php?{title-in-url}.html">{title}</a>
and other templates maybe something like:
<a href="http://www.mysite.com/more.php?{title-in-url}.html">{title}</a>
etc.
Any idea?
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Thu Jul 10, 2008 6:26 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2683 Location: Germany |
|
|
|
So you want to make use of the "Title in url" field in your template, right?
Open inc/show.news.php and find this:
 |  | $output = str_replace('{id}', $row['id'], $output); |
and add below:
 |  | $output = str_replace('{title-in-url}', $row['url'], $output); |
|
|
| Thu Jul 10, 2008 7:10 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1808 Location: US |
|
|
|
Yes, exactly.
Thanks! Tested and working
This is probably going to completely replace {link=home/post} and all the other ways of opening {full-story} links in separate pages with urls.ini and stuff.. this seems to make more sense to me..
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Thu Jul 10, 2008 8:10 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|