Loading...
 
Skip to main content

Features / Usability


Linking to web pages in a dev environment

posts: 19 United States

As posted in some earlier postings, I am a newbie and recent convert to TikiWiki and have been following's Rick's excellent TikiWiki for Smarties which has proven invaluable.

I have a question re: Linking to internal web pages.
The instructions here state

To create a link to a wiki page from another source (such as another website or an email) use this format
http://www.yourdomain.com/tiki-index.php?&page=XXX.

However, I am developing my site in a dev environment. Thus, my current domain is dev.domainname.com instead of www.domainname.com

Won't all of my links be broken once I migrate the site out of the dev environment? What are the accepted best practices in this regard?
Any help would be greatly appreciated. Thanks.

-Kevin Mulligan

posts: 2432 Czech Republic

just use relative links like:

Copy to clipboard
[tiki-index.php?&page=XXX|my relative link]

posts: 19 United States
OK. Great. Thanks Luci.

posts: 1817 Catalan Countries

KMull, welcome to Tiki Community! 😊

Feel free to use and update the official documentation at:
http://doc.tikiwiki.org/Documentation

(it's a community effort)

And I would suggest you to update the information at tw for smarties site, if you are allowed to... (or suggest the main author of that site to update it for you...)

HTH


posts: 19 United States
Thanks Xavi. I will definitely do both.

posts: 19 United States
The relative link may work for Wiki pages. However, what about linking to other pages such Forums ?((tiki-forums.php|Forums) doesn't work. Can anyone possibly help me?

posts: 4664 Japan

For forums, etc., you need to use the external link syntax, as luci also gave an example of, above: single brackets rather than double parentheses. They should still be a relative URL and not the full URL, something like [tiki-forums.php|Forums] so you don't need to be concerned about the domain and subdomain, etc.

-- Gary


posts: 19 United States

Gary-

Thank you so much. That did it.

-Kevin