Webmastersite.net
Register Log In

Shortening custim template URLs

Comments on Shortening custim template URLs

webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Dec 06, 2006 - 5:53 AM:

Is it possible to shorten a URL such as this www.jayweddings.co.uk/link....pper=custom-detailswrapper

I read somewhere in the manual about adding a bit of PHP, but it doesnt say where to add it and what to actually do in the templates.
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Dec 06, 2006 - 6:35 AM:

OK I shortened it a bit by using

<?php
$custom = 'yes';
$TID = 'fulldetails1';
require 'link.php';
?>

In a file named weddingservicedetials.php

I call this by using... www.jayweddings.co.uk/weddingservicedetails.php?action=detail&id={LINKID}&customwrapper=custom-detailswrapper

How can i call the custom wrapper using that new php file?
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Dec 06, 2006 - 7:06 AM:

I tried

<?php
$custom = 'yes';
$TID = 'fulldetails1';
require 'templates/default/custom/detailswrapper.tpl';
require 'link.php';
?>

smiling face

But that didint work smiling face
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Dec 06, 2006 - 7:14 AM:

Tried...

<?php
$customwrapper = 'custom-detailswrapper';
$custom = 'yes';
$TID = 'fulldetails1';
require 'link.php';
?>

Nope, didnt work smiling face
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Dec 06, 2006 - 7:42 AM:

I got round this by adding <!-- usewrapper=no --> to the custom template, and adding the wrapper html into the custom template.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 06, 2006 - 12:00 PM:

Admin -> Settings -> SEO, type in the old url and the new one you want it shortened to.
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Dec 06, 2006 - 5:28 PM:

Wow, i don't know how i missed that. that really is impressive. i've never seen that in any other script.

Cheers
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.