[joomla] OK, I give up. Where is the "magic" for links?
David Roth
davidalanroth at gmail.com
Tue Jul 17 10:06:53 EDT 2012
Yes, that's what I'm seeing.
I just looked at the Joomla 2.5 demo I have installed. The View Source for
the "Getting Started" looks like this:
<li class="item-437"><a
href="/joomla25/index.php/getting-started<http://sammy/joomla25_acl/index.php/getting-started>"
>Getting Started</a>
Even though it is displaying when you mouse over it domain.com
/joomla25/index.php/getting-started<http://sammy/joomla25_acl/index.php/getting-started>
and
the link works.
I never looked at this before. So if they are relative paths, how and where
do they get resolved in Joomla?
I just found this:
http://docs.joomla.org/JURI/base
So the base URL is being done by a call to JURI someplace. Maybe all
templates do this for us?
David Roth
On Tue, Jul 17, 2012 at 9:42 AM, Helvécio da Silva <helvecio.rj at gmail.com>wrote:
> 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
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/joomla/attachments/20120717/acccfcad/attachment.html>
More information about the Joomla
mailing list