<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi<br>
<br>
<blockquote cite="mid:200904031005.50299.5ko@5ko.fr" type="cite">
  <pre wrap="">Just letting you know that you can easily override the default trails.php 
script like this :
* move your modified file from scripts/ to cookbook/
* add to config.php :
  $EnableWikiTrails = 0;
  include_once("$FarmD/cookbook/trails.php");
  </pre>
</blockquote>
<br>
Sure - that's exactly what I did to create the file I mailed<br>
<br>
However, the new file should have identical functionality to before -
it even duplicates that functionality that I would tentatively call a
bug where the bare wiki trail becomes unstyled without a span around it
(can I recommend that this is changed though?)<br>
<br>
The main new functionality is that:<br>
<br>
- Separation of presentation from data (I'm a MVC fan, so this just
feels like good practice)<br>
- Generation of a few extra variables that can be used in the output,
ie the next/prev at the same level in the tree<br>
<br>
Actually the second step seems like it was possibly intended right from
the start, but perhaps it felt too complicated to implement initially?&nbsp;
Certainly it seems more natural to me to have the next/prev only work
within the same branch of the tree, but I can see situations where both
are valuable.&nbsp; Anyway, status quo is that no new behaviour is
implemented, but it's now simple for the administrator to override and
change the behaviour if desired<br>
<br>
<blockquote cite="mid:200904031005.50299.5ko@5ko.fr" type="cite">
  <blockquote type="cite">
    <pre wrap="">Change the default trail separator to something more standard, eg "&raquo;"
(it looks like &gt;&gt; for those viewing in plain text):
    SDV($TrailPathSep, ' &amp;raquo; ');
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I disagree. Guillemets (angle quotes, &amp;raquo;) are indicators for quoted 
speech. We should use arrows (&amp;rarr;) if we want to indicate arrows. :-) 
<a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/%E2%86%92">http://en.wikipedia.org/wiki/%E2%86%92</a>
  </pre>
</blockquote>
<br>
I disagree your disagree...<br>
<br>
Wikipedia agrees that they are "sometimes used to indicate direction" -
however, I acknowledge that I had not realised that were used for
quoted speech (just an ignorant english speaker I guess...)<br>
<br>
A quick search of the internet suggests that for english speaking
websites the character I suggested is very popular and certainly way
more popular than the "pipe" character. <br>
<br>
<blockquote cite="mid:200904031005.50299.5ko@5ko.fr" type="cite">
  <pre wrap="">Moreover, right arrows will only work in case of ^|Trail|^ and not with 
&lt;|Trail|&gt; or &lt;&lt;|Trail|&gt;&gt;. The vertical bar works in all cases, and I feel the 
first case is the least common one.
  </pre>
</blockquote>
<br>
I think you are looking at the wrong code...&nbsp; In the current (and
modified) trails.php, this character is only used for the breadcrumb
trail, nothing else, ie it's only used for the "^|Trail|^" syntax<br>
<br>
I would agree with you that it doesn't work for the other two cases,
but that's not what I am suggesting<br>
<br>
<blockquote cite="mid:200904031005.50299.5ko@5ko.fr" type="cite">
  <pre wrap="">At any rate, users can add to config.php 
  $TrailPathSep = ' &amp;raquo; '; 
or something different to override the default vertical bar.
  </pre>
</blockquote>
<br>
Agreed - however, I still recommend that the default be changed to
something better than the "|".&nbsp; Your suggestion of arrows seems very
fine to me also.&nbsp; However, I think the pipe looks confusing and from my
searching on google doesn't seem to conform with how existing sites
behave (remember the "don't make me think" rule)<br>
<br>
In any case it's only a suggestion - that change *isn't* made in the
file I supplied, it's just something I think would be beneficial.&nbsp; I
separated that suggest so that it wouldn't be a source of contention
and affect examination of the changes I mailed...<br>
<br>
Cheers<br>
<br>
Ed W<br>
<blockquote cite="mid:200904031005.50299.5ko@5ko.fr" type="cite">
  <pre wrap="">
Thanks,
Petko
  </pre>
</blockquote>
<br>
</body>
</html>