Page 1 of 1
Re: Showing my simple site
Posted: Wed Sep 05, 2007 8:54 am
by RonnyK
Tigru,
I've seen the site passing by on the Dutch board. Nice new site.......
Some "small" remarks:
1. The site shows "Next page", this is coming from the relational links in the template. You should/could translate them there.
2. The Horizontal menu is to big to fit on a single line, it takes two lines. You might want to consider to put it in a vertical menu instead. Or use less menu-parents.
3. The search button is below the search-box. Change DIV#SEARCH to "width: 25em".
Ronny
Re: Showing my simple site
Posted: Wed Sep 05, 2007 7:44 pm
by tyman00
Tigru wrote:
1. Can't do it, tried it, but I do not really know where to change it.
I did a quick Find in Files (I used Crimson Editor, you should try it); here is what I found:
You will see two numbers inside of two parenthesis the first is the line number, the second is the character position.
Ex: (Line#, CharacterPosition):
Code: Select all
\plugins\function.cms_selflink.php(135,21): $Next_label = "Next page: ";
\plugins\function.cms_selflink.php(154,21): $Next_label = "Next page: ";
\plugins\function.cms_selflink.php(162,19): $Next_label = "Next page: ";
You might want to change the Previous Page and Parent Page labels (just above and below the Next Page label) while you are at it.
Re: Showing my simple site
Posted: Wed Sep 05, 2007 7:53 pm
by RonnyK
You're right tyman00, but it is nicer to change the label in the calling of the selflink in the template (look for "relational links" in the template). For "Previous page" there is an example given in the template. The next-page can be done similar....
Ronny
Re: Showing my simple site
Posted: Wed Sep 05, 2007 8:01 pm
by tyman00
RonnyK wrote:
You're right tyman00, but it is nicer to change the label in the calling of the selflink in the template (look for "relational links" in the template). For "Previous page" there is an example given in the template. The next-page can be done similar....
Ronny
Right you are!
Code: Select all
<!-- Start relational links -->
<div class="hr"></div>
<div class="right49">
<p>{anchor anchor='main' text='^ Top'}</p>
</div>
<div class="left49">
<p>{cms_selflink dir="previous" label="Previous page: "} <br />
{cms_selflink dir="next"}</p>
</div>
<!-- The label parameter doesn't need to be there if you're using English,
but is here to show how it's used if you don't want the English text "Previous page" -->
I removed the relational links from my template so I forgot that was even there.
Re: Showing my simple site
Posted: Sat Sep 08, 2007 12:10 pm
by RonnyK
For those interested, the cms_selflink-tag does take the lang-parameter. Dutch is included (nl). I checked the code yesterday as someone experienced problems with the cms_selflink.......
(optional) lang - Display link-labels ("Next Page"/"Previous Page") in different languages (0 for no label.)
Danish (dk), English (en) or French (fr), for now.
So label, can be used to set it yourself, but:
Code: Select all
case 'nl':
$Prev_label = "Vorige pagina: ";
$Next_label = "Volgende pagina: ";
$Parent_label = "Bovenliggende pagina: "; // uplink
break;
Ronny