NYCPHP Meetup

NYPHP.org

[joomla] OK, I give up. Where is the "magic" for links?

Helvécio da Silva helvecio.rj at gmail.com
Tue Jul 17 09:42:03 EDT 2012


Are you seeing something like this:

   - /directory/content.html
   - ../directory/content.html
   - ./directory/content.html

Instead of

   - www.yourdomain.com/directory/content.html

?

If so, you are seeing relative paths.

2012/7/17 Matt Thomas <matt at betweenbrain.com>

> Hi David,
>
> Without seeing an example of the page source, I can only guess that K2
> uses relative paths for the links. Can you post a link to the site in
> question and cite an example link from that page?
>
> Best,
>
> Matt Thomas
> Founder betweenbrain <http://betweenbrain.com/>™
> Lead Developer Construct Template Development Framework<http://construct-framework.com/>
> Phone: 203.632.9322
> Twitter: @betweenbrain
> Github: https://github.com/betweenbrain
>
>
>
> On Tue, Jul 17, 2012 at 8:53 AM, David Roth <davidalanroth at gmail.com>wrote:
>
>> I was poking around in K2, and when I had it print out via 'echo' a link,
>> I noticed it didn't include the domain. It included everything after that.
>> While I was playing with this K2 template I thought I had left something
>> out. Then I did a view source on the page and all links didn't include the
>> domain, but they work just fine.
>>
>> How is the domain being inserted when it's displayed as a web page? I am
>> guessing this takes place as Javascript someplace? If so, where?
>>
>> Yes, I know we get this done for free and should be thankful, but I'd
>> really like to know how this work. Thanks in advance for a
>> kind explanation.
>>
>> David Roth
>>
>>
>> _______________________________________________
>> New York PHP SIG: Joomla! Mailing List
>> http://lists.nyphp.org/mailman/listinfo/joomla
>>
>> NYPHPCon 2006 Presentations Online
>> http://www.nyphpcon.com
>>
>> Show Your Participation in New York PHP
>> http://www.nyphp.org/show_participation.php
>>
>
>
> _______________________________________________
> New York PHP SIG: Joomla! Mailing List
> http://lists.nyphp.org/mailman/listinfo/joomla
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>



-- 
Helvecio "Elvis" da Silva
Rio de Janeiro - Brasil - helvecio.rj at gmail.com
http://www.helvecio.com - http://blog.helvecio.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/joomla/attachments/20120717/079dba10/attachment.html>


More information about the Joomla mailing list