Different link style.

Post non-phpwcms related topics here - but I don't want to see "hey check this or that other cms". Post if you have a point or worthwhile comment, don't post just to increase you post count!
Post Reply
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Different link style.

Post by Stim »

What is the best way to link to different page within site? I usually use something like this for example; /sub/index.php or just /sub

because its mush mush shorter then for example:
http://www.phpwcms.de/sub/index.php or http://www.phpwcms.de/sub/index.php

Using /sub/index.php style work well and when some user use it http://www.phpwcms.de or other domain ads automatically before it.

But this is big problem when working with different site in different folder on localhost, if site are not directly in root catalogue. Isnt there any other and better or there is just 4 different ways to link?

Maybe there are solutions for phpwcms, some replacement tag or something to use. Links in phpwcms works good even if site is online or in deferent folder on localhost. But all other customized link in template or redirecting link for catalogue menu etc not work because this.

So if there is any better way to do this, instead of using /sub/index.php etc – please feel free.

Danke
)-= 1.3.0 user =-(
User avatar
axelko
Posts: 138
Joined: Mon 27. Feb 2006, 22:51
Contact:

Post by axelko »

Hi Stim,

Do you just want to link in a phpwcms site to another page in the same phpwcms installation?

I just link to the alias of that page with ?pagealias like
<a href="?uk">UK</a>

Greetz,

Axel
-------------------------------
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Something like that. For example if using folder on localhost named "wcms" and using /index.php?games in backend its wont work really. I get url http://localhost/index.php?games, but should be http://localhost/wcms/index.php?games instead.

If using this /wcms/index.php?games instead its work, but then I must change or remove "/wcms" in url when moving to root folder online. Maybe I can do this better when working in sub-folder in localhost?

All other link in wcms-system works great, for example menu links etc that is added by wcms-system, but when comes to add customized link its problem when removing to root online later.
)-= 1.3.0 user =-(
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Maybe you could devise your own system around the HTML <base> tag ???

http://www.w3schools.com/tags/tag_base.asp
Post Reply